Hi there,
that worked perfectly, thank you very much Cheers > Date: Tue, 11 Aug 2009 15:14:42 +0100 > From: dwat...@sdl.com > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] Running .exe after installation. > > Hi, > Don't you just need to do a FileSearch > (http://wix.sourceforge.net/manual-wix2/wix_xsd_filesearch.htm) for the > nwn updater and set that to a property (like NOTET) then use that > property in your custom action call (like the one that worked for > notepad)? > > The binary element is for embedding resources into your msi for use at > install time. > > Dave > > -----Original Message----- > From: Andrew Macvean [mailto:mad_man_...@hotmail.com] > Sent: 10 August 2009 16:24 > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] Running .exe after installation. > > > Hello everybody, I would greatly appreciate some help. > > > > I am using wix v2 to create an installer, at the moment the installer > checks for some prerqusite files using the registry and based on what is > found takes the user to one of three new dialogs. At 2 of the dialogs I > have a checkbox where the idea is that the user checks the box and hits > the finish button to launch a .exe to run appropriate updates. > > > > However I have never managed to successfully get the .exe to run. I > tested the checkbox with opening Notepad like so: > > > > <Property Id='NOTET'>Notepad.exe</Property> > > <CustomAction Id='LaunchNet' Property='NOTET' > ExeCommand='[TARGETDIR]\Program Files\Readme.txt' Return='asyncNoWait' > /> > > > > <Control Id="Finish" Type="PushButton" X="236" Y="243" Width="56" > Height="17" Default="yes" Cancel="no" Text="!(loc.WixUIFinish)"> > > <Publish Event="EndDialog" Value="Exit">1</Publish> > > </Control> > > > > <Publish Dialog="nwnUpdate" Control="Finish" Order="1" Event="DoAction" > Value="LaunchNet">LAUNCHNET = 1</Publish> > > > > And everything worked correctly. > > > > However when I try to change the custom action to launch the .exe > nothing seems to happen, I currently have the following code but I have > tried various approaches. > > > > <Binary Id="Updater_EXE" SourceFile="C:\Program Files\Atari\Neverwinter > Nights 2\nwupdate.exe" /> > > <CustomAction Id='LaunchUpdate' BinaryKey="Updater_EXE" ExeCommand="" > Return="asyncNoWait"/> > > > > Just to be clear there is definately a nwupdate.exe in the folder > specified above. > > > > Can anyone advise me on where I am going wrong > > > > Thanks very much in advance! > > _________________________________________________________________ > Windows Live Messenger: Celebrate 10 amazing years with free winks and > emoticons. > http://clk.atdmt.com/UKM/go/157562755/direct/01/ > ------------------------------------------------------------------------ > ------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 > 30-Day trial. Simplify your report design, integration and deployment - > and focus on what you do best, core application coding. Discover what's > new with Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > SDL PLC confidential, all rights reserved. > If you are not the intended recipient of this mail SDL requests and requires > that you delete it without acting upon or copying any of its contents, and we > further request that you advise us. > SDL PLC is a public limited company registered in England and Wales. > Registered number: 02675207. > Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 > 7DY, UK. > > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users _________________________________________________________________ Windows Live Messenger: Celebrate 10 amazing years with free winks and emoticons. http://clk.atdmt.com/UKM/go/157562755/direct/01/ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users