Hi all,
We need to read the InstallLocation of main software to be able to install additional features.
I tried this command
Read Registry Key HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{3FFEDCC8-20DB-4361-8E21-68DB28A81539}\InstallLocation into INSTALL_LOCATION
But result is always empty.
Is there an other solution for detecting installation directory of a software.
Thanks for your help
Best regards
Registry read InstallLocation
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Registry read InstallLocation
Did you check "manually" if this exists?
Are you querying the reg-key of a x64 target OS?
Are you querying the reg-key of a x64 target OS?
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
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
Re: Registry read InstallLocation
Hi thanks for your answer,
It exists manually.
It is a x64 system and I tried
Read Registry Key HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\product name\InstallLocation into INSTALL_LOCATION
which works.
Thanks for your help.
Best regards
It exists manually.
It is a x64 system and I tried
Read Registry Key HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall\product name\InstallLocation into INSTALL_LOCATION
which works.
Thanks for your help.
Best regards
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Registry read InstallLocation
I would recommend you to not use such approach. Because this may compromise the default registry key redirection operated by the target operating system.
By default, the setup engine runs in 32 bit mode (if not forced to 64 bit explicitly via “Set 64 Bit mode”).
Consequently, any script command used to query a “know System Folder” or to query/manuìpulate a "Registry Key", due native OS redirection, this will return the respective x86 or x64 system path, depending on the currently active "processor architecture" defined with the script.
https://www.installaware.com/forums/viewtopic.php?f=2&t=10813
Hope this helps you.
By default, the setup engine runs in 32 bit mode (if not forced to 64 bit explicitly via “Set 64 Bit mode”).
Consequently, any script command used to query a “know System Folder” or to query/manuìpulate a "Registry Key", due native OS redirection, this will return the respective x86 or x64 system path, depending on the currently active "processor architecture" defined with the script.
https://www.installaware.com/forums/viewtopic.php?f=2&t=10813
Hope this helps you.
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
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
Who is online
Users browsing this forum: No registered users and 61 guests