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!

doniangel
Posts: 1
Joined: Fri Jan 09, 2015 2:25 pm

Problem dat file

Hello,

I have a problem to create an msi, in my msi I install tow file in different folders:
- shortcut file in "Favorites" folder
- .dat file in "windows\System32" folder

For the shortcut the installation is OK, for the .dat the msi install the file in the "Windows\SystemWOW64" folder.
I have change the Package Type "32-bit package , 64-bit or Mixed" and the problem is same.

Can you help me ?

Thanks for your help

Best regards
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Problem dat file

Hello and welcome to Advanced Installer forums,

When a 32-bit application writes or reads a value under the C:\Windows\System32 directory , the application reads from the C:\Windows\SysWOW64 directory on a 64-bit OS.
Their 32-bit counterparts are resolved to redirected locations as follows:
  • ProgramFilesFolder - C:\Program Files (x86)\
  • CommonFilesFolder - C:\Program Files (x86)\Common Files\
  • SystemFolder - C:\Windows\SysWOW64\
This is the default behavior for Windows Installer. A 32-bit installation package, on 64-bit machines, cannot install resources into 64-bit locations (i.e. "Program Files" folder).

Indeed, the correct approach is to select the Mixed 32/64-bit matching the platform option for the package type. This way, the package runs as a 32-bit package on 32-bit systems and as a 64-bit package on x64 systems.

Since you want to install some files in the C:\Windows\system32 location on a 64bit OS, then you need to place the related files in the
Windows Volume -> Windows -> System 64 folder from the Files and Folders view. Also, you can take a look on the Folder paths article which may be useful to you.

Please let us know if that helped.

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

Return to “Common Problems”