Page 1 of 1

Always getting NO$KEY when using CHECK REGISTRY

Posted: Tue Oct 01, 2013 10:54 am
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.

Re: Always getting NO$KEY when using CHECK REGISTRY

Posted: Wed Oct 02, 2013 10:40 am
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

Re: Always getting NO$KEY when using CHECK REGISTRY

Posted: Mon Oct 07, 2013 8:12 am
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?

Re: Always getting NO$KEY when using CHECK REGISTRY

Posted: Mon Oct 07, 2013 8:58 am
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?

Re: Always getting NO$KEY when using CHECK REGISTRY

Posted: Mon Oct 07, 2013 11:21 am
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

Re: Always getting NO$KEY when using CHECK REGISTRY

Posted: Tue Oct 08, 2013 1:06 am
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?

Re: Always getting NO$KEY when using CHECK REGISTRY

Posted: Tue Oct 08, 2013 9:19 am
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/viewtopic.php?f=2&t=7904&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

Re: Always getting NO$KEY when using CHECK REGISTRY

Posted: Thu Jan 22, 2015 11:40 am
by tofutim
Is NO$KEY a good output to check for in an IF statement?

Re: Always getting NO$KEY when using CHECK REGISTRY

Posted: Thu Jan 22, 2015 12:30 pm
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