我有一项习俗行动,将各种名录作为统一进程的一部分予以删除。 我想根据正在做些什么,在安装顺序的不同点提及这一行动:
- During an install, don t run the custom action
- During an upgrade, run the custom action after RemoveExistingProducts
- During an uninstall, run the custom action after RemoveFolders
我可能让其中每一个国家单独工作,但我如何让它们共同合作我所希望。 我尝试了这样的一些(一些法典从here):
<InstallExecuteSequence>
<Custom Action="PreventDowngrading" After="FindRelatedProducts">
NEWERPRODUCTFOUND AND NOT Installed
</Custom>
<LaunchConditions After="AppSearch" />
<RemoveExistingProducts Before="InstallInitialize" />
<!-- NEW _> Clean old files AFTER uninstall during an upgrade -->
<Custom Action="CleanUp" After="RemoveExistingProducts" >
UPGRADINGPRODUCTCODE
</Custom>
<!-- NEW _> Clean old files LAST during an uninstall -->
<Custom Action="CleanUp" After="RemoveFolders" >
(NOT UPGRADINGPRODUCTCODE) AND (REMOVE="ALL")
</Custom>
</InstallExecuteSequence>
但是,当我做建筑时,就会出现一个重复的象征错误。 任何帮助都将受到高度赞赏。