Bah! You're right, and I've just remembered why. When specifying a custom action like that, the file in the file key has to be an executable. This isn't going to work for your script file. Your best bet is probably the Quiet Execution CustomAction. Look for it in the WiX chm under WiX Help -> Authoring -> WiX Standard CustomActions -> Quiet Execution CustomAction
Rob dave_c wrote: > Hi Rob, > > I tried removing that but it lloks like things are more fundamental than I > first thought. I've changed the script that runs to simply generate a file > when run (not relying on any parameters). When I run it from command line it > works fine. When I run from the msi nothing appears to happen, i.e. the file > is not created. > > Looking at the log file generated it looks liek some sort of error occured > at the end > > MSI (c) (10:0C) [11:36:16:068]: Note: 1: 1707 > MSI (c) (10:0C) [11:36:16:068]: Note: 1: 2205 2: 3: Error > MSI (c) (10:0C) [11:36:16:068]: Note: 1: 2228 2: 3: Error 4: SELECT > `Message` FROM `Error` WHERE `Error` = 1707 > MSI (c) (10:0C) [11:36:16:068]: Note: 1: 2205 2: 3: Error > MSI (c) (10:0C) [11:36:16:068]: Note: 1: 2228 2: 3: Error 4: SELECT > `Message` FROM `Error` WHERE `Error` = 1709 > MSI (c) (10:0C) [11:36:16:068]: Product: SwapComm -- Installation completed > successfully. > > MSI (c) (10:0C) [11:36:16:083]: Grabbed execution mutex. > MSI (c) (10:0C) [11:36:16:083]: Cleaning up uninstalled install packages, if > any exist > MSI (c) (10:0C) [11:36:16:083]: MainEngineThread is returning 0 > > Have enclosed the full log file to see if it is of any use. > > Cheers > > Rob Hamflett wrote: >> You don't need '[INSTALLDIR]first.pl' in the ExeCommand, as this is what >> the FileKey is for. I >> think you just need your 'install' argument there. >> >> Rob >> >> dave_c wrote: >>> Excuse my stupidity. >>> >>> I want to install and then run a perl script passing a parameter to it >>> but >>> what I have written nothing appears to happen. >>> >>> I know if i run the script from the command line and pass a parameter it >>> does what I want i.e. first.pl install >>> >>> but then I put in in the wix script it does not appear to work. Could >>> someone point out what I have done wrong. >>> >>> <Directory Id='TARGETDIR' Name='SourceDir'> >>> <Directory Id='ProgramFilesFolder' Name='PFiles'> >>> <Directory Id='Acme' Name='Acme'> >>> <Directory Id='INSTALLDIR' Name='Foobar10' LongName='Foobar >>> 1.0'> >>> >>> <Component Id='MainExecutable' >>> Guid='{1DF29E50-1A88-410b-945E-251DA8309C96}'> >>> <File Id='first' Name='first.pl' DiskId='1' >>> Source='first.pl' Vital='yes'> >>> </File> >>> <RemoveFolder Id='ProgramMenuDir' On='uninstall' /> >>> </Component> >>> </Directory> >>> </Directory> >>> </Directory> >>> </Directory> >>> >>> <Feature Id='Complete' Level='1'> >>> <ComponentRef Id='MainExecutable' /> >>> </Feature> >>> >>> <CustomAction Id='LaunchFile' FileKey='first' >>> ExeCommand='[INSTALLDIR]first.pl install' Return='asyncNoWait' /> >>> >>> <InstallExecuteSequence> >>> <Custom Action='LaunchFile' After='InstallFinalize'></Custom> >>> </InstallExecuteSequence> >> >> ------------------------------------------------------------------------- >> 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 >> >> > http://www.nabble.com/file/6696/dae.log dae.log ------------------------------------------------------------------------- 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