为SQL Server 2008 R2安装指定输出目录

时间:2016-02-02 06:36:08

标签: sql-server bootstrapper

我正在尝试安装SQL Server 2008 R2 SP2作为我的服务器组件创建的Bootstrapper Installer的一部分。

默认情况下,SQL Server安装在C盘中。我应该如何指示安装程序将其安装在用户选择的驱动器中。

这是我的代码:

<PackageGroup Id="SQLServerExpress">
  <ExePackage InstallCommand='/IACCEPTSQLSERVERLICENSETERMS="True" /INSTANCEID="CCSERVER" /ACTION="Install" /FEATURES=SQLENGINE /HIDECONSOLE /HELP="False" /INDICATEPROGRESS="True" /ERRORREPORTING="False" /SQMREPORTING="False" /INSTANCENAME="CCSERVER" /AGTSVCSTARTUPTYPE="Manual" /ISSVCSTARTUPTYPE="Automatic" /ISSVCACCOUNT="NT AUTHORITY\NetworkService" /ASSVCSTARTUPTYPE="Automatic" /ASCOLLATION="Latin1_General_CI_AS" /ASDATADIR="Data" /ASLOGDIR="Log" /ASBACKUPDIR="Backup" /ASTEMPDIR="Temp" /ASCONFIGDIR="Config" /ASPROVIDERMSOLAP="1" /SQLSVCSTARTUPTYPE="Automatic" /FILESTREAMLEVEL="0" /ENABLERANU="False" /SQLCOLLATION="SQL_Latin1_General_CP1_CI_AS" /SQLSVCACCOUNT="NT AUTHORITY\NETWORK SERVICE" /ADDCURRENTUSERASSQLADMIN="True" /TCPENABLED="0" /NPENABLED="0" /BROWSERSVCSTARTUPTYPE="Disabled" /RSSVCSTARTUPTYPE="Automatic" /RSINSTALLMODE="FilesOnlyMode" /SECURITYMODE=SQL /SAPWD="********" /QUIET'
              UninstallCommand='/ACTION=Uninstall /INSTANCENAME="$(var.SqlServerInstance)" /FEATURES=SQLEngine /HIDECONSOLE /QUIET'
              PerMachine='yes'
              DetectCondition='SqlInstanceFound_x86 OR SqlInstanceFound_x64'
              Id="SQLEXPR_$(var.Platform)_ENU"
              Description="SQL Server 2008 R2 SP2"
              DisplayName="SQL Server 2008 R2 SP2"
              Vital="yes"
              Protocol="none"
              LogPathVariable="SQLEXPR_$(var.Platform)_ENUFullLog"
              Compressed="yes"
              SourceFile="redist\$(var.Platform)\SQLEXPR_$(var.Platform)_ENU.exe"
              SuppressSignatureVerification="yes"/>
</PackageGroup>

0 个答案:

没有答案