Registry values and program files bitness related problem - Advanced Installer Community
dreadct
Posts: 1
Joined: Fri Apr 10, 2015 8:43 am

Registry values and program files bitness related problem

Hello.

I've a problem with extracting RAW content of registry string values which contains "Program Files" or "Program Files (x86)" - it always extracted wrong way replacing original value.

I found strict dependency - no matter what program files substring you have in registry value it always relaced with MSI package bitness related program files name.

I attached zipped test project and few .reg files with test string entries.

Please note that AAA_MIXED.reg contains path with "Program Files (x86)" for Wow6432Node registry portion and path with "Program Files" for x64 registy portion. AI project contains 2 builds, one is x64 and other is x86 (named the same). Both off them contains 2 RAW value registy searches for values of .reg files entries, one is for x64 registry portion and other is for x86 portion.

I added message box custom action to indicate properties when initial dialog appears. What's intersting it doesn't matter what registry portion we searching or is program files bitness corresponds to registry portion bitness - search properties are always generated with program files of MSI package bitness.

Hopefully there will be some fix in near future as it is currently really blocking issue for our product.

Vadim
Attachments
AAA.zip
(3.72 KiB) Downloaded 178 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Registry values and program files bitness related proble

Hi Vadim and welcome to Advanced Installer forums,

Please keep in mind that by default the registries searches use 32-bit locations no matter what package type your application has and no matter on what operating system (32-bit or 64-bit) your application runs.
You should check "Search the 64-bit portion of the registry" option only if you want to search in the 64-bit portion of the registry when your application runs on a 64-bit machine, no matter what package type your application has. If your application runs on a 32-bit machine and you are using this option for a registry search, then this flag will be ignored.

Also, the attached project you sent me seems ok. Note that the AAA search operation will not be able to access the 64-bit portion of the registry and the AAA_X64 search operation can access the 64-bit portion of the registry.

By the way, you have used the same code in your Display Message Box custom action.

Code: Select all

AAA: [AAA]
AAA_x64: [AAA]
I assume you wanted something like that, right?

Code: Select all

AAA: [AAA]
AAA_x64: [AAA_X64]
Please note that you can use the [ Test ] toolbar button or the “Test” context menu item while the "Searches" tree root (Target Computer) or a search property is selected. A MSI will be launched to test your searches and the results will be displayed in the Search Results.

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”