right, ive just started using NSIS to act an installer for custom patches for the Ultima Online Shard that i work for and weve recently released patches that all players need. ONly many have had problems not knowing where to install them so ive been looking into using NSIS to install them.
What ive had problems with is setting the install dir using the registry.
the key im trying to use is in HKEY_LOCAL_MACHINE\Software\Origin Worlds Online\Ultima Online\1.0 and is stored in the "ExePath" box.
My problem being is i cant get NSIS to recognize the reg key, i think im entering it wrongly so if someone cold help me i would be very grateful
This is what ive currently got it as:
; The default installation directory
InstallDir "$PROGRAMFILES\Ultima Online"
; Registry key to check for directory (so if you install again, it will
; overwrite the old one automatically)
InstallDirRegKey "HKEY_LOCAL_MACHINE\SOFTWARE\Origin Worlds Online\Ultima Online\1.0" "ExePath"
im fairly sure its wrong, but being a newbie
id be very grateful if someone could correct it for me.