Hi there,
I read all messages about this topic. But unfortunately it still doesn't work. I'm reading a value out of the registry in the onInit-Function. Then I set the InstallDir to this var.
But the field in the installation stays blank.
Anybody an idea?
Greetings
InstallDir onInit out ouf registry
2 posts
The value you pass to InstallDir using:
You can also use InstallDirRegKey and then tweak $INSTDIR in .onInit instead of reading the registry yourself.
is processed when the installer loads, before .onInit so you can use $INSTDIR in .onInit. You should therefore copy the new value directly to $INSTDIR using:InstallDir "C:\something\blah"
and not copy it to $R8.StrCpy $INSTDIR $InstallDir
You can also use InstallDirRegKey and then tweak $INSTDIR in .onInit instead of reading the registry yourself.