以前一直使用2005,最近才接触2008,原来的工程都可以直接升级到C#3.0很是高兴,但是在制作安装项目时,我无法按照2005的方法自定义“系统必备”内容了。在2005中我可以通过在C:\Program Files\Microsoft Visual Studio 8\SDK\v2.0\BootStrapper\Packages中增加项目,编写相应的xml文档就可以添加自定义的系统必备,但是在2008中找不到相应的位置,不知道在新的环境下如何配置?谢谢
调试欢乐多
或
在开发环境中项目->你的项目+属性(菜单最后一项)->发布->系统必备
在setup项目上右键=>视图=》启动条件=》右键.net framework属性=》修改Version
上面这两个是设置项目的.NET framewor版本在setup项目上右键=>属性=》系统必备,这个是选择打包什么版本的.NET FRAMEWORK
<?xml version="1.0" encoding="utf-8" ?>
<Product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" ProductCode="SentinelProtection7.5.0">
<!-- Defines list of files to be copied on build -->
<PackageFiles>
<PackageFile Name="Sentinel Protection Installer 7.5.0.exe"/>
</PackageFiles>
<InstallChecks>
<RegistryCheck Property="SentinelInstalled" Key="HKLM\SOFTWARE\Safenet Sentinel\SentinelProtectionServer" Value="CurrentVersion"/>
</InstallChecks>
<Commands Reboot="Defer">
<Command PackageFile="Sentinel Protection Installer 7.5.0.exe" Arguments='/S /v/qn'>
<InstallConditions>
<BypassIf Property="SentinelInstalled" Compare="ValueGreaterThanOrEqualTo" Value="7.5.0"/>
<FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/>
</InstallConditions>
<ExitCodes>
<ExitCode Value="0" Result="Success"/>
<ExitCode Value="3010" Result="SuccessReboot"/>
<DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
</ExitCodes>
</Command>
</Commands>
</Product>
第二个,是office2007 access的ace引擎
<?xml version="1.0" encoding="utf-8" ?>
<Product xmlns="http://schemas.microsoft.com/developer/2004/01/bootstrapper" ProductCode="ACE12">
<!-- Defines list of files to be copied on build -->
<PackageFiles>
<PackageFile Name="AccessDatabaseEngine.exe"/>
</PackageFiles>
<InstallChecks>
<RegistryCheck Property="ACEInstalled" Key="HKLM\SOFTWARE\Classes\Microsoft.ACE.ACERCLR.12.0\CLSID"/>
</InstallChecks>
<Commands Reboot="Defer">
<Command PackageFile="AccessDatabaseEngine.exe" Arguments='/quiet'>
<InstallConditions>
<BypassIf Property="ACEInstalled" Compare="ValueEqualTo" Value="{FE9CDADA-F510-49E7-B176-A2304EF2901D}"/>
<FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/>
</InstallConditions>
<ExitCodes>
<ExitCode Value="0" Result="Success"/>
<ExitCode Value="3010" Result="SuccessReboot"/>
<DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />
</ExitCodes>
</Command>
</Commands>
</Product>