Installshield 64-bit OS packaging considerations

  
1. Installation directory Under the 64-bit system, the installation directory is divided into Program Files and Program Files (x86). The 64bit Application will be automatically installed under Program Files; the 32bit Application will be automatically installed under Program Files (x86). 2, system directory 64-bit system, the system directory is divided into system32 and syswow64. The 64bit AP runs under system32; the 32bit AP runs under syswow64. Installshield packaging considerations: Problem: When a 32-bit AP calls the WINSYSDIR variable, it will point to syswow64 by default, even if it calls WINDIR^"system32", it will be forced to point to syswow64. Solution: Disable (WOW64FSREDIRECTION) WOW64FSREDIRECTION: plays the role of determining which system variable is called under the 64-bit system. After the Disable, it will point to system32 by default. Note: When the installation is complete, remember Enable (WOW64FSREDIRECTION) to avoid other programs that affect the system. Experience: Disable (WOW64FSREDIRECTION) in the Installing() event; Enable(WOW64FSREDIRECTION) in the Installed() event; so the entire installation process does not have to consider when to switch. Similarly, the uninstall process also has to do this in UnInstalling() and UnInstalled() to unload the corresponding part. 3, the registry under the 64-bit system, the registry is divided into HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Run and HKEY_LOCAL_MACHINE\\Software\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Run Let the 32bit AP register in the default registry HKEY_LOCAL_MACHINE\\Software\\ In Microsoft\\Windows\\CurrentVersion\\Run, the command: REGDB_OPTIONS = REGDB_OPTIONS |  REGDB_OPTION_WOW64_64KEY; At the same time, remember to use REGDB_OPTIONS = REGDB_OPTIONS & ~REGDB_OPTION_WOW64_64KEY; -------------------------- Need to pay attention to the 32-bit The relevant directories and methods are replaced by 64 bits. This will ensure that the correct installation is under the 64-bit directory. 1.REGDB_OPTIONS allows the registry function to read and write correctly on a 64-bit win system instead of reading and writing 6432node REGDB_OPTIONS = REGDB_OPTIONS |  REGDB_OPTION_WOW64_64KEY; REGDB_OPTIONS = REGDB_OPTIONS & ~REGDB_OPTION_WOW64_64KEY; 2. Read installshield about system directory 64 3. Set compoment to 64 bit 4. . .
Copyright © Windows knowledge All Rights Reserved