Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

How to apply an MST transform file over an EXE

Dear Advanced Installer Support Team,

In the past we released our update packs as MSI files, recently we´re using singe EXE files. Many customers of ours use transform (MST) files to apply small changes in our update packs, they can´t create transform file for our EXEs anymore. We know there is a way of extracting the EXE and retrieve the MSIs, but we don´t want to encourage our customers to do so as it can lead to some problems, e.g. MSIs does not always work, especially if the product code was not changed between versions.

Are you aware of a way of applying a transform file (MST) on a setup.exe? Several online posts are proposing to use the following command:

SetupEXEToInstall.exe /v"TRANSFORMS=\"C:\<path_to_mst>\MSTToApply.mst\""

The command successfully installs the EXE file, but the MST is not applied at all, although it´s a valid MST which has been prepared for the MSI file wrapped into the EXE. If we extract the EXE and we install the MSI along with the MST by the following command:

msiexec /i "ExtractedMSIFile.x64.msi" /qn TRANSFORMS="MSTToApply.mst"

the transform file is applied too.

Could you please let us know how we could apply an MST over an EXE?

Best regards,
Zsolt
Horatiu
Posts: 42
Joined: Tue Nov 29, 2016 1:19 pm

Re: How to apply an MST transform file over an EXE

Hello Zsolt,

You can do this by opening a command line window in the folder where you have your MST and EXE files, and run the command
setup.exe transforms=transform.mst. This way your transform is applied to the MSI that is inside of the EXE wrapper.

setup - is the name of your exe file
transform - is the name of your mst file

Note that when you create your MST file you will still need to use an MSI file database.

Best regards,
~Horatiu
Zsolt Kollarits
Posts: 409
Joined: Fri May 29, 2015 10:36 am

Re: How to apply an MST transform file over an EXE

Hello Horatiu,

Theoretically the command that I sent to you in my previous post:

SetupEXEToInstall.exe /v"TRANSFORMS=\"C:\<path_to_mst>\MSTToApply.mst\""

is doing the same what you proposed me to use:
SetupEXEToInstall.exe transforms=MSTToApply.mst

The first command did not work for me, the syntax was ok, but the transform file did not have any effect. Nevertheless I tried out your command too, but the result was the same, the MST file didn´t have any effect.

Maybe the MST is wrong? My EXE file is a 32/64 bit EXE, so there are 2 MSI files wrapped into it. After extracting the EXE I have a 32-bit and a 64-bit MSI.

The MST file is created for the 64-bit MSI file and it seems to be a proper transform file. If I open the extracted 64-bit MSI in Orca and then apply the MSTToApply.mst over it, I can see the desired changes in the table. That's why I think the MST is valid and I should be able to apply it over the EXE file too.

Best regards,
Zsolt
Horatiu
Posts: 42
Joined: Tue Nov 29, 2016 1:19 pm

Re: How to apply an MST transform file over an EXE

Hello Zsolt,

Make sure you have the following options checked in the Wizard that appears when you select a Mixed 32/64-bit package from the Package type in the Install Parameters.

1. You have checked the Install these files on 64-bit platforms for the files you required for both
2. You have checked Build separate install databases

If you don't check the option Build separate install databases , Advanced Installer applies a transform during install, and this is why you can't apply yours.

Try also with TRANSFORMS all uppercase, on my side, it works with both lower and upper. Also, don't use the "/v" tag, just run:

Code: Select all

SetupEXEToInstall.exe TRANSFORMS=MSTToApply.mst
If you still are having issues, please send your AIP file or just a small sample to support at advancedinstaller dot com

Best regards,
~Horatiu

Return to “Common Problems”