Page 1 of 1

[SOLVED] Using an .mst file in an installation.

Published: August 26, 2018 - 6:34 PM
by JeSappelleRoot
- WAPT version installed: 1.5
- Server OS: Windows 7 for development and Debian 9 for production
- Administration/package creation machine OS: Windows 7

Hello,
I'm new to using the software, I've done some research and I'd like to know if it's possible to use MST files using the `install_msi_if_needed` function. I consulted my friend Google and found nothing.
The only workaround I found is to use the `run` function. I created a batch file to test the installation and it works as expected, however, when I switch to WAPT, nothing works as expected.
Both files are in the same directory.

Thank you in advance for your answers.

Re: Using an .mst file in an installation.

Published: September 6, 2018 - 10:40 AM
by htouvet
Perhaps like this:

Code: Select all

def install():
    install_msi_if_needed('AdbeRdr1010_de_DE.msi',properties={'TRANSFORMS':'AdbeRdr1010_de_DE.mst'})
Perhaps it is also necessary to have an absolute path for the MST, in which case:

Code: Select all

def install():
    install_msi_if_needed('AdbeRdr1010_de_DE.msi',properties={ 'TRANSFORMS': makepath(basedir,'AdbeRdr1010_de_DE.mst') })

Re: Using an .mst file in an installation.

Published: September 6, 2018 - 6:48 PM
by JeSappelleRoot
Hello,

thank you for your reply. I had found a slightly less "clean" workaround using `run`, but
it's the solution I was looking for. I'll test it this weekend, thanks again!