How to install a msi

POL_Wine with a msi installer

Auteur Réponses
PhoneixS Mercredi 24 Février 2016 à 14:11

In the POL script that I'm writting the installer is a .msi file. I've tried to run it with:


This give me the following error:

02/24/16 14:05:18 - [POL_Wine] Message: Running wine- /home/jabellota/.PlayOnLinux//tmp/GHCTempFiles/GHC18.msi (Working directory : /home/jabellota/.PlayOnLinux/shortcuts)
02/24/16 14:05:18 - [POL_Wine] Message: Notice: PlayOnLinux deliberately disables winemenubuilder. See
wine: Formato EXE erróneo en Z:\home\jabellota\.PlayOnLinux\tmp\GHCTempFiles\GHC18.msi.

I found that to intall msi with wine you must execute it bellow or it didn't recognize the msi:

wine msiexec /i GHC18.msi

I tried also to do a:

POL_Wine "msiexec /i $INSTALER"

But wine try to execute the program "msiexec".


¿How can I install the msi?

MTres19 Jeudi 25 Février 2016 à 3:14

You can use


which just calls msiexec.exe for MSIs


POL_Wine msiexec /i $INSTALLER

I think the quote marks mess up flags with programs, so you just have to get rid of them or maybe put them outside of the quote marks. There's not much point in not using POL_AutoWine anyway unless you need the script to be asynchronous (that is, the script doesn't pause while Wine is running.) like this:

POL_Wine start msiexec /i $INSTALLER

Edité par MTres19

PhoneixS Jeudi 25 Février 2016 à 12:15

Thank you so much! I didn't want it to be asynchronous so it's ok to use POL_AutoWine.

I can't find the documentation about POL_AutoWine, where is it?

MTres19 Jeudi 25 Février 2016 à 19:16

Sadly, it's not documented. The POL Wiki needs (in my opinion) updating, but I don't suppose there's a lot of motivation for it since everything will just change again with PlayOnLinux 5 and the switch to Python scripts instead of Bash. In the meantime, however, you can look through the files in /usr/share/playonlinux/lib. Those have all the PlayOnLinux functions and some have a short description. (That's what you're calling with

source "$PLAYONLINUX/lib/sources"

at the beginning of your script.)

PhoneixS Vendredi 26 Février 2016 à 8:56

Again, thank you for your help.