download prerequisites from the same location as my application
2014-01-13 14:10
375 查看
用vs2010制作安装包 打包先决条件程序时,选择download prerequisites from the same location as my application
在Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40Client\zh-Hans目录下将dotNetFx40LP_Client_x86_x64zh-Hans.exe拷贝进去
否则会报错找不到dotNetFx40LP_Client_x86_x64zh-Hans.exe。
1安装包的依赖项竟然选择的是.net4,很奇怪,经过测试才知道,微软vs2010的安装项目的依赖项并不是根据实际的程序决定的,而是由vs版本决定的!
2当把依赖项修改为.NET Framework4.0 client时,安装时,遇到没有.NET Framework4环境时,安装程序依然提示需要安装.NET Framework4,其实只要安装了.NET Framework4才可以运行。
也就是程序运行需要的是.NET Framework4 ,不能把安装启动项设置为.NET Framework4.0 client。
设置程序依赖的.NET Framework版本
![](http://img.my.csdn.net/uploads/201301/18/1358478949_6351.png)
设置安装包的系统依赖项
![](http://img.my.csdn.net/uploads/201301/18/1358479162_1396.png)
修改安装包实际安装时监测的版本
在Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40Client\zh-Hans目录下将dotNetFx40LP_Client_x86_x64zh-Hans.exe拷贝进去
否则会报错找不到dotNetFx40LP_Client_x86_x64zh-Hans.exe。
1安装包的依赖项竟然选择的是.net4,很奇怪,经过测试才知道,微软vs2010的安装项目的依赖项并不是根据实际的程序决定的,而是由vs版本决定的!
2当把依赖项修改为.NET Framework4.0 client时,安装时,遇到没有.NET Framework4环境时,安装程序依然提示需要安装.NET Framework4,其实只要安装了.NET Framework4才可以运行。
也就是程序运行需要的是.NET Framework4 ,不能把安装启动项设置为.NET Framework4.0 client。
设置程序依赖的.NET Framework版本
![](http://img.my.csdn.net/uploads/201301/18/1358478949_6351.png)
设置安装包的系统依赖项
![](http://img.my.csdn.net/uploads/201301/18/1358479162_1396.png)
修改安装包实际安装时监测的版本
![](http://img.my.csdn.net/uploads/201301/18/1358479381_8369.png)
相关文章推荐
- 从AS导入Eclipse项目,报Error:Application and test application id cannot be the same: both are 'com.
- as 导入eclipse项目报错:Error:Application and test application id cannot be the same: both are 'com.hjy.act
- Could I use NEON and VFP at the same time in my application?
- ValueError: Tensorflow error: “Tensor must be from the same graph as Tensor…”
- How Can I Launch The Appstore App Directly from my Application
- Tensor A must be from the same graph as Tensor B
- If you whant to download SIS, JAR and JAD file from WAP you have to upload file (in the same catalog) with this: [小糊涂的灵感]
- Auto Updating the exe from a network location when application starts z
- How do i prevent end users from connecting to the database other than my application?", version 8.1.5
- Why does Windows not recognize my USB device as the same device if I plug it into a different port?
- How to capture video frames from the camera as images using AV Foundation
- Error: member names cannot be the same as their enclosing type
- Unable to get element from the feed as bytes.解决
- javax.mail 遇到501 mail from address must be same as authorization user 的問題
- To my dear classmates, the list below might be helpful to you when you are studying the discrete mathematics in English as I am
- webpacke install vue application 报错 Failed at the phantomjs-prebuilt@2.1.14 install script
- HOWTO get multiple value from the same name checkbox elements or radiobution elements
- Oracle Application R12 (12.1.1) Download from edelivery.oracle.com
- xilinx "ERROR:EDK - intc () - Internal error: Num intr inputs 1 not the same as length of ..."解决
- [原] XAF Try an XAF application that uses the Entity Framework as an ORM layer