> >Message: 7 >Date: Sat, 03 Jan 2009 13:19:30 -0800 >From: Bob Arnson <b...@joyofsetup.com> >Subject: Re: [WiX-users] Conditionally executing console program at > end of upgrade >To: "General discussion for Windows Installer XML toolset." > <wix-users@lists.sourceforge.net> >Message-ID: <495fd662.2030...@joyofsetup.com> >Content-Type: text/plain; charset=ISO-8859-1; format=flowed > >Wayne Roberts wrote: >> What I need to do now is figure out how to run either that program or a >> different one based on a field in an XML file. Getting the data out of >> the XML file shouldn't be a problem, but I can't figure out how to run >> EITHER program A or Program B. >> > >Use mutually-exclusive conditions on the custom action conditions. > >-- >sig://boB >http://joyofsetup.com/ >
Hi Bob, Thanks for the reply, but I'm just not sure I follow. I have something like this (and maybe this is the problem?): <CustomAction Execute="immediate" FileKey="Original_program_to_execute.exe" ExeCommand="Stuff goes here" Impersonate="yes" Id="LaunchProgram" Return="asyncNoWait" /> <UI> <Publish Dialog="ExitDialog" Control="Finish" Order="1" Event="DoAction" Value="LaunchProgram">UPGRADEFOUND OR ANOTHERCONDITION OR Installed</Publish> </UI> The way I am understanding this is when I click the finish button the custom action with id LaunchProgram is executed. My confusion is how to have this work with two custom actions. It seems like it'd be something that should be really easy to accomplish, I've just not worked with WiX long enough to know how to do it. Any help you may give (or a pointer to a tutorial that covers this?) would be appreciated. Thanks, Wayne ------------------------------------------------------------------------------ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users