New Post: How to add preprocessor tags?
You can use WixSharp.Entity extension method AddXmlInclude: project.AddXmlInclude("CommonProperies.wxi") .AddXmlInclude("CommonProperies2.wxi");Have a look at InjectXML sample. Note that the placement...
View ArticleNew Post: Absolute path
ManagedUI InstallDirDialog doesn't resolve the special value of the INSTALL dir at startup. This is due to the fact that special custom scheduled for that purpose is not executed yet. Indeed it is a...
View ArticleNew Post: ManagedUI issue: A callback was made on a garbage collected delegate
I use ManagedUI and have an exception at the end of the installation process: Managed Debugging Assistant 'CallbackOnCollectedDelegate' has detected a problem in '...WpfSetup\bin\Release\WpfSetup.exe'....
View ArticleNew Post: ManagedUI issue: A callback was made on a garbage collected delegate
Great thank you for reporting. This is an interesting one. >OnExternalUI is a private function. Actually the fact that it is private is irrelevant as GC doesn't discriminate on the base of the...
View ArticleNew Post: Passing user data to after_install
Hi all, I have managed setup with one custom dialog.(I'm asking user for some data (IP address, actually)). Using MsiRuntime.Session["IPADDRESS"] for storing user input. I'm using Custom UI Dialog from...
View ArticleNew Post: Passing user data to after_install
The problem is caused by the MSI limitation, which prevents user from accessing ANY property from the deferred custom actions (e.g. project.AfterInstall) due to the Session object being already...
View ArticleNew Post: Passing user data to after_install
BTW in the very latest release v1.0.29.0 you can use new field IsDeferred:new Property("PASSWORD", "pwd123") { IsDeferred = true })It has the same effect as project.DefaultDeferredProperties +=...
View ArticleNew Post: How to create shortcut in program menu for all users?
How to create shortcut in program menu for all users (Environment.SpecialFolder.Programs)?
View ArticleNew Post: Absolute path
I suppose one bug is still persists. I think it connected to this problem so I won't start new thread..project.BeforeInstall += msi_BeforeInstall; in msi_BeforeInstall function e.InstallDir and...
View ArticleNew Post: wixsharp setup.exe code -532462766
Sometimes I get this compilation error code -532462766 What does that mean and where can find the compilation/linking error?
View ArticleNew Post: wixsharp setup.exe code -532462766
Most likely it is the result of the exception in the user code. This is what happens when you build WixSharp in VS:VS builds your assembly (projects executable)VS runs WixSharp.targets from the NuGet...
View ArticleNew Post: How to create shortcut in program menu for all users?
Have you had a look at 'AllInOne', 'Shortcuts' and 'Shortcuts-2' samples? The choice of "for all users" or "for current user" will depend on the installation type (new Property("ALLUSERS", "1"),). I...
View ArticleNew Post: Absolute path
Thanks. Yes the fix only covered ManagedUI dialog scenario but not BeforeInstall. Resolving absolute INSTALLDIR for managed events (outside of ManageUI) was scheduled at CostFinanlize and it is too...
View ArticleNew Post: How to create shortcut in program menu for all users?
Thank you. It solved the problem.
View ArticleNew Post: Rollback custom action after pressing Cancel button
Hi, I have a rollback custom action which is not executed in case of a rollback caused by pressing the Cancel button. The rollback custom action is defined between InstallInititialize and...
View ArticleNew Post: Problems with BackgroundImage and BannerImage
Hi, i have some problems with the path of BackgroundImage and BannerImage (WixSharp.1.0.29.0). I created a new C# console project with VS 2013. Some code lines:// ......
View ArticleNew Post: Rollback custom action after pressing Cancel button
It seems like it is not a failure in the action itself but rather a problem during with WiX runtime trying to load the custom action (e.g. referenced assemblies are missing). The easiest way to test it...
View Article