OK, thanks, I've managed to run the exe. Now, how can I delete it afterwards?
Thx. Martin Uwe Stump wrote: > Hi Martin, > > Try this (deferred execution): > > <CustomAction Id="CA_Unpack_Cmd" Property="SC_SETUP_EXEC" > Value=""[INSTALLDIR]zmq.exe" -y" /> > <CustomAction Id="CA_Unpack_Exec" BinaryKey="WixCA" DllEntry="CAQuietExec" > Return="check" Execute="deferred" /> > > <InstallExecuteSequence> > <Custom Action="CA_Unpack_Cmd" > After="InstallFinalize">$YourComponent>2</Custom> > <Custom Action="CA_Unpack_Exec" > After="CA_Unpack_Cmd">$YourComponent>2</Custom> > </InstallExecuteSequence> > > Change $YourComponent by the Id of your component (a condition for a custom > action that should only be run at install has the following format: > $ComponentName>2, see: > http://strangelights.com/blog/archive/2004/07/07/160.aspx). Maybe you have to > change [INSTALLDIR] too. > > Or (immediate execution): > > <Property Id="QtExecCmdLine" Value=""[INSTALLDIR]zmq.exe" -y" /> > <CustomAction Id="CA_Unpack_Exec" BinaryKey="WixCA" DllEntry="CAQuietExec" > Execute="immediate" Return="check"/> > . > . > . > <InstallExecuteSequence> > <Custom Action="CA_Unpack_Exec" > After="InstallFinalize">$YourComponent>2</Custom> > </InstallExecuteSequence> > > (Do not change the Id QtExecCmdLine! see help file) > > I hope it works. > > Uwe > > > > Hi all, > > I want to run a command line at the end of installation. This is how far > I have got: > > <CustomAction Id="Unpack" ExeCommand="zmq.exe -y" /> > > <InstallExecuteSequence> > <Custom Action="Unpack" After="InstallFinalize" /> > </InstallExecuteSequence> > > What I get is error 2721. Any advice? > > Thanks. > Martin > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > ------------------------------------------------------------------------------ > Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) > software. With Adobe AIR, Ajax developers can use existing skills and code to > build responsive, highly engaging applications that combine the power of local > resources and data with the reach of the web. Download the Adobe AIR SDK and > Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM) software. With Adobe AIR, Ajax developers can use existing skills and code to build responsive, highly engaging applications that combine the power of local resources and data with the reach of the web. Download the Adobe AIR SDK and Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users