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=""perl"
"[INSTALLDIR]first.pl" 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=""perl"
"[INSTALLDIR]first.pl" 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>
--
View this message in context:
http://www.nabble.com/Using-a-Property-as-a-parameter-in-a-customAction-tf3278071.html#a9116563
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users