Read Registry sub key?

Got a problem you cannot solve? Try here.
Post Reply
QooScho
Posts: 152
Joined: Fri Apr 15, 2011 1:02 am

Read Registry sub key?

Post by QooScho »

Hello
I try that my installer checks for an existing program installed on the PC
if program is installed the registry is HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\#.##

where #.## is a version number which can be differ and I do not know before
I tried with Check Registry:

Check Registry Key HKLM\Software\GPL Ghostscript\ into GHOSTSCRIPTFOUND

If it is not installed it returns NO$KEY which is ok. If it is installed it returns NO$VALUE
But how can I find out the correct version number , for example
HKEY_LOCAL_MACHINE\SOFTWARE\GPL Ghostscript\9.02 ?

regards
Hans
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Read Registry sub key?

Post by giaviv »

Hans,

I am afraid you can only read values, and not whole subkeys.

As a workaround you can invoke reg.exe using InstallAware's Run Program command.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply