卸载时出错自定义操作

时间:2011-09-21 10:32:50

标签: installshield uninstall custom-action

我创建了一个名为UninstallDokan的自定义操作,Dokan是我软件的驱动程序。我在卸载程序时遇到错误: 错误1721: 此Windows Installer程序包存在问题。无法运行此安装所需的程序。请联系您的支持人员或包装供应商。操作:UnistallDockan,位置:,命令:C:\ program Files< 86> \ DoTask \ Driver \ DokanUninstall.exe CA配置如下:

Created a CA based on "New EXE > Path referencing a directory".
Working Directory: <empty>
Filename & Command line: "[INSTALLDIR]\Driver\Uninstall.exe"
Return Processing: Synchronous (Check exit code)
In-Script Execution: Commit Execution in System Context
Install Exec Sequence: After RemoveFile
Install Exec Condition: Remove
everything else was left at the default

有没有人有任何想法接下来要尝试什么?

2 个答案:

答案 0 :(得分:1)

最后,我可以解决我的问题。我创建了CA Data。 CA Data配置如下: 安装Exec序列:UnpublishComponents之后 安装Exec条件:删除

答案 1 :(得分:0)

听起来你有竞争条件。如果您在提交执行中安排这意味着您在RemoveFiles可能已经删除了EXE之后正在运行。另请记住,如果禁用回滚,则无法执行提交自定义操作。