2

有没有办法可以避免这个错误 2753 ?我想在安装期间取消选择一些功能,如果我取消选择,我会收到此错误。我如何避免这种情况并且仍然能够选择我想要的功能:

提前致谢。

4

2 回答 2

2

这表明您有一个自定义操作正在引用某个功能安装的文件。您需要为自定义操作提供一个条件,将其调用限制在安装该组件文件的时间。否则在执行自定义操作时您会收到错误,因为该文件不可用。

于 2012-11-12T14:31:49.220 回答
0
<CustomAction Id="StartAppOnExit" FileKey="VcredistEXE" 
ExeCommand="" Execute="deferred" Return="asyncNoWait" Impersonate="no" />
<InstallExecuteSequence>
<Custom Action="StartAppOnExit" Before="InstallFinalize">!SOMECOMPONENTID=3</Custom>
</InstallExecuteSequence>

<CustomAction Id="StartAppOnExit1" FileKey="InterUMIEXE" 
 ExeCommand="" Execute="deferred" Return="asyncNoWait"  Impersonate="no" />
<InstallExecuteSequence>
 <Custom Action="StartAppOnExit1" Before="InstallFinalize"/>
 </InstallExecuteSequence>

 <CustomAction Id="StartAppOnExit2" FileKey="Python" 
ExeCommand="" Execute="deferred" Return="check" Impersonate="no" />
 <InstallExecuteSequence>
 <Custom Action="StartAppOnExit2"  Before="InstallFinalize"  />
 </InstallExecuteSequence>
 <InstallExecuteSequence>
 <WriteEnvironmentStrings>EnableEV=1</WriteEnvironmentStrings>
 </InstallExecuteSequence> 
于 2012-11-13T08:49:55.747 回答