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
Fatal: Bad Config File Line 1 in /Home/Trx/.Gitconfig
Linux, Gnu Gcc, Ld, Version Scripts and the Elf Binary Format -- How Does It Work
Remove All Text from Last Dot in Bash
How to Show Read Prompt with a New Line
Run a Command Conditionally with Netcat and Grep
Storing Pid File for a Daemon Run as User
How to Change Alignment of Code Segment in Elf
How to Monitor Newly Created File in a Directory with Bash
Ldconfig Only Links Files Starting with Lib*
Find Value from One CSV in Another One (Like Vlookup) in Bash (Linux)
Read File Without Disk Caching in Linux
Bash: No Such File or Directory
Are Pid-Files Still Flawed When Doing It 'Right'
How to Import Environment Settings into My Perl Program
Coqide 8.5: No Syntax Highlighting on Linux