Always getting NO$KEY when using CHECK REGISTRY

Got a problem you cannot solve? Try here.
Post Reply
InLoox
Posts: 12
Joined: Wed Mar 23, 2011 2:40 am

Always getting NO$KEY when using CHECK REGISTRY

Post by InLoox »

Hello,

I am using Check Registry to see if certain keys/values exists. Unfortunately I am always receiving NO$KEY even if there's actually a key/value in the registry. I am using the following code:

These two are working properly:
Check Registry Key HKLM\SOFTWARE\Microsoft\Office\14.0\Outlook\Bitness into OUTLOOK_BITNESS_2010
Check Registry Key HKLM\SOFTWARE\Microsoft\Office\15.0\Outlook\Bitness into OUTLOOK_BITNESS_2013

The next four are always returning NO$KEY even though under HKLM\SOFTWARE\Microsoft\Office\14.0\Outlook\InstallRoot\Path is actually a value.

Check Registry Key HKLM\SOFTWARE\Microsoft\Office\14.0\Outlook\InstallRoot\Path into OUTLOOK_2010_INSTALLROOT_EXISTS (this must return a value the key definately exists on the machine I am testing)
Check Registry Key HKLM\SOFTWARE\Microsoft\Office\15.0\Outlook\InstallRoot\Path into OUTLOOK_2013_INSTALLROOT_EXISTS
Check Registry Key HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\14.0\Outlook\InstallRoot\Path into OUTLOOK_2010_WOW6432_INSTALLROOT_EXISTS
Check Registry Key HKLM\SOFTWARE\Wow6432Node\Microsoft\Office\15.0\Outlook\InstallRoot\Path into OUTLOOK_2013_WOW6432_INSTALLROOT_EXISTS

Please advice.
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Always getting NO$KEY when using CHECK REGISTRY

Post by FrancescoT »

Dear User,

I'm sorry, but I am not able to verify the same results as you.
However, I can't replicate your exact registry configuration ... due the office package (...I suppose) installed on your system.

Please try to release a very minimal project that demonstrates the issue and I'll verify it.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InLoox
Posts: 12
Joined: Wed Mar 23, 2011 2:40 am

Re: Always getting NO$KEY when using CHECK REGISTRY

Post by InLoox »

Hello,

I think found the issue. I made a complete new "mini" project just with the registry checks and the code is working on a Win 7 machine and returns the keys. Unfortunately it doesn't work on Windows 8. Even though I executed the Setup as Administrator and turned off the UAC completely.

Do you have any idea, what the problem might be?
InLoox
Posts: 12
Joined: Wed Mar 23, 2011 2:40 am

Re: Always getting NO$KEY when using CHECK REGISTRY

Post by InLoox »

For your information:

We're using InstallAware Studio 15.

I have just tried to set the compatibility mode to Windows 7 (by right clicking the setup.exe -> properties ....) and now it works.
Is Studio 15 not compatible with Windows 8? Is it possible to set the compatibility mode within the setup?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Always getting NO$KEY when using CHECK REGISTRY

Post by FrancescoT »

Dear User,

For what I know IA 15 supports Win8 ... but of course, it has been not tested with Win 8.1 (not available at that time).

... are you using Win 8 or Win 8.1?

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InLoox
Posts: 12
Joined: Wed Mar 23, 2011 2:40 am

Re: Always getting NO$KEY when using CHECK REGISTRY

Post by InLoox »

Dear Francesco,

it is Windows 8 not Windows 8.1 . By the way I found out that we're using 15.4.1.2013 as far as I could see the latest Version of the 15 is 15.5. Where can we download it?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Always getting NO$KEY when using CHECK REGISTRY

Post by FrancescoT »

Dear User,

I may suggest you to have a look at the following forum topic (managed by IA users directly), where it is possible to download some past IA versions installers:
http://www.installaware.com/forum/viewt ... 04&start=0

However, you need a specifc personal activation file to activate it (if available) ... and this will be not available with the above link.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
tofutim
Posts: 176
Joined: Thu Mar 01, 2012 1:16 pm

Re: Always getting NO$KEY when using CHECK REGISTRY

Post by tofutim »

Is NO$KEY a good output to check for in an IF statement?
FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Always getting NO$KEY when using CHECK REGISTRY

Post by FrancescoT »

NO$KEY means that the REG-KEY you are querying it doesn't exist.

If you are sure that your READ REGISTRY command gets executed over a correct key ... you may use it with a conditional evaluation.

Regards
Francesco Toscano
InstallAware Software

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