2

我使用命令行开关从我的应用程序的安装包中安装 Firebird 数据库。但现在我想以同样的方式卸载 Firebird。

问题是 Firebird 的 Windows 安装可执行文件是使用 Inno Setup 构建的。为了卸载 Inno Setup 可执行文件,您必须运行一个名为uninst???.exeFirebird 安装目录的文件,其中 ??? 是一些三位数字。

细节:

  • 我使用 InstallAware 作为我的安装构建器。它提供了一种类似于 InstallShield 的脚本语言。
  • 我正在安装 Firebird 的 SuperServer 版本,而不是嵌入式版本。(我需要此应用程序的并发用户访问权限。)
4

2 回答 2

3

HKLM\Software\Microsoft\Windows\Currentversion\Uninstall\ 例如 {350C97B0-3D7C-4EE8-BAA9-00BCB3D54227} 在下面你会找到一个名为“UninstallString”的键,你应该能够执行并卸载。

有些程序是按名称列出的,而不是 GUID,所以请仔细检查

于 2009-03-30T00:12:26.200 回答
1

注册表中有一个名为 DefaultInstace 的键

在德尔福代码中

function TfrmMain.FBDefaultInstance: String;
var
  Reg: TRegistry;
begin
  Reg := TRegistry.Create;
  try
    Reg.RootKey := HKEY_LOCAL_MACHINE;
    Reg.OpenKeyReadOnly('SOFTWARE\Firebird Project\Firebird Server\Instances');
    Result := Reg.ReadString('DefaultInstance');
    Reg.CloseKey;
  finally
    Reg.Free;
  end;
end;

在您停止服务并启动卸载之后

DefaultPath + 'unins000.exe /SILENT /NORESTART /SUPPRESSMSGBOXES'

于 2009-05-05T21:50:08.883 回答