在Inno Setup中执行UninstallString

问题描述 投票:1回答:1

我的要求是在安装和卸载先前版本之前,请检查SQL native Client 11的先前安装。我已经可以检查以前的安装,没有问题,但是,我无法将其卸载。

我使用了How to detect old installation and offer removal?中提到的解决方案

在运行时,出现以下错误

异常:内部错误:未知常量“ A22EED3F-6DB6-4987-8023-6C6B7030E554”。

(该行执行期间常量为本地客户端的GUID)>

Exec(ExpandConstant(sUnInstallString), '', '', SW_SHOW, ewWaitUntilTerminated, iResultCode);

sUnInstallString

MsiExec.exe /I{A22EED3F-6DB6-4987-8023-6C6B7030E554}

提前感谢。

我的要求是在安装和卸载先前版本之前,请检查SQL native Client 11的先前安装。我已经能够通过没有...

installer inno-setup uninstall uninstallstring
1个回答
2
投票

不是(Inno Setup)常量。那是一个GUID。删除ExpandConstant呼叫。

© www.soinside.com 2019 - 2024. All rights reserved.