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 <[email protected]>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: [email protected] [mailto:[email protected]]
> Sent: Monday, December 02, 2013 12:41 PM
> To: [email protected]
> 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: [email protected]<mailto:[email protected]> |
> 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
> [email protected]
> 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
> [email protected]
> 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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users