是否可以运行 Windows .msi 安装程序?

And*_*R M 83 windows wine msi software-installation

是否可以从 MSI 安装程序安装 Windows 程序,以便安装的程序可以与 Wine 程序加载器一起运行?

kar*_*rel 126

打开终端,将目录更改cd为 .msi 文件的位置,然后使用形式为 的命令安装 .msi 文件。wine msiexec /i whatever-filename.msi

根据WineHQ 官方常见问题解答

MSI文件不能直接运行,需要使用msiexec程序。msiexec 是用于安装 .msi 包的工具。MSI 文件可以从终端安装在 Wine 中,如下所示:

wine msiexec /i whatever-filename.msi 
Run Code Online (Sandbox Code Playgroud)

或者:

wine start whatever-filename.msi
Run Code Online (Sandbox Code Playgroud)

这将运行 MSI 程序,就像您在 Windows 中双击它一样。

如果需要,可以更改第一个命令以适应情况。例如:

WINEPREFIX=/path/to/wineprefix wine msiexec /i /path/to/filename.msi  
Run Code Online (Sandbox Code Playgroud)

或使用 wine64 代替 wine:

WINEPREFIX=/path/to/wineprefix wine64 msiexec /i /path/to/filename.msi 
Run Code Online (Sandbox Code Playgroud)

WINE 前缀是一个文件夹,其中包含所有 WINE 配置以及 WINE 用于兼容性的所有 Windows 部分,包括库和注册表。

如果您想稍后在运行时卸载相同的 .msi 文件 wine msiexec /x whatever-filename.msi

  • 好的,但是我如何在安装后执行它? (3认同)