Archive: Changing install path to a registry key value?


Changing install path to a registry key value?
Is there a way to change the install path to a registry key value insted of using the predefiend install paths and if so how would i go about doing that?


ReadRegStr $OUTDIR <root_key> <sub_key> <name> should be equivalent to using SetOutDir with the directory contained in the key, while still preserving what was entered as the installation directory. If you want to actually modify the installation directory itself, use $INSTDIR instead of $OUTDIR.

Or, if you're thinking about using a registry value for the predefined path to install to, put InstallDirRegKey <root_key> <sub_key> <name> before your sections. You can exclude the directory page if it's supposed to be automatic.