byteloser
26th May 2009 22:59 UTC
Why is silent mode ignoring option /D???
My setup works like a charm except of the parameter /D in silent mode. I am executing my setup like:
setup.exe /S /D=C:\TestDir
I also tried
setup.exe /S /D="C:\TestDir"
without any success. The setup will always install to the directory I defined in the script file, which I did as followed:
...
InstallDir "$PROGRAMFILES\MyApp"
InstallDirRegKey HKLM "${PRODUCT_DIR_REGKEY}" ""
...
What am I doing wrong here???
Thanks for your help.
Cheers!
Byteloser
Anders
26th May 2009 23:35 UTC
from the docs: "It must be the last parameter used in the command line and must not contain any quotes, even if the path contains spaces. Only absolute paths are supported.
"
byteloser
27th May 2009 00:58 UTC
I tried both versions (with and without quotes) and I always use /D= as last parameter. However, it just doesn't work :(
Cheers!
Byteloser
Afrow UK
27th May 2009 11:54 UTC
Maybe it's reading the install directory from the registry (InstallDirRegKey)?
Stu
kichik
27th May 2009 15:58 UTC
Command line takes precedence over InstallDirRegKey. But if you edit $INSTDIR in .onInit, that's your responsibility.