可以运行Windows的.msi安装程序吗?

可以通过MSI安装程序安装Windows程序,以便使用Wine程序加载器运行已安装的程序吗?
1个回答

打开终端,使用cd命令切换到.msi文件所在的目录,并使用形如wine msiexec /i whatever-filename.msi的命令安装.msi文件。
根据官方WineHQ FAQ的说明:

MSI files cannot be run directly, you need to use the msiexec program. msiexec is a tool for installing .msi packages. MSI files can be installed in Wine from the terminal like this:

wine msiexec /i whatever-filename.msi 

Alternatively:

wine start whatever-filename.msi

That will then run the MSI program the same as if you had double-clicked it in Windows.

第一条命令可以根据需要进行更改以适应情况。例如:
WINEPREFIX=/path/to/wineprefix wine msiexec /i /path/to/filename.msi  

或者使用wine64代替wine。
WINEPREFIX=/path/to/wineprefix wine64 msiexec /i /path/to/filename.msi 

WINE前缀是一个包含所有WINE配置以及WINE用于兼容性的所有Windows组件(包括库和注册表)的文件夹。
如果您想要在以后卸载相同的.msi文件,请运行wine msiexec /x whatever-filename.msi

7好的,但是安装完成后我该如何执行它呢? - darksoulsong
是的,我刚刚安装了Newgrounds Flash播放器,但它还没有出现在任何地方。我可能马上就会弄清楚,但是... - Tachytaenius