我无法在升级期间执行自定义操作。它在日志中提供以下错误。
错误1721.此Windows Installer程序包存在问题。无法运行此安装所需的程序。请联系您的支持人员或包装供应商。操作:CA_DFADMINWSPUPGRADE,位置:E:\ DealFoundrySetUp \,命令:“E:\ DealFoundrySetUp \ PSScripts \ UpdateAminWSP.bat”“Admin.wsp”“E:\ DealFoundrySetUp \ DFAdmin \ AdminWsp \ Admin.wsp” MSI(s)(74:B4)[17:03:11:416]:产品:DealFoundry - 错误1721.此Windows Installer程序包存在问题。无法运行此安装所需的程序。请联系您的支持人员或包装供应商。操作:CA_DFADMINWSPUPGRADE,位置:E:\ DealFoundrySetUp \,命令:“E:\ DealFoundrySetUp \ PSScripts \ UpdateAminWSP.bat”“Admin.wsp”“E:\ DealFoundrySetUp \ DFAdmin \ AdminWsp \ Admin.wsp”
<CustomAction Id="CA_DFADMINWSPUPGRADE" Impersonate="no"
ExeCommand='"[INSTALLDIR_UG]PSScripts\UpdateAminWSP.bat" "[PRO_ADMINWSPNAME_UG]" "[PRO_ADMINWSPPATH_UG]"'
Directory="INSTALLDIR" Execute="deferred" Return="check" />
INSTALLDIR_UG值我在注册表中以及安装期间和升级时使用
<Property Id="INSTALLDIR_UG">
<RegistrySearch Id="rsDFInstallDirectory"
Name="DFInstallDirectory"
Root="HKLM"
Key="SOFTWARE\VALUEMOMENTUM\DEALFOUNDRY\DealFoundryAdmin"
Type="raw"
Win64="yes">
</RegistrySearch>
</InstallExecuteSequence>
<Custom Action="CA_DFADMINWSPUPGRADE" After="InstallFiles">
<![CDATA[INSTALL_DFUSERMANAGEMENT=1 AND (OLDER_VERSION_FOUND)]]>
</Custom>
</InstallExecuteSequence>
任何人都帮助我。
答案 0 :(得分:0)
尝试切换到Impersonate="yes"
我认为您的脚本可能无法作为本地系统执行。