Het forum

How to install a msi

POL_Wine with a msi installer

Auteur Antwoorden
PhoneixS Woensdag 24 Februari 2016 om 14:11
PhoneixS

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

POL_Wine "$INSTALER"

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 http://www.playonlinux.com/fr/page-26-Winemenubuilder.html
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 Donderdag 25 Februari 2016 om 3:14
MTres19Anonymous

You can use

POL_AutoWine "$INSTALLER"

which just calls msiexec.exe for MSIs

or

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

Aangepast door MTres19

PhoneixS Donderdag 25 Februari 2016 om 12:15
PhoneixS

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 Donderdag 25 Februari 2016 om 19:16
MTres19Anonymous

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 Vrijdag 26 Februari 2016 om 8:56
PhoneixS

Again, thank you for your help.