Build Msi in Wine

How do you install an MSI with msiexec into a specific directory?

Use TARGETDIR instead of INSTALLDIR. Note that the quote marks for TARGETDIR property are only around the path in the case of spaces.

msiexec /i "msi path" TARGETDIR="C:\myfolder" /qb

Build NSIS script as a MSI package

Unfortunately, No.

NSIS lets you create scriptable, procedural installation packages. It's simple, easy to use and has a number of features not present in Windows Installer.

Windows Installer (MSI) creates database driven, transactional installation packages. When written properly a Windows Installer package is very robust, a file gets corrupted/deleted and it will be automatically reinstalled. Windows Installer is aware of UAC and only elevates when required, basically if you're creating software for the corporate market, you will need to provide an MSI.

Check out The Definitive Guide to Windows Installer for a good introduction to understanding MSI.

How to install a msi in PlayOnLinux script?

From the answer in the forum by MTres19.

You can use:

POL_AutoWine "$INSTALLER"

which just calls msiexec.exe for MSIs. Or you can use:

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


Related Topics



Leave a reply



Submit