Adding Files from Your 64-Bit Source Machine’s 64-Bit System32 Folder

InstallShield 2016

On 64-bit systems, the System32 folder is reserved for 64-bit applications. When you try to view your development machine’s 64-bit System folder from within the Files and Folders view in InstallShield, Windows redirects the view to instead display the SysWOW64 folder—the 32-bit version of the folder. Thus, when you are using InstallShield on a 64-bit system and you want to add to your project a system file whose source location is the 64-bit System folder (System32) on your development machine, it is not possible to drag the file from one of the source computer panes at the top of the Files and Folders view to the appropriate location in one of the destination computer panes.

To work around the redirection and add a 64-bit System32 file on your development machine to your InstallShield project, you can browse to the Sysnative folder on your machine and then select the appropriate file for your project. The following instructions explain how.

Caution • Note that in many cases, including system files in an installation is not recommended, since the system folder is protected by Windows. In these cases, the preferred way to deliver and update system files is to use a Microsoft redistributable, if one is available for the technology, or to have end users obtain the updates through Windows Update.

To add to your project a file in the 64-bit System32 folder of a development system that has 64-bit Windows:

1. In the View list under Application Data, click Files and Folders.
2. In the Destination computer’s folders pane, click the folder into which you want to place the file.
3. Right-click in the Destination computer’s folders pane, and then click Add File. The Open dialog box opens.
4. Specify the following path (but replace the drive letter with the applicable drive letter if appropriate):

C:\Windows\Sysnative

5. Select the appropriate file that you want to add to your project, and then click the Open button.

InstallShield adds the file to your project. InstallShield uses the Sysnative folder as part of the path for the source file that you added. WOW64 sees the Sysnative folder as a special alias; the file system does not redirect access away from this folder.

Tip • Note that you can also add 64-bit System32 files through the Components view or the Setup Design view: in these views, expand the node of the component that you want to contain the 64-bit System32 file. Select the Files node under that component. Then, right-click the Files pane on the right, and then click Add File. Specify the C:\Windows\Sysnative path, as described in the aforementioned procedure.

Availability of Sysnative Folder Support on Windows-Based Systems

Use of the Sysnative folder is not supported on 32-bit machines. If you use the Sysnative folder in an InstallShield project on a 64-bit system but then you try to build a release in that InstallShield project on a 32-bit system, InstallShield generates one or more build errors or warnings informing you that it could not find the source file.

If you are using the automation interface with InstallShield or the Standalone Build to create, edit, or build an installation on a 64-bit machine that has Sysnative support, you can use the Sysnative folder in paths when you are specifying the source folder for system files that are in the 64-bit System folder.

See Also