I need a macro that references the current location of the MSI file during installation. I have one specific MSI file that is giving me fits. This MSI has a config file reference. The path to the config file must be absolute and not realive path to the location of the installation file. Is there a macro that represents where the installation files are during execution? Since the deploy location is dynamic it is difficult to hard code the physical location of the MSI into the install string.
This command doesn’t work when manually executed on the target:
msiexec.exe /i "<someapp>.msi" CFG="syscfg.xml" /q
But this command does work when manually executed on the target:
msiexec.exe /i "<someapp>.msi" CFG=" C:\WINDOWS\PDQDeployRunner\1\exec\syscfg.xml" /q
I can confirm that the config file is being sent to the target. It would be great if there is a built in macro that would expand to “C:\WINDOWS\PDQDeployRunner\1\exec” during deployment. Something so I could use a deployment string like :
msiexec.exe /i "<someapp>.msi" CFG="$(InstallPath)\syscfg.xml" /q
Please sign in to leave a comment.