We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

BenKeller
Posts: 1
Joined: Tue May 17, 2016 7:48 pm

Cannot Get Registry Values to Go Into Same x86 & x64 Keys

Hey Guys -

I must admin, I'm a newbie when it comes to Advanced Installer - but am learning. I've got a deployment I need to have out ASAP, but am having trouble creating the package for it. Everything works in it except for one thing.

I have two registry values which I need to have added to both x86 & x64 keys. Below is the registry file for it when works when using regedit to install:

Code: Select all

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework]
"LegacyMyComputerZone"=dword:00000001
"EnableIEHosting"=dword:00000001

[HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\.NETFramework]
"LegacyMyComputerZone"=dword:00000001
"EnableIEHosting"=dword:00000001
When importing within Advanced Installer, it only adds one set. I understand why, but have researched and tried many things yet cannot get them to go to both. For most systems I'm deploying to, I will only need them in HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\.NETFramework; but threw in the SysWow64 one just in case. If easier to just do that, please tell me how.

What I've Tried
Below is what I've tried to get them to add to both keys nad/or just the non-syswow64 one
- Creating x86 installer
- Creating x64 installer
- Adding above REG & CMD file which had "regedit /s..." string in it to Files/Folders then adding a Custom Command to run CMD script. Added "pause" to end of script and disabled window hiding so was able to verify CMD ran during installation. It did and seems to execute regedit string successfully - but - doesn't add to both keys even though it does when executed via command line!
- Adding REG values then creating Properties for them and editing with Shift F4 as one of the site documents suggests

After all of the above and more, still no go. I've got to get this out within the hour and may just resort to not using an MSI even though I prefer doing so. Any suggestions?

Thanks!
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Cannot Get Registry Values to Go Into Same x86 & x64 Keys

Hi and welcome to Advanced Installer forums.

Thank you for your interest in Advanced Installer.

In order to achieve what you want you can follow the steps from the How to install different registry entries based on the Operating System (32/64-bit) article. If you want both registry entries to always be installed, then you do not need to use the conditions mentioned in that article.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”