PDA

View Full Version : Install dir from registry (symbols " ")


ThunderBoy
03-04-2007, 08:40 AM
How obtain installer directory, when registration key includes symbols " " ? :eek:

example:

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Curr entVersion\Uninstall\"Title in one's program"_is1]
"Inno Setup: App Path"="c:\\....."
------------------------------------------

Registry.GetValue(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\...Uninstall\\"Title in one's program"_is1", "Inno Setup: App Path", true);

Like that is this written in register!!! :huh


Accordingly what script me write out near installation program existing paths at the system, who extract from register?
What I am found in forum, so nothing doesn't work.


Thanks

JXBURNS
03-05-2007, 06:55 AM
Try

Registry.GetValue(HKEY_LOCAL_MACHINE, "\\SOFTWARE\\...Uninstall\\\"Title in one's program\"_is1", "Inno Setup: App Path", true);

Note the extra escape sequence \ before each of the "

John