[WiX-users] Start application after WIX bundle installation
Hi together, ist there any possibility to start an application after successful bundle installation? Already spent hours with google to find a working solution but it seems that there isn't any... Thanks for your help. Kind regards, Andreas -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Start application after WIX bundle installation
The way I accomplished this is I created a Boolean value that is true if it's an initial install (not upgrade or uninstall), then I created an event handler for the Finish button that launches the executable. It looks something like this: View.FinishButton.Click += (s, e) = { If(initialInstall) { System.Diagnostics.Process.Start(InstallDir + @\path\to\exe.exe); } Dispatcher.CurrentDispatcher.InvokeShutdown(); }; Hope this helps, Nick -Original Message- From: andreas.paetz...@btc-ag.com [mailto:andreas.paetz...@btc-ag.com] Sent: Friday, July 19, 2013 5:16 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Start application after WIX bundle installation Hi together, ist there any possibility to start an application after successful bundle installation? Already spent hours with google to find a working solution but it seems that there isn't any... Thanks for your help. Kind regards, Andreas -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Convert from MSI to EXE
Please read this example, this will answer all your questions. http://bryanpjohnston.com/2012/09/28/custom-wix-managed-bootstrapper-application/ Regards, Rahul On Thu, Jul 18, 2013 at 11:49 PM, Mamidi, Balasubrahmanyam balu.mam...@flightsafety.com wrote: Thanks for reply steve. not clear what you're saying.. Let me reframe what I want.. When I compile my project I want .exe to be generated. I do not want .msi file to be generated. Is it possible using WIX? -Original Message- From: Steven Ogilvie [mailto:steven.ogil...@titus.com] Sent: Thursday, July 18, 2013 1:00 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Convert from MSI to EXE [P] Classification: Public Hi Balu, You can use burn (bootstrapper) (which is an EXE) to launch your MSI's Steve -Original Message- From: Mamidi, Balasubrahmanyam [mailto:balu.mam...@flightsafety.com] Sent: July-18-13 1:52 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Convert from MSI to EXE Hi, currently we are creating our product to MSI file (using wix ), now client is asking convert all products to EXE's. How much effort to do this and give me some idea please? Is something change output file extension to from *.msi to *.exe Thanks, Balu -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users This message has been marked as Public by Steven Ogilvie on July-18-13 1:59:37 PM. The above classification labels were added to the message by TITUS Message Classification. For more information visit www.titus.com. -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Start application after WIX bundle installation
Are you using wixstba? If so can use a wix variable LaunchTarget like this: Variable Name=LaunchTarget Value=path to exe/. This will show a launch button on finish that the user can click. Wes -Original Message- From: andreas.paetz...@btc-ag.com [mailto:andreas.paetz...@btc-ag.com] Sent: July-19-13 6:16 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Start application after WIX bundle installation Hi together, ist there any possibility to start an application after successful bundle installation? Already spent hours with google to find a working solution but it seems that there isn't any... Thanks for your help. Kind regards, Andreas -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] passing command args to MSI from bundle
Create a variable inside the Bundle, pass that variable to MsiProperty, and change the variable in the bootstrapper code like Bootstrapper.Engine.StringVariables[MyVariable] = now you can see it in the log, for the reference, http://stackoverflow.com/questions/15305932/how-to-pass-a-property-from-an-editbox-control-in-burn-native-bootstrapper-to-a http://bryanpjohnston.com/2012/09/28/custom-wix-managed-bootstrapper-application/ Regards, Rahul On Thu, Jul 18, 2013 at 6:05 PM, Freedman, Mark P. mark.freed...@jhuapl.edu wrote: I'm on Wix 3.7. I have an MSI that I would like to set a registry key (perhaps via a Custom Action, as he will have to check if the key already exists). I'm understand that a Bundle in a bootstrapper project can't change the machine state (such as setting the registry). Therefore, I'm attempting to pass a command line argument via MsiProperty, but doesn't appear to show up as a command line argument in my log file for the bootstrapper. 1. Is it possible to set a registry key up in a Bundle? 2. If not, how can I add a command line argument (or some other piece of custom data) to be passed to the MSI. 3. How can the MSI read whatever it is I pass to it (whether I tends up being a command line arg or something else). ?xml version=1.0 encoding=UTF-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Bundle Name=MyInstallerBootstrapperLocalDb Version=1.0.0.0 Manufacturer=$(var.Configuration) Industires UpgradeCode=* BootstrapperApplicationRef Id=WixStandardBootstrapperApplication.RtfLicense / Chain MsiPackage Id=MyInstallerInstaller SourceFile=$(var.MyInstallerInstaller.TargetPath) Compressed=no !-- TODO - if this is being set correctly, the MSI needs to interpret it and set up the key-- MsiProperty Name=SetLocalDb Value=yes/ /MsiPackage /Chain /Bundle /Wix Thanks, Mark Freedman -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs
Hi, I am running 3 MSI from my Bootstrapper, After the first MSI is installed successfully, I want to load an user control (Which is deployed by the first MSI) in the bootstrapper UI. After loading the user control I will collect some information from the user control and by clicking Next I want to install another MSI by passing the information as MsiProperty. I want to interupt the first MSI completion event, in that event I want to load the user control. How can I do this? Thanks! Regards, Rahul -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] passing command args to MSI from bundle [P]
Classification: Public I do the same thing: Variable Name=SERVICESLOGLEVEL Type=string bal:Overridable=yes Value=WARN/ MsiProperty Name=SERVICESLOGLEVEL Value=[SERVICESLOGLEVEL]/ So from the command line I would run MyBootstrapperEXE.exe SERVICESLOGLEVEL=DEBUG Now if you are just wanting to change a property via the bootstrapper you don't have to add the variable element Just add the MsiProperty element to your MSI: MsiProperty Name=ALLOW_REMOTE_ACCESS Value=0/ Steve -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: July-19-13 9:55 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle Create a variable inside the Bundle, pass that variable to MsiProperty, and change the variable in the bootstrapper code like Bootstrapper.Engine.StringVariables[MyVariable] = now you can see it in the log, for the reference, http://stackoverflow.com/questions/15305932/how-to-pass-a-property-from-an-editbox-control-in-burn-native-bootstrapper-to-a http://bryanpjohnston.com/2012/09/28/custom-wix-managed-bootstrapper-application/ Regards, Rahul On Thu, Jul 18, 2013 at 6:05 PM, Freedman, Mark P. mark.freed...@jhuapl.edu wrote: I'm on Wix 3.7. I have an MSI that I would like to set a registry key (perhaps via a Custom Action, as he will have to check if the key already exists). I'm understand that a Bundle in a bootstrapper project can't change the machine state (such as setting the registry). Therefore, I'm attempting to pass a command line argument via MsiProperty, but doesn't appear to show up as a command line argument in my log file for the bootstrapper. 1. Is it possible to set a registry key up in a Bundle? 2. If not, how can I add a command line argument (or some other piece of custom data) to be passed to the MSI. 3. How can the MSI read whatever it is I pass to it (whether I tends up being a command line arg or something else). ?xml version=1.0 encoding=UTF-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Bundle Name=MyInstallerBootstrapperLocalDb Version=1.0.0.0 Manufacturer=$(var.Configuration) Industires UpgradeCode=* BootstrapperApplicationRef Id=WixStandardBootstrapperApplication.RtfLicense / Chain MsiPackage Id=MyInstallerInstaller SourceFile=$(var.MyInstallerInstaller.TargetPath) Compressed=no !-- TODO - if this is being set correctly, the MSI needs to interpret it and set up the key-- MsiProperty Name=SetLocalDb Value=yes/ /MsiPackage /Chain /Bundle /Wix Thanks, Mark Freedman -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.c lktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users This message has been marked as Public by Steven Ogilvie on July-19-13 10:07:29 AM. The above classification labels were added to the message by TITUS Message Classification. For more information visit www.titus.com. -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Cannot install the patch by double clicking on msp
Hi Blair, Issue resolved by changing the customaction to diferred and return=ignore. Thank you very much for help. And I have a doubt regarding CopyFile. If I use copy file element then it copying the patch files instead of copying base file because my base files was overiden by patch files before calling this copyfile element. Can you please let me know how to execute copyfile before InstallFiles. I tried to use different components one for installing patch file and another for copying base file, but still not resolved. I never heard about semi-custom action, if possible could you please share any links. It would be very helpfull to learn more about the tool. Regards, Srinu. From: Blair Murri os...@live.com To: wix-users@lists.sourceforge.net wix-users@lists.sourceforge.net Sent: Friday, 19 July 2013 2:38 AM Subject: Re: [WiX-users] Cannot install the patch by double clicking on msp Look in your log. It will reveal all. I assume one of two things has happened: 1) the folder you are copying to requires admin rights, which immediate actions only have if you launch the MSP already elevated (which doesn't happen when double-clicking with UAC turned on), or 2) that folder doesn't actually exist yet, because it is created when the deferred actions are run (and you are attempting to copy the base files while the deferred script is still being written). Either way this is further proof that immediate actions are not supposed to ever be used to change machine state. Since you seem to be intent on writing a custom action: change that action to add rows to the MoveFile table (search for semi-custom action from Bob's blog). Or much better yet, see if WiX's CopyFile element will do the trick and you eliminate the custom action all together. Blair Date: Fri, 19 Jul 2013 02:52:56 +0800 From: srinu_...@yahoo.com To: wix-users@lists.sourceforge.net Subject: [WiX-users] Cannot install the patch by double clicking on msp Hi, Installing the patch from a cmd prompt (or explorer) that has been started with admin rights however succeeds(there is no Run As Administrator from the context menu). But while double clicking the .msp throwing the exception(attached) and install get abort. For more information: The exception is because of failing my C# custom action(CopyBinFiles) which is execute as Immediate, return check and sequenced after PublishingProduct. The script behind the custom action is just copying the existing Base files(.msi files) into the newfolder for backup. And it has only one public property INSTALLDIR which is secured. Please let me know if any one have idea about this issue(why double click is not working even though I am admin on the machine). Regards, Srini -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Convert from MSI to EXE
That's to create a custom bootstrapper application (BA). Easiest thing is to use the premade or standard one with WIX: wixstba at least at first to learn. On wixtoolset.org there is link to a book on wix and I suggest starting with that. Also link to a manual and blogs on burn which are useful too. -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: July-19-13 10:42 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Convert from MSI to EXE Please read this example, this will answer all your questions. http://bryanpjohnston.com/2012/09/28/custom-wix-managed-bootstrapper-application/ Regards, Rahul On Thu, Jul 18, 2013 at 11:49 PM, Mamidi, Balasubrahmanyam balu.mam...@flightsafety.com wrote: Thanks for reply steve. not clear what you're saying.. Let me reframe what I want.. When I compile my project I want .exe to be generated. I do not want .msi file to be generated. Is it possible using WIX? -Original Message- From: Steven Ogilvie [mailto:steven.ogil...@titus.com] Sent: Thursday, July 18, 2013 1:00 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Convert from MSI to EXE [P] Classification: Public Hi Balu, You can use burn (bootstrapper) (which is an EXE) to launch your MSI's Steve -Original Message- From: Mamidi, Balasubrahmanyam [mailto:balu.mam...@flightsafety.com] Sent: July-18-13 1:52 PM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Convert from MSI to EXE Hi, currently we are creating our product to MSI file (using wix ), now client is asking convert all products to EXE's. How much effort to do this and give me some idea please? Is something change output file extension to from *.msi to *.exe Thanks, Balu -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.c lktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users This message has been marked as Public by Steven Ogilvie on July-18-13 1:59:37 PM. The above classification labels were added to the message by TITUS Message Classification. For more information visit www.titus.com. -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.c lktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.c lktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Cannot install the patch by double clicking on msp
One option would be to use an immediate custom action that copies the existing files to the temp folder, and then a semi-custom action which copies those files to your backup folder. -Original Message- From: Srinu ..., [mailto:srinu_...@yahoo.com] Sent: Friday, July 19, 2013 9:29 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Cannot install the patch by double clicking on msp Hi Blair, Issue resolved by changing the customaction to diferred and return=ignore. Thank you very much for help. And I have a doubt regarding CopyFile. If I use copy file element then it copying the patch files instead of copying base file because my base files was overiden by patch files before calling this copyfile element. Can you please let me know how to execute copyfile before InstallFiles. I tried to use different components one for installing patch file and another for copying base file, but still not resolved. I never heard about semi-custom action, if possible could you please share any links. It would be very helpfull to learn more about the tool. Regards, Srinu. From: Blair Murri os...@live.com To: wix-users@lists.sourceforge.net wix-users@lists.sourceforge.net Sent: Friday, 19 July 2013 2:38 AM Subject: Re: [WiX-users] Cannot install the patch by double clicking on msp Look in your log. It will reveal all. I assume one of two things has happened: 1) the folder you are copying to requires admin rights, which immediate actions only have if you launch the MSP already elevated (which doesn't happen when double-clicking with UAC turned on), or 2) that folder doesn't actually exist yet, because it is created when the deferred actions are run (and you are attempting to copy the base files while the deferred script is still being written). Either way this is further proof that immediate actions are not supposed to ever be used to change machine state. Since you seem to be intent on writing a custom action: change that action to add rows to the MoveFile table (search for semi-custom action from Bob's blog). Or much better yet, see if WiX's CopyFile element will do the trick and you eliminate the custom action all together. Blair Date: Fri, 19 Jul 2013 02:52:56 +0800 From: srinu_...@yahoo.com To: wix-users@lists.sourceforge.net Subject: [WiX-users] Cannot install the patch by double clicking on msp Hi, Installing the patch from a cmd prompt (or explorer) that has been started with admin rights however succeeds(there is no Run As Administrator from the context menu). But while double clicking the .msp throwing the exception(attached) and install get abort. For more information: The exception is because of failing my C# custom action(CopyBinFiles) which is execute as Immediate, return check and sequenced after PublishingProduct. The script behind the custom action is just copying the existing Base files(.msi files) into the newfolder for backup. And it has only one public property INSTALLDIR which is secured. Please let me know if any one have idea about this issue(why double click is not working even though I am admin on the machine). Regards, Srini -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from
Re: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs
Hi Jacob, I am using managed code, will you please give me more detail?, I am follwing the below example. http://bryanpjohnston.com/2012/09/28/custom-wix-managed- bootstrapper-application/ Thanks! Regards, Rahul On Fri, Jul 19, 2013 at 7:40 PM, Hoover, Jacob jacob.hoo...@greenheck.comwrote: Are you doing a native or managed BA/UX? Is this control a native or managed control? If it's a native UX/BA and the control is a COM component, you should be able to create the object after it's installed. If it's managed, you would have to do some rather involved coding to delay load the assembly. -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: Friday, July 19, 2013 9:05 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs Hi, I am running 3 MSI from my Bootstrapper, After the first MSI is installed successfully, I want to load an user control (Which is deployed by the first MSI) in the bootstrapper UI. After loading the user control I will collect some information from the user control and by clicking Next I want to install another MSI by passing the information as MsiProperty. I want to interupt the first MSI completion event, in that event I want to load the user control. How can I do this? Thanks! Regards, Rahul -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
[WiX-users] elevated CustomAction with Impersonate = no and Execute=deferred
Hi, Edwin or Wix Experts, I had the issue as you mentioned in one of your replies. One reason why this CustomAction works from an elevated command prompt but not from a non-elevated shell is that the CustomAction is scheduled outside of the installation transaction (before InstallInitialize or after InstallFinalize). All actions that occur outside the installation transaction. But, based on some old MSDN paper (http://msdn.microsoft.com/en-us/magazine/cc163486.aspx), Many CustomActions do not specify the no impersonate flag msidbCustomActionTypeNoImpersonate, causing the CustomAction to be run as Local System. It looks like if you set Impersonate = no, it should work. But , based on my testing, CustomAction Id=GrantBuiltInUserFullAccessToFolder Return=check Execute=deferred Impersonate=no .../ does not work. Now my question is how to make CustomAction run elevated privilege permission? Is there an easy way to grant some user different access permission to different folders during Wix installation process? Thanks in advance! JC ___ Jianxin Chen | Senior Software Engineer Baker Hughes | Software / Intelligent Production Systems jianxin.c...@bakerhughes.commailto:jianxin.c...@bakerhughes.com Office: +1 713.934.4136 14990 Yorktown Plaza Drive, Houston, 77040 http://www.bakerhughes.comhttp://www.bakerhughes.com/ | Advancing Reservoir Performance -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs
Hi Jacob, I was asking you for the details to use which event in BootstrapperApplication class to interupt the first MSI completion event. After that how can I start another MSI installation? Thanks! On Fri, Jul 19, 2013 at 9:10 PM, Hoover, Jacob jacob.hoo...@greenheck.comwrote: Some examples: http://stackoverflow.com/questions/465488/can-i-load-a-net-assembly-at-runtime-and-instantiate-a-type-knowing-only-the-na http://www.codeproject.com/Articles/32828/Using-Reflection-to-load-unreferenced-assemblies-a -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: Friday, July 19, 2013 10:27 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs Hi Jacob, I am using managed code, will you please give me more detail?, I am follwing the below example. http://bryanpjohnston.com/2012/09/28/custom-wix-managed- bootstrapper-application/ Thanks! Regards, Rahul On Fri, Jul 19, 2013 at 7:40 PM, Hoover, Jacob jacob.hoo...@greenheck.comwrote: Are you doing a native or managed BA/UX? Is this control a native or managed control? If it's a native UX/BA and the control is a COM component, you should be able to create the object after it's installed. If it's managed, you would have to do some rather involved coding to delay load the assembly. -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: Friday, July 19, 2013 9:05 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs Hi, I am running 3 MSI from my Bootstrapper, After the first MSI is installed successfully, I want to load an user control (Which is deployed by the first MSI) in the bootstrapper UI. After loading the user control I will collect some information from the user control and by clicking Next I want to install another MSI by passing the information as MsiProperty. I want to interupt the first MSI completion event, in that event I want to load the user control. How can I do this? Thanks! Regards, Rahul -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.c lktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.c lktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list
Re: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs
Are you doing a native or managed BA/UX? Is this control a native or managed control? If it's a native UX/BA and the control is a COM component, you should be able to create the object after it's installed. If it's managed, you would have to do some rather involved coding to delay load the assembly. -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: Friday, July 19, 2013 9:05 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs Hi, I am running 3 MSI from my Bootstrapper, After the first MSI is installed successfully, I want to load an user control (Which is deployed by the first MSI) in the bootstrapper UI. After loading the user control I will collect some information from the user control and by clicking Next I want to install another MSI by passing the information as MsiProperty. I want to interupt the first MSI completion event, in that event I want to load the user control. How can I do this? Thanks! Regards, Rahul -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] passing command args to MSI from bundle [P]
Currently, I do not have a custom bootstrapper application, just what I have in the Bundle.wxs file. I thought that by setting up the MSI Property that way, it wouldn't require running the bootstrapper EXE with a command line argument. I just want to pass a hard coded value of some sort to the MSI from this particular bootstrapper to the MSI and read it in a custom action. I'm trying to then put the MSI property in to a custom action, if it is present, but it doesn't seem to work. CustomAction Id='SetUsingLocalDbRegistryAction.SetProperty' Return='check' Value='SETLOCALDB=[SETLOCALDB]' Property='SetUsingLocalDbRegistryAction'/ CustomAction Id='SetUsingLocalDbRegistryAction' BinaryKey='CustomActionBinary' DllEntry='SetUsingLocalDbRegistry' Execute='deferred' Impersonate='no' Return='check'/ Mark Freedman -Original Message- From: Steven Ogilvie [mailto:steven.ogil...@titus.com] Sent: Friday, July 19, 2013 10:08 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle [P] Classification: Public I do the same thing: Variable Name=SERVICESLOGLEVEL Type=string bal:Overridable=yes Value=WARN/ MsiProperty Name=SERVICESLOGLEVEL Value=[SERVICESLOGLEVEL]/ So from the command line I would run MyBootstrapperEXE.exe SERVICESLOGLEVEL=DEBUG Now if you are just wanting to change a property via the bootstrapper you don't have to add the variable element Just add the MsiProperty element to your MSI: MsiProperty Name=ALLOW_REMOTE_ACCESS Value=0/ Steve -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: July-19-13 9:55 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle Create a variable inside the Bundle, pass that variable to MsiProperty, and change the variable in the bootstrapper code like Bootstrapper.Engine.StringVariables[MyVariable] = now you can see it in the log, for the reference, http://stackoverflow.com/questions/15305932/how-to-pass-a-property-from-an-editbox-control-in-burn-native-bootstrapper-to-a http://bryanpjohnston.com/2012/09/28/custom-wix-managed-bootstrapper-application/ Regards, Rahul On Thu, Jul 18, 2013 at 6:05 PM, Freedman, Mark P. mark.freed...@jhuapl.edu wrote: I'm on Wix 3.7. I have an MSI that I would like to set a registry key (perhaps via a Custom Action, as he will have to check if the key already exists). I'm understand that a Bundle in a bootstrapper project can't change the machine state (such as setting the registry). Therefore, I'm attempting to pass a command line argument via MsiProperty, but doesn't appear to show up as a command line argument in my log file for the bootstrapper. 1. Is it possible to set a registry key up in a Bundle? 2. If not, how can I add a command line argument (or some other piece of custom data) to be passed to the MSI. 3. How can the MSI read whatever it is I pass to it (whether I tends up being a command line arg or something else). ?xml version=1.0 encoding=UTF-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Bundle Name=MyInstallerBootstrapperLocalDb Version=1.0.0.0 Manufacturer=$(var.Configuration) Industires UpgradeCode=* BootstrapperApplicationRef Id=WixStandardBootstrapperApplication.RtfLicense / Chain MsiPackage Id=MyInstallerInstaller SourceFile=$(var.MyInstallerInstaller.TargetPath) Compressed=no !-- TODO - if this is being set correctly, the MSI needs to interpret it and set up the key-- MsiProperty Name=SetLocalDb Value=yes/ /MsiPackage /Chain /Bundle /Wix Thanks, Mark Freedman -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.c lktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users This message has been marked as Public by Steven Ogilvie on July-19-13 10:07:29 AM. The above classification
Re: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs
Some examples: http://stackoverflow.com/questions/465488/can-i-load-a-net-assembly-at-runtime-and-instantiate-a-type-knowing-only-the-na http://www.codeproject.com/Articles/32828/Using-Reflection-to-load-unreferenced-assemblies-a -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: Friday, July 19, 2013 10:27 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs Hi Jacob, I am using managed code, will you please give me more detail?, I am follwing the below example. http://bryanpjohnston.com/2012/09/28/custom-wix-managed- bootstrapper-application/ Thanks! Regards, Rahul On Fri, Jul 19, 2013 at 7:40 PM, Hoover, Jacob jacob.hoo...@greenheck.comwrote: Are you doing a native or managed BA/UX? Is this control a native or managed control? If it's a native UX/BA and the control is a COM component, you should be able to create the object after it's installed. If it's managed, you would have to do some rather involved coding to delay load the assembly. -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: Friday, July 19, 2013 9:05 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs Hi, I am running 3 MSI from my Bootstrapper, After the first MSI is installed successfully, I want to load an user control (Which is deployed by the first MSI) in the bootstrapper UI. After loading the user control I will collect some information from the user control and by clicking Next I want to install another MSI by passing the information as MsiProperty. I want to interupt the first MSI completion event, in that event I want to load the user control. How can I do this? Thanks! Regards, Rahul -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.c lktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.c lktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] elevated CustomAction with Impersonate = no and Execute=deferred
On Fri, Jul 19, 2013 at 8:35 AM, Chen, Jianxin jianxin.c...@bakerhughes.com wrote: “One reason why this CustomAction works from an elevated command prompt but not from a non-elevated shell is that the CustomAction is scheduled outside of the installation transaction (before InstallInitialize or after InstallFinalize). All actions that occur outside the installation transaction.” I must have pressed enter too quickly. The last sentence should read: All actions that occur outside the installation transaction do *not* execute elevated. You want to schedule the CustomAction between InstallInitialize and InstallFinalize. Is there an easy way to grant some user different access permission to different folders during Wix installation process? Yes, use PermissionEx. This is always preferred to you writing your own custom action for granting permissions. -- Edwin G. Castro -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users
Re: [WiX-users] passing command args to MSI from bundle [P]
Classification: Public Mark, In my bundle.wxs I have the following: /BootstrapperApplicationRef Variable Name=SERVICESLOGLEVEL Type=string bal:Overridable=yes Value=WARN/ Chain MsiPackage Id=MainInstall DisplayName=$(var.ProductName) SourceFile=path to my MSI file\MyMSIFile.msi Name=Redist\ MyMSIFile.msi DisplayInternalUI=yes Visible=no Cache=no Compressed=no Permanent=no MsiProperty Name=SERVICESLOGLEVEL Value=[SERVICESLOGLEVEL]/ /MsiPackage This way if I don't have a command line argument the MSI property SERVICESLOGLEVEL is set to WARN by default, hence I can change it by: MYBOOSTRAPPEREXE.exe SERVICESLOGLEVEL=DEBUG Then in my product.wxs file I have the property initialized: Property Id=SERVICESLOGLEVEL Secure=yes/ And then I use that property in a custom action to change the app.config file of my various services logging level i.e. CustomAction Id=CA_Set_ConfigLevelStr Property=CA_SETCONFIGLEVELSTR Value=[CONFIG_SERVICE_PATH]|Config.exe.config|[SERVICESLOGLEVEL]/ CustomAction Id=CA_SETCONFIGLEVELSTR BinaryKey=BIN_CustomAction DllEntry=ChangeConfigLevel Impersonate=no Execute=deferred Return=check / So if I don't have a command line parameter to the logging level is set to the default WARN (which is set in my variable element in the bundle.wxs, or I can change the logging level by having a command line parameter as shown above... Steve -Original Message- From: Freedman, Mark P. [mailto:mark.freed...@jhuapl.edu] Sent: July-19-13 2:31 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle [P] Right, My bootstrapper projct creates the exe, and I can run it and install with it. I'm not sure what's happening to the MsiProperty that Ive set up. I'm not sure how to read it from the MSI installer package, and it isn't passed as a command line argument as shown in the logs. I thin what I want to do is to read the MSI property and store it in a CustomActionData property to be read by a custom action, but does not seem to work. Mark Freedman JHU/APL 17-N568 443.778.2647 mark.freed...@jhuapl.edu -Original Message- From: Steven Ogilvie [mailto:steven.ogil...@titus.com] Sent: Friday, July 19, 2013 1:43 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle [P] Classification: Public The bundle.wxs is the bootsrapper code file, when you compile it, it creates an exe -Original Message- From: Freedman, Mark P. [mailto:mark.freed...@jhuapl.edu] Sent: July-19-13 12:44 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle [P] Currently, I do not have a custom bootstrapper application, just what I have in the Bundle.wxs file. I thought that by setting up the MSI Property that way, it wouldn't require running the bootstrapper EXE with a command line argument. I just want to pass a hard coded value of some sort to the MSI from this particular bootstrapper to the MSI and read it in a custom action. I'm trying to then put the MSI property in to a custom action, if it is present, but it doesn't seem to work. CustomAction Id='SetUsingLocalDbRegistryAction.SetProperty' Return='check' Value='SETLOCALDB=[SETLOCALDB]' Property='SetUsingLocalDbRegistryAction'/ CustomAction Id='SetUsingLocalDbRegistryAction' BinaryKey='CustomActionBinary' DllEntry='SetUsingLocalDbRegistry' Execute='deferred' Impersonate='no' Return='check'/ Mark Freedman -Original Message- From: Steven Ogilvie [mailto:steven.ogil...@titus.com] Sent: Friday, July 19, 2013 10:08 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle [P] Classification: Public I do the same thing: Variable Name=SERVICESLOGLEVEL Type=string bal:Overridable=yes Value=WARN/ MsiProperty Name=SERVICESLOGLEVEL Value=[SERVICESLOGLEVEL]/ So from the command line I would run MyBootstrapperEXE.exe SERVICESLOGLEVEL=DEBUG Now if you are just wanting to change a property via the bootstrapper you don't have to add the variable element Just add the MsiProperty element to your MSI: MsiProperty Name=ALLOW_REMOTE_ACCESS Value=0/ Steve -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: July-19-13 9:55 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle Create a variable inside the Bundle, pass that variable to MsiProperty, and change the variable in the bootstrapper code like Bootstrapper.Engine.StringVariables[MyVariable] = now you can see it in the log, for the reference,
Re: [WiX-users] passing command args to MSI from bundle [P]
Right, My bootstrapper projct creates the exe, and I can run it and install with it. I'm not sure what's happening to the MsiProperty that Ive set up. I'm not sure how to read it from the MSI installer package, and it isn't passed as a command line argument as shown in the logs. I thin what I want to do is to read the MSI property and store it in a CustomActionData property to be read by a custom action, but does not seem to work. Mark Freedman JHU/APL 17-N568 443.778.2647 mark.freed...@jhuapl.edu -Original Message- From: Steven Ogilvie [mailto:steven.ogil...@titus.com] Sent: Friday, July 19, 2013 1:43 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle [P] Classification: Public The bundle.wxs is the bootsrapper code file, when you compile it, it creates an exe -Original Message- From: Freedman, Mark P. [mailto:mark.freed...@jhuapl.edu] Sent: July-19-13 12:44 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle [P] Currently, I do not have a custom bootstrapper application, just what I have in the Bundle.wxs file. I thought that by setting up the MSI Property that way, it wouldn't require running the bootstrapper EXE with a command line argument. I just want to pass a hard coded value of some sort to the MSI from this particular bootstrapper to the MSI and read it in a custom action. I'm trying to then put the MSI property in to a custom action, if it is present, but it doesn't seem to work. CustomAction Id='SetUsingLocalDbRegistryAction.SetProperty' Return='check' Value='SETLOCALDB=[SETLOCALDB]' Property='SetUsingLocalDbRegistryAction'/ CustomAction Id='SetUsingLocalDbRegistryAction' BinaryKey='CustomActionBinary' DllEntry='SetUsingLocalDbRegistry' Execute='deferred' Impersonate='no' Return='check'/ Mark Freedman -Original Message- From: Steven Ogilvie [mailto:steven.ogil...@titus.com] Sent: Friday, July 19, 2013 10:08 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle [P] Classification: Public I do the same thing: Variable Name=SERVICESLOGLEVEL Type=string bal:Overridable=yes Value=WARN/ MsiProperty Name=SERVICESLOGLEVEL Value=[SERVICESLOGLEVEL]/ So from the command line I would run MyBootstrapperEXE.exe SERVICESLOGLEVEL=DEBUG Now if you are just wanting to change a property via the bootstrapper you don't have to add the variable element Just add the MsiProperty element to your MSI: MsiProperty Name=ALLOW_REMOTE_ACCESS Value=0/ Steve -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: July-19-13 9:55 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle Create a variable inside the Bundle, pass that variable to MsiProperty, and change the variable in the bootstrapper code like Bootstrapper.Engine.StringVariables[MyVariable] = now you can see it in the log, for the reference, http://stackoverflow.com/questions/15305932/how-to-pass-a-property-from-an-editbox-control-in-burn-native-bootstrapper-to-a http://bryanpjohnston.com/2012/09/28/custom-wix-managed-bootstrapper-application/ Regards, Rahul On Thu, Jul 18, 2013 at 6:05 PM, Freedman, Mark P. mark.freed...@jhuapl.edu wrote: I'm on Wix 3.7. I have an MSI that I would like to set a registry key (perhaps via a Custom Action, as he will have to check if the key already exists). I'm understand that a Bundle in a bootstrapper project can't change the machine state (such as setting the registry). Therefore, I'm attempting to pass a command line argument via MsiProperty, but doesn't appear to show up as a command line argument in my log file for the bootstrapper. 1. Is it possible to set a registry key up in a Bundle? 2. If not, how can I add a command line argument (or some other piece of custom data) to be passed to the MSI. 3. How can the MSI read whatever it is I pass to it (whether I tends up being a command line arg or something else). ?xml version=1.0 encoding=UTF-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Bundle Name=MyInstallerBootstrapperLocalDb Version=1.0.0.0 Manufacturer=$(var.Configuration) Industires UpgradeCode=* BootstrapperApplicationRef Id=WixStandardBootstrapperApplication.RtfLicense / Chain MsiPackage Id=MyInstallerInstaller SourceFile=$(var.MyInstallerInstaller.TargetPath) Compressed=no !-- TODO - if this is being set correctly, the MSI needs to interpret it and set up the key-- MsiProperty Name=SetLocalDb Value=yes/ /MsiPackage /Chain /Bundle /Wix Thanks, Mark Freedman -- See everything from the browser to the
Re: [WiX-users] passing command args to MSI from bundle [P]
Classification: Public The bundle.wxs is the bootsrapper code file, when you compile it, it creates an exe -Original Message- From: Freedman, Mark P. [mailto:mark.freed...@jhuapl.edu] Sent: July-19-13 12:44 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle [P] Currently, I do not have a custom bootstrapper application, just what I have in the Bundle.wxs file. I thought that by setting up the MSI Property that way, it wouldn't require running the bootstrapper EXE with a command line argument. I just want to pass a hard coded value of some sort to the MSI from this particular bootstrapper to the MSI and read it in a custom action. I'm trying to then put the MSI property in to a custom action, if it is present, but it doesn't seem to work. CustomAction Id='SetUsingLocalDbRegistryAction.SetProperty' Return='check' Value='SETLOCALDB=[SETLOCALDB]' Property='SetUsingLocalDbRegistryAction'/ CustomAction Id='SetUsingLocalDbRegistryAction' BinaryKey='CustomActionBinary' DllEntry='SetUsingLocalDbRegistry' Execute='deferred' Impersonate='no' Return='check'/ Mark Freedman -Original Message- From: Steven Ogilvie [mailto:steven.ogil...@titus.com] Sent: Friday, July 19, 2013 10:08 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle [P] Classification: Public I do the same thing: Variable Name=SERVICESLOGLEVEL Type=string bal:Overridable=yes Value=WARN/ MsiProperty Name=SERVICESLOGLEVEL Value=[SERVICESLOGLEVEL]/ So from the command line I would run MyBootstrapperEXE.exe SERVICESLOGLEVEL=DEBUG Now if you are just wanting to change a property via the bootstrapper you don't have to add the variable element Just add the MsiProperty element to your MSI: MsiProperty Name=ALLOW_REMOTE_ACCESS Value=0/ Steve -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: July-19-13 9:55 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] passing command args to MSI from bundle Create a variable inside the Bundle, pass that variable to MsiProperty, and change the variable in the bootstrapper code like Bootstrapper.Engine.StringVariables[MyVariable] = now you can see it in the log, for the reference, http://stackoverflow.com/questions/15305932/how-to-pass-a-property-from-an-editbox-control-in-burn-native-bootstrapper-to-a http://bryanpjohnston.com/2012/09/28/custom-wix-managed-bootstrapper-application/ Regards, Rahul On Thu, Jul 18, 2013 at 6:05 PM, Freedman, Mark P. mark.freed...@jhuapl.edu wrote: I'm on Wix 3.7. I have an MSI that I would like to set a registry key (perhaps via a Custom Action, as he will have to check if the key already exists). I'm understand that a Bundle in a bootstrapper project can't change the machine state (such as setting the registry). Therefore, I'm attempting to pass a command line argument via MsiProperty, but doesn't appear to show up as a command line argument in my log file for the bootstrapper. 1. Is it possible to set a registry key up in a Bundle? 2. If not, how can I add a command line argument (or some other piece of custom data) to be passed to the MSI. 3. How can the MSI read whatever it is I pass to it (whether I tends up being a command line arg or something else). ?xml version=1.0 encoding=UTF-8? Wix xmlns=http://schemas.microsoft.com/wix/2006/wi; Bundle Name=MyInstallerBootstrapperLocalDb Version=1.0.0.0 Manufacturer=$(var.Configuration) Industires UpgradeCode=* BootstrapperApplicationRef Id=WixStandardBootstrapperApplication.RtfLicense / Chain MsiPackage Id=MyInstallerInstaller SourceFile=$(var.MyInstallerInstaller.TargetPath) Compressed=no !-- TODO - if this is being set correctly, the MSI needs to interpret it and set up the key-- MsiProperty Name=SetLocalDb Value=yes/ /MsiPackage /Chain /Bundle /Wix Thanks, Mark Freedman -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.c lktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today!
Re: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs
The ExecutePackageComplete fires when a package is installed, you could load your control and get the information before returning from that event. But if you are getting information that influences the other MSI's, you probably should do 2 Detect, Plan, Apply cycles. Sean Date: Fri, 19 Jul 2013 21:50:31 +0530 From: rahul8...@gmail.com To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs Hi Jacob, I was asking you for the details to use which event in BootstrapperApplication class to interupt the first MSI completion event. After that how can I start another MSI installation? Thanks! On Fri, Jul 19, 2013 at 9:10 PM, Hoover, Jacob jacob.hoo...@greenheck.comwrote: Some examples: http://stackoverflow.com/questions/465488/can-i-load-a-net-assembly-at-runtime-and-instantiate-a-type-knowing-only-the-na http://www.codeproject.com/Articles/32828/Using-Reflection-to-load-unreferenced-assemblies-a -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: Friday, July 19, 2013 10:27 AM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs Hi Jacob, I am using managed code, will you please give me more detail?, I am follwing the below example. http://bryanpjohnston.com/2012/09/28/custom-wix-managed- bootstrapper-application/ Thanks! Regards, Rahul On Fri, Jul 19, 2013 at 7:40 PM, Hoover, Jacob jacob.hoo...@greenheck.comwrote: Are you doing a native or managed BA/UX? Is this control a native or managed control? If it's a native UX/BA and the control is a COM component, you should be able to create the object after it's installed. If it's managed, you would have to do some rather involved coding to delay load the assembly. -Original Message- From: Rahul V [mailto:rahul8...@gmail.com] Sent: Friday, July 19, 2013 9:05 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Bootstrapper - Interuptting the MSI completion events while running multiple MSIs Hi, I am running 3 MSI from my Bootstrapper, After the first MSI is installed successfully, I want to load an user control (Which is deployed by the first MSI) in the bootstrapper UI. After loading the user control I will collect some information from the user control and by clicking Next I want to install another MSI by passing the information as MsiProperty. I want to interupt the first MSI completion event, in that event I want to load the user control. How can I do this? Thanks! Regards, Rahul -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.c lktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.c lktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk ___ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users -- See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831iu=/4140/ostg.clktrk