install file into C:\Windows\system32 on 64-bit machine - Advanced Installer Community
yannanfei_13
Posts: 5
Joined: Mon Nov 02, 2015 8:54 am

install file into C:\Windows\system32 on 64-bit machine

The folders in the "Files and Folders" page use predefined and custom installer properties which store their paths.
System SystemFolder C:\Windows\system32 C:\Windows\SysWow64 on a 64-bit machine
System 16 System16Folder C:\Windows\system used on older Windows versions
System 64 System64Folder C:\Windows\system32 resolved only on 64-bit machines
i'm on a 64-bit machine,so SystemFolder is resolved as C:\Windows\SysWow64,but my file should install into C:\Windows\system32 .i create a folder named system32 in Windows,then add my file into system32 ,but it still work.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: install file into C:\Windows\system32 on 64-bit machine

Hello,

Is the installation package set to 64-bit? This is done in the Install Parameters page through the "Package Type" combo. Note that only 64-bit installation packages can install files into 64-bit locations. Also, if you application is 32-bit, it should install its files into 32-bit locations (in the "SysWow64" folder, not in "system32").

The "System" folder in the "Files and Folders" page is associated with the SystemFolder installer property. This property is resolved to "C:\Windows\system32" on a32-bit machine and to "C:\Windows\SysWow64" on a 64-bit machine.

If you want to install files in the "system32" folder on a 64-bit machine, you need to place your files in the "System 64" folder in the "Files and Folders" page (not in the "System" folder). This folder is associated with the System64Folder property.

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

Return to “Common Problems”