Archive: InstallDirRegKey and $INSTDIR


InstallDirRegKey and $INSTDIR
Is this correct?

If InstallDirRegKey gets a valid value, this will be automatically put in $INSTDIR.

If that's not correct, how do I get the value from InstallDirRegKey into $INSTDIR?

Thanks much!


Yes it will automatically replace the value in $INSTDIR with the value found in the specified key. If you do want to do this manually you should read the registry using standard ReadRegStr and assign that value to $INSTDIR in the .onInit function. Using the manual method will enable you to further process the information read from the registry.

Vytautas


Thanks much for your quick response!!!