Inno setup quotes problem
In my inno setup installer in [Run] section I want to run a cmd command, but here is the problem. I want to run an exe with parameters, "My Program.exe" install I want to开发者_如何学Python run like this but since it has spaces in the name I cannot run it without "" and this is gives me error because inno setup has "" too. Similarly I want to start my service net start "My Service" and got same problem.
Did you try with something like this :
Run: " ""My Program.exe"" ";
The double quotes seems to be a quite good solution according to the Inno Setup documentation
Maybe this is what you are searching for:
Run another Setup after install:
[Run]
Filename: "{#path}\My Setup.exe"; Parameters: "Parameter here"Run CMD with Parameter after install:
[Run]
Filename: "C:\Windows\system32\cmd.exe"; Parameters:"Parameter here"
etc.
精彩评论