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>
-- 
View this message in context: 
http://www.nabble.com/run-a-script-passing-a-parameter-tf3272181.html#a9098065
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

Reply via email to