Archive: InstallDirRegKey


InstallDirRegKey
Hi there,

ATM I am writing an update-script, which reads the installations-path of "myapp" from the registry:

InstallDirRegKey HKLM SOFTWARE\MYAPP "PATH"


This returns "C:\program files\path"

Now I would like to ask the user, if the path is correct:

DirText "The installer has detected the path bla


But I want the dialog of "DirText" to show the subdirectory, the update should be installed to:
"C:\program files\path\update".
ATM the dialog only shows "C:\program files\path"

Is it possible to modify the "variable"?

Best regards,
Tobias

Use StrCpy.

StrCpy $MYVAR $MYVAR\path


does not work outside a Section :-(

ah, I have found a workaround - THANKS!


You'll have to put it in the .onInit function of course.


1. InstallDirRegKey HKLM SOFTWARE\MYAPP "PATH"
2. .onInit fuction
3. StrCpy $MYVAR $MYVAR\path

correct?


Function .onInit
StrCpy $MYVAR $MYVAR\path
FunctionEnd

okay, thanks :-)