安装程序要求安装.NET 4.0,而VS2010中仅使用3.5

Bar*_*chs 6 .net installer visual-studio-2010

我正在为我的应用程序构建一个安装程序,它完全使用.NET 3.5 Client Profile构建.在我的安装程序中,我选择".NET 3.5 Framework SP1 Client Profile"作为先决条件.

但是,当我尝试将其安装在Windows 7 Professional的全新副本上时,它希望同时安装3.5和4.0.还有其他我可以/必须设置目标/所需平台的地方吗?

Bar*_*chs 5

找到了.

安装程序本身需要框架:

LeftMouseButton on the installer project --> View --> Launch Conditions
Run Code Online (Sandbox Code Playgroud)

还有一个值Version需要设置.