You should be able to just replace <Want to pass value of INSTALLDIR
as a parameter here> with [INSTALLDIR].

Rob

dave_c wrote:
> Hi there,
> 
> Is the following possible.
> 
> I have an installer that as one of the steps allows the user to define the
> installation location. I would then like to take this parameter (using
> msiGetProperty or whatever) and pass it into a script that I have defined as
> a customAction.
> 
>     <Feature Id='Complete' 
>              Title='Server Configuration' 
>              Description='Installs services required for SwapCom' 
>              Display='collapse'
>              Absent='disallow'
>              ConfigurableDirectory='INSTALLDIR' 
>              Level='1'>
>       <ComponentRef Id='MainExecutable' />
>     </Feature>
> 
>     <Binary Id="wixca" src="c:\wix_v2_orig\wixca.dll"/>
> 
>     <CustomAction Id="InstallSwapCom.Command"
>       Property="QtExecCmdLine" Value="&quot;perl&quot;
> &quot;[INSTALLDIR]first.pl&quot; install <Want to pass value of INSTALLDIR
> as a parameter here>"/>
> 
>     <CustomAction Id="InstallSwapCom" 
>                   BinaryKey="wixca" 
>                   DllEntry="CAQuietExec" 
>                   Execute="immediate" 
>                   Return="check"/>
> 
>     <CustomAction Id="DeinstallSwapCom.Command"
>                   Property="QtExecCmdLine" Value="&quot;perl&quot;
> &quot;[INSTALLDIR]first.pl&quot; deinstall INSTALLDIR"/>
> 
>     <CustomAction Id="DeinstallSwapCom" 
>                   BinaryKey="wixca" 
>                   DllEntry="CAQuietExec" 
>                   Execute="immediate" 
>                   Return="ignore"/>
> 
>     <InstallExecuteSequence>
>       <!-- If not installed, generate the install command and execute it
> (after finializing the install) -->
>       <Custom Action="InstallSwapCom.Command" After="InstallFinalize">NOT
> Installed</Custom>
>       <Custom Action="InstallSwapCom" After="InstallSwapCom.Command">NOT
> Installed</Custom>
> 
>       <!-- If installed, generate the uninstall command and execute it
> (before removing any files) -->
>       <Custom Action="DeinstallSwapCom.Command"
> Before="DeinstallSwapCom">Installed</Custom>
>       <Custom Action="DeinstallSwapCom"
> Before="RemoveFiles">Installed</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

Reply via email to