有人说,只要在安装项目->属性->系统必备 中,去掉.Net Framework的钩就可以了,但测试过了,是没有用的
有次做安装盘时,加了个.net framework做的扩展DLL,后来去掉了,编译之后,安装时仍然提示需要.Net Framework,否则退出,
使用了上面提到的方法还是不成功,真没办法。
最后终于找到解决办法:
改一下项目中的.vdproj文件,把"Deployable"."ExternalPersistence"."LaunchCondition"中的内容去掉就行了,
举个例子:
- "Deployable"
- {
- "CustomAction"
- {
- }
- "DefaultFeature"
- {
- "Name" = "8:DefaultFeature"
- "Title" = "8:"
- "Description" = "8:"
- }
- "ExternalPersistence"
- {
- "LaunchCondition"
- {
- "{A06ECF26-33A3-4562-8140-9B0E340D4F24}:_910C33B37D4E4B28B3692C5963ED6390"
- {
- "Name" = "8:.NET Framework"
- "Message" = "8:[VSDNETMSG]"
- "Version" = "8:2.0.50727"
- "AllowLaterVersions" = "11:FALSE"
- "InstallUrl" = "8:http://go.microsoft.com/fwlink/?LinkId=9832"
- }
- }
- }
改为下面就可以了:
- "Deployable"
- {
- "CustomAction"
- {
- }
- "DefaultFeature"
- {
- "Name" = "8:DefaultFeature"
- "Title" = "8:"
- "Description" = "8:"
- }
- "ExternalPersistence"
- {
- "LaunchCondition"
- {
- }
- }