I need to create an installer that runs a file called Deploy-Application.exe. Deploy-Application.exe takes a parameter that looks like this:
Deploy-Application.exe -DeploymentType "Uninstall"
When I put that in my config file, it doesn't work, because the Sfx module thinks my parameter is just
-DeploymentType
Because of the double quote. Is there an excape character for a double quote for the 7-zip SFX module? If there is I cannot find it!
Here is my config file:
;!@Install@!UTF-8!
Title="test"
Progress="No"
ExecuteParameters="-DeploymentType "Uninstall""
RunProgram="Deploy-Application.exe"
;!@InstallEnd@!
EDIT: It turns out that Deploy-Application.exe does not need quotes around the parameters. I just tested this by running it via cmd, like this:
Deploy-Application.exe -DeploymentType Uninstall
and it worked fine. However, when I have a config file that looks like this:
;!@Install@!UTF-8!
Title="test"
Progress="No"
ExecuteParameters="-DeploymentType Uninstall"
RunProgram="Deploy-Application.exe"
;!@InstallEnd@!
it still does not work. The parameters are ignored, which I verified with ProcessExplorer, and Deploy-Application.exe launches with no parameters.
You escape them using a forwards \
like so
ref