捆绑项目有两个 EXE 安装程序,它们都必须重新启动计算机。代码如下:
<Chain>
<ExePackage
Id="RDRole"
Cache="no"
Compressed="yes"
PerMachine="yes"
Vital="no"
SourceFile="Resource\ServerManagerCmd.exe"
Permanent="yes"
InstallCommand="-install RDS-RD-Server">
<ExitCode
Behavior="forceReboot"/>
</ExePackage>
<ExePackage
Id="DoNetFull"
Name =".NET Framework 4.0 full runtime"
Cache="yes"
Compressed="yes"
PerMachine="yes"
Vital="yes"
SourceFile="Resource\dotNetFx40_Full_x86_x64.exe"
InstallCommand="/q /norestart"
Permanent="yes">
<ExitCode
Behavior="forceReboot"/>
</ExePackage>
RDRole
如果两者都安装了,我怎样才能让计算机只重启一次DoNetFull
?