New Post: How to chnage install directory from WPF Application
I am working on bootstrapper UI as my benchmark and created new UI in WPF. When the "Install Directory " property is changed ,I have added it in Static variables so that it can be accessed in setup.cs...
View ArticleNew Post: Scope PerUser and admin prompt
Hello, can i set install scope to "perUser" and at the same time before starting instalation get UAC prompt dialog? I use bootstrapper project (EXE with 2 installations (.net and my application)). If i...
View ArticleNew Post: Scope PerUser and admin prompt
This is rather a WiX challenge not a Wix#. perMachine is the setting that triggers the UAC prompt. As far as I know MSI doesn't consider scenario when per-user install requires elevation. Of course you...
View ArticleNew Post: Unistalling previous versions
I looked through the documentation and samples, but did not find any examples of uninstalling applications before installing a new one. The application is the same, with a new version number. Can you...
View ArticleNew Post: Do you have an existing easy way to detect that the installation...
Just wondering -- is there a way to detect a failed installation (while the installer is running)? Eg, when I set the installation to perMachine, and the installation fails and the log points out that...
View ArticleNew Post: Do you have an existing easy way to detect that the installation...
It is an interesting one. It's impossible to know from the CA where MSI creates the log file for the current session. Neither MSI nor WiX doesn't provide any API for that. However if one is using Wix#...
View ArticleNew Post: Conditionally creating SqlDatabase only by initial Installation,...
How to add Condition for Component SqlDatabase in WixSharp? My C# Code is following: _project = new ManagedProject(); // -- Only single database is required. _project.SqlDatabases = new SqlDatabase[1];...
View ArticleNew Post: Conditionally creating SqlDatabase only by initial Installation,...
The condition element for SqlDatabase is not available directly so you need to insert it in the final XML: project.WixSourceGenerated += document => { document.Root.FindSingle("SqlDatabase") .Parent...
View ArticleNew Post: Change id of binary generated by using ElevatedManagedAction
Hi, When using elevatedmanagedaction in WixSharp, I get the following generated Wix file:<CustomAction Id="Action2_SetJavaEnvironment" BinaryKey="Action2_SetJavaEnvironment_File"...
View ArticleNew Post: Change id of binary generated by using ElevatedManagedAction
Yes it is. You can use the technique described in this post answer: https://wixsharp.codeplex.com/discussions/660553 But why do you need to do this? Are you reusing the binaries for other non-CA...
View ArticleNew Post: Conditionally creating SqlDatabase only by initial Installation,...
Thank you for your reply. I have implemented your suggestion and it works fine by Major Upgrade. But now by new Installation, the SqlDatabase not installed too. I don’t know how to get which Condition...
View ArticleNew Post: Conditionally creating SqlDatabase only by initial Installation,...
I don’t know how to get which Condition should be on first position: :) This is what I meant "you will need to find the real condition". It not trivial. MSI as a technology is extremely convoluted and...
View ArticleNew Post: Conditionally creating SqlDatabase only by initial Installation,...
I just published the wiki that can be helpful for you:https://github.com/oleg-shilo/wixsharp/wiki/Detecting-upgrade-at-runtime
View ArticleNew Post: Change id of binary generated by using ElevatedManagedAction
Thanks Oleg, I am adding the elevatedmanagedaction in an MSM. When trying to build the MSM, the "Id" of the Binary Node is too long due to WIX adding the GUID of the MSM to the end of the "Id". The...
View ArticleNew Post: Multiple instances of managed project
We have a requirement to allow multiple instances of our program. I followed one of the samples and got everything working when instances are invoked from command line. To provide our users with a...
View ArticleNew Post: Total MSI File size exceeding 2GB
Hi, My total file size within an Wix# project including data exceeds 2GB and currently I am unable to create Setup. Read in Wix documentation that multiple cab will solve the issue. How can I do that...
View ArticleNew Post: Total MSI File size exceeding 2GB
You can add as many Media elements as you need with XML post-processing: project.WixSourceGenerated += Compiler_WixSourceGenerated; ... staticvoid Compiler_WixSourceGenerated(XDocument document) {...
View ArticleNew Post: Multiple instances of managed project
"UIInitialized event" is what I wanted to suggest. And you need ManagedProject for this. Exactly what you are already using. So you are good. I cannot see anything obviously wrong with your code by...
View ArticleNew Post: Multiple instances of managed project
Thank you for the reply even though you are busy. Could you maybe explain how I would launch an embedded dialog in the UInitialized event? I tried showdialog, but it complains about the msiruntime and...
View Article