Skip to content
⌘ NSIS Forum Archive

InstallDirRegKey

7 posts

TobWen#

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
TobWen#
1. InstallDirRegKey HKLM SOFTWARE\MYAPP "PATH"
2. .onInit fuction
3. StrCpy $MYVAR $MYVAR\path

correct?