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

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
Locked
My name is Root
Messages: 2
Registration: August 26, 2018 - 6:08 PM
Location: IDF

August 26, 2018 - 6:34 PM

- 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.
Last edited by JeSappelleRoot on 06 Sep 2018 - 18:50, edited 1 time.
User avatar
htouvet
WAPT Expert
Messages: 436
Registration: March 16, 2015 - 10:48
Contact :

September 6, 2018 - 10:40

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') })
Tranquil IT
My name is Root
Messages: 2
Registration: August 26, 2018 - 6:08 PM
Location: IDF

September 6, 2018 - 6:48 PM

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!
Locked