Installing .NET Framework with my app using MSI

纵饮孤独 提交于 2019-11-29 08:13:21

How did you install the product?

The setup project will output two files:

  • a Windows Installer package (.msi), and
  • a so-called bootstrapper (setup.exe)

The bootstrapper will check for the presence of any pre-requisite that you specified and possibly download and install it if it is not installed yet and then continue to install your application (by calling the .msi). Therefore you should always start the setup.exe to install your application and not the .msi file (unless you know that all pre-requisites are on the target system).

As Krakkos says, the bootstrapper will install both the pre-requisites and your application (i.e. your .msi file). However, I'm not aware of any configuration settings which would prevent the bootstrapper from installing the msi.

To troubleshoot you could try to create a log of your installation and look for any problems in the log file.

user20353

Thanks Divo,

I was running the MSI file.

Are there any limitations when running the Setup.EXE file? If I remeber correctly, I tried once to run it on Windows 2000 and it didn't run. I was able to run only the MSI file. I am going to check on a PC with clean Win2000 and come back.

EDIT: I have tried it on clean Windows 2000 SP4 and here are the results:

  • Setup.exe will not run with a message about missing HeapSetInformation in Kernel32.dll
  • Setup.msi will aso not run (the .msi extension is unknown)

Then I manually installed Windows Installer 3.1:

  • Setup.exe will still not run with the same error message
  • Setup.msi will run successfuly (but will install only .NET without my app...my initial problem)

On Windows XP, the Setup.exe runs without any problems.

It seems that users with Win2000 will have to install my app manually by installing Windows Installer 3.1, .NET 2.0 and then my app. Even when .NET is manually installed, the Setup.exe will still show the same error message under Win2000 SP4.

EDIT: The Win 2000 issue can be fixed by installing the Update Rollup 1 for Windows 2000 SP4 (KB891861).

This episode of Hanselminutes goes into great detail about how Paint.Net arranges for downloading & installing the required .NET framework on demand, and integrating with the application installation. Admittedly this is probably way more complex that most applications require, but is an interesting discussion nonetheless.

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