Guys, It is getting closer but still not quite right. Well it is right from the point of view that I got it to work without passing parameters. Now I want to pass parameters but it is not working again.
Here is what I have now. <Property Id="QtExecInstall" Value='"perl" "[INSTALLDIR]first.pl" install'/> <CustomAction Id="QtExec" BinaryKey="wixca" DllEntry="CAQuietExec" Execute="immediate" Return="check"/> <Binary Id="wixca" src="c:\wix_v2_orig\wixca.dll"/> <Property Id="QtExecDeInstall" Value=""perl" "[INSTALLDIR]first.pl deinstall""/> <CustomAction Id="QtExecu" BinaryKey="wixca" DllEntry="CAQuietExec" Execute="immediate" Return="check"/> <InstallExecuteSequence> <Custom Action="QtExec" After="InstallFinalize">NOT Installed</Custom> </InstallExecuteSequence> <InstallExecuteSequence> <Custom Action="QtExecu" After="InstallFinalize">Installed AND NOT REINSTALL</Custom> </InstallExecuteSequence> Looking in the log file I have Property(S): QtExecInstall = "perl" "[INSTALLDIR]first.pl" install Property(S): QtExecDeInstall = "perl" "[INSTALLDIR]first.pl deinstall" I've tried variouls combinations of quoting but nothing seems to work, Another example being Property(S): QtExecInstall = "perl" "[INSTALLDIR]first.pl" "install" Property(S): QtExecDeInstall = "perl" "[INSTALLDIR]first.pl deinstall" Any idea? Foster, Richard - PAL-2 wrote: > > Dave, > > You probably already identified the problem - the name needs to be > quoted. Try this: > > <Property Id="QtExecCmdLine" Value="perl > "[INSTALLDIR]first.pl" install"/> > > Regards, > Richard > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of dave_c > Sent: Thursday, February 22, 2007 9:50 AM > To: wix-users@lists.sourceforge.net > Subject: Re: [WiX-users] run a script passing a parameter > > > Sorry it is me again. > >>From the command line, if I run > > perl "C:\Program Files\Acme\Foobar 1.0\first.pl" install then the > program > works, note the quotes required because of whitespace in the path. > > When I put it into my wix file it does not work. > > <Property Id="QtExecCmdLine" Value="perl [INSTALLDIR]first.pl > install"/> > <CustomAction Id="QtExec" BinaryKey="wixca" DllEntry="CAQuietExec" > Execute="immediate" Return="check"/> > <Binary Id="wixca" src="c:\wix_v2_orig\wixca.dll"/> > > <InstallExecuteSequence> > <Custom Action="QtExec" After="InstallFinalize"/> > </InstallExecuteSequence> > > MSI (s) (A0!38) [14:30:09:419]: PROPERTY CHANGE: Deleting QtExecCmdLine > property. Its current value is 'perl [INSTALLDIR]first.pl install'. > CAQuietExec: Command string must begin with quoted application name. > CAQuietExec: Error 0x80070057: invalid command line property value > CAQuietExec: Error 0x80070057: failed to get Command Line > Action ended 14:30:09: QtExec. Return value 3. > Action ended 14:30:09: INSTALL. Return value 3. > > If I try the same with > > <Property Id="QtExecCmdLine" Value="perl C:\Program > Files\Acme\Foobar > 1.0\first.pl install"/> > <CustomAction Id="QtExec" BinaryKey="wixca" DllEntry="CAQuietExec" > Execute="immediate" Return="check"/> > <Binary Id="wixca" src="c:\wix_v2_orig\wixca.dll"/> > > I get the same error message. > > [Remainder of original message trimmed] > > > > > * C O N F I D E N T I A L I T Y N O T I C E * > ----------------------------------------------------------- > The content of this e-mail is intended solely for the use of the > individual or entity to whom it is addressed. If you have received this > communication in error, be aware that forwarding it, copying it, or in any > way disclosing its content to any other person, is strictly prohibited. > Peek Traffic Corporation is neither liable for the contents, nor for the > proper, complete and timely transmission of (the information contained in) > this communication. If you have received this communication in error, > please notify the author by replying to this e-mail immediately and delete > the material from any computer. > > > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share > your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > > -- View this message in context: http://www.nabble.com/run-a-script-passing-a-parameter-tf3272181.html#a9102187 Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users