launching correct installer for 32 and 64-bit apps

我的未来我决定 提交于 2019-12-04 13:35:46

There does not appear to be any 32/64bit detection support inherent in autorun.inf files.

The convention that most applications which supply a 32 and 64 bit MSI follow is similar to the second option you mention.

  1. Create a single 32bit setup.exe application (so that it will run on either platform). Ideally this will be written in C/C++ so that it is as small and quick as possible, and has no dependencies on other libraries/frameworks (eg. static linked).
  2. Detect if you are running on 64bit or not (see sample code for Windows API IsWow64Process function
  3. Execute the appropriate MSI
Yochai Timmer

You can use a custom action to detect the OS, then call the right installer.

I've given an example here: Single MSI to install correct 32 or 64 bit c# application

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!