Windows Installer applies WIN64DUALFOLDERS substitution - Advanced Installer Community
gwood@q
Posts: 5
Joined: Wed Jun 17, 2026 9:07 pm

Windows Installer applies WIN64DUALFOLDERS substitution

Installing plugins to existing product.
Registry entry specifies location of existing product.
Existing product is 64 bit.
Is installed in C:\Program Files\Quasonix\RxAn
Registry RAW value matches.

From plugin install log
MSI (c) (7C:F4) [16:12:58:164]: Doing action: AppSearch
Action 16:12:58: AppSearch. Searching for installed applications
MSI (c) (7C:C0) [16:12:58:164]: Creating MSIHANDLE (267) of type 790531 for thread 8896
MSI (c) (7C:C0) [16:12:58:164]: Closing MSIHANDLE (267) of type 790531 for thread 8896
Action start 16:12:58: AppSearch.
MSI (c) (7C:C0) [16:12:58:164]: Creating MSIHANDLE (268) of type 790531 for thread 8896
MSI (c) (7C:C0) [16:12:58:164]: Closing MSIHANDLE (268) of type 790531 for thread 8896
AppSearch: Property: RXAN_INSTALL_RAW, Signature: AppSearchSign_1
MSI (c) (7C:C0) [16:12:58:164]: Creating MSIHANDLE (269) of type 790531 for thread 8896
MSI (c) (7C:C0) [16:12:58:164]: Closing MSIHANDLE (269) of type 790531 for thread 8896
MSI (c) (7C:F4) [16:12:58:164]: Note: 1: 2262 2: Signature 3: -2147287038
MSI (c) (7C:F4) [16:12:58:164]: WIN64DUALFOLDERS: 'C:\Program Files (x86)\' will substitute 17 characters in 'C:\Program Files\Quasonix\RxAn\' folder path. (mask argument = 0, the folder pair's iSwapAttrib member = 0).
MSI (c) (7C:F4) [16:12:58:164]: PROPERTY CHANGE: Adding RXAN_INSTALL_RAW property. Its value is 'C:\Program Files (x86)\Quasonix\RxAn\'.
Action ended 16:12:58: AppSearch. Return value 1.


WIN64DUALFOLDERS is substituting to 32 bit path.

Plugin package type is 64 bit.
All components are 64 bit.
Registry search is 64 bit, raw.
AppSearchSign_1 type is 18

This is Windows Installer/AppSearch behavior, not an incorrect Advanced Installer search configuration.

The lookup succeeds and reads the correct registry entry, but MSI's dual-folder processing rewrites the returned path:

The Assistant has been unable to come up with a solution.

Help?
gwood@q
Posts: 5
Joined: Wed Jun 17, 2026 9:07 pm

Re: Windows Installer applies WIN64DUALFOLDERS substitution

Examining the msi with Orca, the 'platform' value is not set. Explicitly setting the platform value to x64 solves the problem.

The msi is marked as 64 bit package. All components are marked as 64 bit. The registry search is marked as 64 bit.

The package still runs as 32 bit package.

In Builds > Configuration > MSI summary information, template summary/template field is Use default value, which leaves it blank in the msi.

Assistant:
Go to Builds → Configuration → MSI Summary Information.
Edit the Template Summary/Template field.
Select Use specific value.
Enter:
x64;<language-id>

This seems to work, but feels like a fragile workaround.

This seems like a defect in Advanced Installer 24.0
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Windows Installer applies WIN64DUALFOLDERS substitution

Hello,

Thank you for the additional details.

I tried to reproduce this on my side using both MSI and EXE packages configured as 64-bit package for x64 processors, but I was not able to reproduce the WIN64DUALFOLDERS substitution.

Could you please also send us the .AIP project file that reproduces the behavior, by email to support at advancedinstaller dot com?

There may be a specific project setting or build configuration involved, and having the project should help us reproduce the same result.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”