【问题标题】:Run uninstaller and wait until terminated运行卸载程序并等待直到终止
【发布时间】:2012-09-13 17:58:56
【问题描述】:

全部/ 有应用程序,应用程序的安装程序由 InstallShield 创建(不是 msi 项目) 我需要卸载应用程序并等待卸载程序终止。

我读取了注册表项 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall{MyAppGuid},UninstallString 并尝试启动卸载程序

在我的情况下 UninstallString = "C:\Program Files\InstallShield 安装信息{9F2A3D76-7785-492F-89E5-3F0FE2D205DC}\setup.exe" -runfromtemp -l0x0419 -removeonly

但是在 cmd.exe 中 “start /wait {UninstallerString}”不要等到卸载程序终止。我认为卸载程序运行相同的临时 exe 并立即终止。但是我该如何解决任何问题呢?有什么想法吗??

【问题讨论】:

  • 你想说什么?你的意思是你需要先卸载并继续安装?你能说清楚吗?
  • 嗯,对不起我的英语。我需要开始卸载并等待卸载程序完成
  • 您想在安装过程中启动卸载?你试过 LaunchAppAndWait 吗?

标签: installshield


【解决方案1】:

Installshield 在某个时候添加了一个/clone_wait 开关,可以解决您的问题,如here 所示:

This parameter indicates that the original setup should wait for the cloned setup process to complete before exiting.

您的卸载字符串将如下所示:

UninstallString = "C:\Program Files\...\setup.exe" -runfromtemp -l0x0419 -removeonly /clone_wait

-clone_wait 可能也可以工作,但我已经测试过它并将其与/clone_wait 一起使用。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2011-03-16
    • 1970-01-01
    • 2020-04-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多