Archive: Passing install location to separate silent installer.


Passing install location to separate silent installer.
I have an installer(A) that calls another installer(B) silently:

File /oname=$PLUGINSDIR\setup.exe "setup.exe"
ExecWait "$PLUGINSDIR\setup.exe /S" $0

The silent installer(B) defaults to "C:\ProgramFiles\MyProgram"

Is it possible to somehow pass a custom install location chosen by the user in installer(A) to installer(B) so that (B) installs at the custom location?

I appreciate the help.


Use ${GetParameters} for installer (B)

http://nsis.sourceforge.net/Docs/AppendixE.html#E.1.11


This should work since /D= allows you to pass in a default installation directory.
ExecWait '$PLUGINSDIR\setup.exe /S /D=$INSTDIR' $0


Thanks guys.