Page 1 of 1

Read and Check Registry not working

Posted: Sun Nov 17, 2013 3:10 am
by Seán
Hi,

I would like to refer anyone with this issue to my follow up post here where I believe I've cracked it...

viewtopic.php?f=4&t=9783

Best regards


having problems with Read Registry and Check Registry.

I've installed IA 18.11.6.13 on Windows 7 x64 fully patched.

I've created a simple install package and am checking to see if Office 2010 or 2013 are installed as follows:

Code: Select all

Read Registry Key HKCU\SOFTWARE\Microsoft\Office\14.0\Excel\InstallRoot\Path\ into Office2010_Installed_Read
Read Registry Key HKCU\SOFTWARE\Microsoft\Office\15.0\Excel\InstallRoot\Path\  into Office2013_Installed_Read
Check Registry Key HKCU\SOFTWARE\Microsoft\Office\14.0\Excel\InstallRoot\Path\ into Office2010_Installed
Check Registry Key HKCU\SOFTWARE\Microsoft\Office\15.0\Excel\InstallRoot\Path\  into Office2013_Installed

I have tried both HKCU and HKCM but none of them returns the value of the Key. Any thoughts or advice?

AHAHAH - IS THIS a bug in InstallAware...

When I copied the Registry Key from the Registry this is the Key string I got.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\15.0\Excel\InstallRoot

InstallAware uses the strings HKCU and HKCM and not HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE which are actually found in the Registry

How do we tell InstallAware to use the both the full string name and the short ones? Because from my reckoning InstallAware wll never find any keys under if it only uses short strings on Windows 7 x64.

Thanks and regards

Re: Read and Check Registry not working

Posted: Mon Nov 18, 2013 10:58 am
by FrancescoT
Dear Seán,

what you are reporting it is not an InstallAware bug.

As many other applications or tools, we use a short form for the registry KEY root.

Honestly, I really don't understand the source of your problem... anyway, we only use those registry KEY root prefixes only.

Regards

Re: Read and Check Registry not working

Posted: Wed Nov 20, 2013 11:27 am
by Seán
I would like to refer anyone with this issue to my follow up post here where I believe I've cracked it...

http://www.installaware.com/forum/viewtopic.php?f=4&t=9783

Best regards

Re: Read and Check Registry not working

Posted: Wed Nov 20, 2013 11:31 am
by FrancescoT
... Thanks for sharing it!

Regards