Embed MST into an MSI - Advanced Installer Community
Mahesh
Posts: 12
Joined: Tue May 22, 2012 11:24 pm

Embed MST into an MSI

Hi -

I have created an MST using Orca with the transformation property "Product Version is Equal" not being checked. So, theoretically this transform should be applied to any MSI version.

Now I want this MST to be part of MSI package. By default, a custom action dll is run as a part of the installer package. But if this transform is applied from the command line, custom action dll will not run. So -

msiexec /i setup.exe => Runs the dll custom action.
msiexec /i setup.exe TRANSFORMS="doNotRunCustomActionDLL.mst" => Doesn't run the custom action dll

How can I achieve the above ? Also, I amn't sure how to create an version independent MST using AI. AI version: 9.1; OS: Win 7 (x64).

Any help is appreciated,
Mahesh.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Embed MST into an MSI

Hello Mahesh,
By default, a custom action dll is run as a part of the installer package. But if this transform is applied from the command line, custom action dll will not run.
I am not sure why this is happening, maybe the transform changes the conditions for that custom action. Looking in the verbose log of the installation should give you a hint. Can you please send both the working (without transform) and not working (with transform applied) installation logs so we can take a look?
How can I achieve the above ? Also, I amn't sure how to create an version independent MST using AI.
Actually this is not yet supported and there's no workaround to configure the validations. However, I discussed the issue with our development team and added a related improvement on our TODO list to be considered in a future version.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Mahesh
Posts: 12
Joined: Tue May 22, 2012 11:24 pm

Re: Embed MST into an MSI

Hi Mihai,

Thanks for the reply.
By default, a custom action dll is run as a part of the installer package. But if this transform is applied from the command line, custom action dll will not run.
Probably I should have presented myself more clearly. I should have said " ..., custom action dll should not run."

I want the version independent MST to be part of MSI package itself, so that there is no need of a separate MST file hanging around as part of the installation bundle seperately. By default, the MSI package will not apply the transform. But if the administrator/user don't wish to run the custom action, then applies the transform ( already present in the MSI package ) from the command line.

From what you said, there is no way of doing it with the current AI version. Hope this feature will be part of your next release version. ( I know we can have a PROPERTY defined that controls a particular custom action should run or not )

Thanks,
Mahesh.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Embed MST into an MSI

Hi Mahesh,
From what you said, there is no way of doing it with the current AI version. Hope this feature will be part of your next release version.
No actually I was referring to something else.
I know we can have a PROPERTY defined that controls a particular custom action should run or not
Indeed, this is the way to condition a custom action. If you want this functionality part of a transform you can easily use our wizard to create the transform.
You can have an .MSI with that property set and another without. By creating a diff transform from the two .MSIs you should get the .MST you need.

Let us know if you have any other doubts or questions.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”