This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Reading the 64 Bit Software Key From a 32 Bit Installer...
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 21, 2013
03:59 PM
Reading the 64 Bit Software Key From a 32 Bit Installer...
Hi all,
Forgive me if I may have asked about this before, but I can't find any thread involving me.
I'm grabbing a value from the HKLM\SOFTWARE\MyCompany\MyApp .. Path value on a 64 bit machine. That value holds C:\Program Files\MyCompany\MyApp\ as its value. I know that checking the 64 bit registry attribute when adding my Reg Value System Search is working because the value only exists in that hive and not in Wow6432Node.
However, if I display the value pulled, it has been converted to C:\Program Files (x86)\MyCompany\MyApp\. So, any Set Directory custom actions used to direct some components to the 64 Bit file system location do not work as intended.
What I've done to work around this problem is use separate, native 64 bit installer to handle 64 bit tasks.
I was just wondering if there was a way to get the directories set to 64 bit file system locations from our 32 bit installer. I believe I brought this up in the past, but just can't find any reference to it.
Any help appreciated!
Forgive me if I may have asked about this before, but I can't find any thread involving me.
I'm grabbing a value from the HKLM\SOFTWARE\MyCompany\MyApp .. Path value on a 64 bit machine. That value holds C:\Program Files\MyCompany\MyApp\ as its value. I know that checking the 64 bit registry attribute when adding my Reg Value System Search is working because the value only exists in that hive and not in Wow6432Node.
However, if I display the value pulled, it has been converted to C:\Program Files (x86)\MyCompany\MyApp\. So, any Set Directory custom actions used to direct some components to the 64 Bit file system location do not work as intended.
What I've done to work around this problem is use separate, native 64 bit installer to handle 64 bit tasks.
I was just wondering if there was a way to get the directories set to 64 bit file system locations from our 32 bit installer. I believe I brought this up in the past, but just can't find any reference to it.
Any help appreciated!
(6) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 22, 2013
09:04 AM
Try this in your Set Directory CA:
Disable(WOW64FSREDIRECTION);
and Enable it after your directory manipulation.
Disable(WOW64FSREDIRECTION);
and Enable it after your directory manipulation.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Mar 22, 2013
09:09 AM
OldBean wrote:
Try this in your Set Directory CA:
Disable(WOW64FSREDIRECTION);
and Enable it after your directory manipulation.
I'm using a Basic MSI project and don't know if that matters, but I don't see a place to user the Disable/Enable switch as suggested.
I think, since the components are not marked as 64 bit, I can't get them to the 64 bit file system (directories always resolved to 32 bit file system). That is why I had to create the second x64 .msi launced after completion of my 32 bit installer. In there, third party Merge Module components and our components are marked as 64 bit and all works fine.
Until I get the time to create a complete 64 bit version of our current install to be used on that architecture, I'll have to keep my fingers crossed and go with the separate .msi for now.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 03, 2013
08:40 AM
I would try going to “Files and Folders” view, right click on “Destination Computer”, and in “Show Predefined Folders” menu choose [ProgramFiles64Folder].
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 03, 2013
08:41 AM
ElenaN wrote:
I would try going to “Files and Folders” view, right click on “Destination Computer”, and in “Show Predefined Folders” menu choose [ProgramFiles64Folder].
I believe I tried that in the past and it still resolves to Program Files (x86) when running the 32 bit installer on a 64 bit machine.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 03, 2013
11:17 AM
You can not read 64-Part Registry in 32-Bit setup.
You can do it using CA.
You can not copy files in 32-Bit setup to 64-Bit directory.
You can not in one setup put 32 and 64 Bit components.
You can do it using CA.
You can not copy files in 32-Bit setup to 64-Bit directory.
You can not in one setup put 32 and 64 Bit components.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Apr 03, 2013
12:21 PM
Roman1 wrote:
You can not read 64-Part Registry in 32-Bit setup.
You can do it using CA.
You can not copy files in 32-Bit setup to 64-Bit directory.
You can not in one setup put 32 and 64 Bit components.
It seems you can read the 64 bit registry if that bit is set, but using that value in Set Directory in a 32 bit installer will not work.