I would use firstSequence too. It has worked well for me in this scenario as I do harvest data from one of my config files on upgrade. I have a table-driven custom action that does a bunch of XML reads on XPATHs and stores them into properties.
-- John Merryweather Cooper Build & Install Engineer -- ESA Jack Henry & Associates, Inc.(r) Shawnee Mission, KS 66227 Office: 913-341-3434 x791011 jocoo...@jackhenry.com www.jackhenry.com -----Original Message----- From: Blair Murri [mailto:os...@live.com] Sent: Monday, December 2, 2013 10:53 PM To: General discussion about the WiX toolset. Subject: Re: [WiX-users] Help migrating Serial number during upgrade Another way is to set the @Execute attribute of the CustomAction element to the value firstSequence. Then you don't need to condition it nor create additional source files. > Date: Tue, 3 Dec 2013 13:43:22 +1100 > From: goodridge....@gmail.com > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] Help migrating Serial number during upgrade > > To have it in both but execute once, a yourself tool is an include > file in both sequences. You'll probably find there are other CA that > should just be executed the once e.g. > <?include SharedExecuteActions.wxi ?> > > Then in SharedExecuteActions.wxi place a CA that has the condition NOT > SECONDSEQUENCE so it is only executed once: > <Custom Action="MyCA" Before="FindRelatedProducts"> > <![CDATA[NOT SECONDSEQUENCE]]> > </Custom> > > warm regards > > Rob Goodridge > > > On Tue, Dec 3, 2013 at 6:22 AM, Hoover, Jacob > <jacob.hoo...@greenheck.com>wrote: > > > Since the serial number is "user data" I would expect it to > > persist after uninstall. If this is a per machine install I'd expect > > the file to live under CommonAppData in a Mfg/App sub folder. As > > such, the only need for a CA is to read this data on major upgrade > > (if you really think the installer should be the one prompting for a > > serial number). To be honest, I'd go with the recommended approach > > of the installer only doing the installing, and the registration > > happening upon first run of the application. > > > > That being said, if you really need this inside your > > installer, I wouldn't move the license file but rather I'd have a CA > > for reading all the info out of the file. Schedule this CA early in > > your sequence (have it in both but schedule it to only run once) and > > have it populate Secure and Hidden properties that would then be used to > > populate your dialog in the UI. > > > > -----Original Message----- > > From: tyler.w.r...@accenture.com [mailto:tyler.w.r...@accenture.com] > > Sent: Monday, December 02, 2013 12:41 PM > > To: wix-users@lists.sourceforge.net > > Subject: [WiX-users] Help migrating Serial number during upgrade > > > > Hello, > > > > I have been tasked with creating a custom action that will > > migrate the user's serial number during a major upgrade. I have a > > custom action that runs before RemoveExisting that moves the license > > file, but my problem is that we have a custom dialog if ran in GUI > > mode that prompts for the serial. Since this runs before my custom action > > it shows up blank. > > > > My question is will I need to use two custom actions one in the UI > > sequence and another in the InstallExecute sequence or is there a > > way I can just use one custom action and solve both cases. > > > > Tyler Reid | Operations and Infrastructure | Accenture Software | > > P&C Insurance > > 1807 Jones Street | Bolivar, MO 65613| USA > > Office: +cc.xxx.xxx.xxxx | Fax: 417.777.3792 > > E-Mail: > > tyler.w.r...@accenture.com<mailto:tyler.w.r...@accenture.com> | > > www.accenture.com/pcsoftware<http://www.accenture.com/pcsoftware> > > > > > > > > ________________________________ > > This message is for the designated recipient only and may contain > > privileged, proprietary, or otherwise confidential information. If > > you have received it in error, please notify the sender immediately > > and delete the original. Any other use of the e-mail by you is prohibited. > > > > Where allowed by local law, electronic communications with Accenture > > and its affiliates, including e-mail and instant messaging > > (including content), may be scanned by our systems for the purposes > > of information security and assessment of internal compliance with > > Accenture policy. > > > > > > ____________________________________________________________________ > > __________________ > > > > www.accenture.com > > > > -------------------------------------------------------------------- > > ---------- Rapidly troubleshoot problems before they affect your > > business. Most IT organizations don't have a clear picture of how > > application performance affects their revenue. With AppDynamics, you > > get 100% visibility into your Java,.NET, & PHP application. Start > > your 15-day FREE TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg > > .clktrk _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > > > > -------------------------------------------------------------------- > > ---------- Rapidly troubleshoot problems before they affect your > > business. Most IT organizations don't have a clear picture of how > > application performance affects their revenue. With AppDynamics, you > > get 100% visibility into your Java,.NET, & PHP application. Start > > your 15-day FREE TRIAL of AppDynamics Pro! > > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg > > .clktrk _______________________________________________ > > WiX-users mailing list > > WiX-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wix-users > > > ---------------------------------------------------------------------- > -------- Rapidly troubleshoot problems before they affect your > business. Most IT organizations don't have a clear picture of how > application performance affects their revenue. With AppDynamics, you > get 100% visibility into your Java,.NET, & PHP application. Start your > 15-day FREE TRIAL of AppDynamics Pro! > http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.c > lktrk _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users NOTICE: This electronic mail message and any files transmitted with it are intended exclusively for the individual or entity to which it is addressed. The message, together with any attachment, may contain confidential and/or privileged information. Any unauthorized review, use, printing, saving, copying, disclosure or distribution is strictly prohibited. If you have received this message in error, please immediately advise the sender by reply email and delete all copies. ------------------------------------------------------------------------------ Rapidly troubleshoot problems before they affect your business. Most IT organizations don't have a clear picture of how application performance affects their revenue. With AppDynamics, you get 100% visibility into your Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro! http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users