I haven't found a thread that describes the same issue that I'm having, therefor I will try to detail my problem as much as I can.
I've created an installer which will read a certain registry key and, after "parsing" it with StrCpy, it will write it in another registry key. When the installer ends (.onGUIEnd) that new created registry key will be deleted; so it will act as a temporary registry key.
The problem that I've encounter is that the installer doesn't read the new written registry key.
The following code will write the temporary registry key without any problem.
Now, if I want to get that key and make it the installation directory, it won't be able to read it.Var $one
Function test
ReadRegStr $one HKLM SOFTWARE\Program\Nice InstallPath
!define something $one\install_here
WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Stuff TMP" "TMPPath" "${something}"
FunctionEnd
The above code-line will only work if the installer is reopened and the temporarily registry key is not deleted upon closing.InstallDirRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\Stuff TMP" "TMPPath"
My question is: How can I write and read the same registry key in the same installation process?
Looking forward to your reply.