Production of 32-bit and 64-bit consolidated installation packages

Source: Internet
Author: User

Environment:

Packaging Tool: IS2014

Project type: InstallScript

Steps:

1. Place 32-bit files and 64-bit files under two separate component

2. Set the properties of two component respectively

1) 32-bit component set the component to No, and then platform Suite (s) for Windows 32-bit Editions (All)

2) 64-bit component set the component to Yes, and then platform Suite (s) is set to Windows 64-bit Editions for Itanuim or Windows 64-b depending on your software It Editions for AMD

3. Set path

1) 32-bit installation package The current installation directory is set to programfiles^ "XXX"

2) 64-bit installation package The current installation directory is set to programfiles64^ "XXX",

If there is a system32 directory involved, the is also provides the corresponding variables Winsysdir and WINSYSDIR64

4 make the 32-bit and 64-bit installation package, there is a more critical set point, is the installation process appears the default installation path selection, you can handle:

1) Empty the TARGETDIR directory settings in the generation information;

2) then modify the path selection code as follows

if (SYSINFO.BISWOW64) then

targetdir=programfiles64^ "XXX";

Nresult = Sdaskdestpath (SzTitle, szmsg, TARGETDIR, 0);

Else

targetdir=programfiles^ "XXX";

Nresult = Sdaskdestpath (SzTitle, szmsg, TARGETDIR, 0);

endif

This is done with an integrated 32-bit and 64-bit installation package.

Attention:

1. If you copy a file in a 64-bit system by writing a script, you need to add it before copying the code

Disable (wow64fsredirection) redirects to the System32 folder to resolve the 64 system default copy file to the SysWOW64 folder. Once the files have been copied, enable (wow64fsredirection) to restore the settings to avoid any other programs that affect the system.

2. There is also a need to note that the 64-bit system to copy files, in addition to the redirected directory, the corresponding function should be written correctly, otherwise there is no way to copy to the desired directory. For example, 32-bit system System32 folder corresponding to the Winsysdir function, 64-bit system corresponding WINSYSDIR64

3. If you are involved in the operation of the 64-bit system registry, you can do so by regdb_options = Regdb_options | Regdb_option_wow64_64key switch the registry, otherwise the default is written to the Hkey_local_machine\software\wow6432node key value. Use up Remember regdb_options = regdb_options & ~regdb_option_wow64_64key restore settings to avoid other programs that affect the system.

Production of 32-bit and 64-bit consolidated installation packages

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.