Jump to content

Template script for MSI & MST


Recommended Posts

Hi Team,
I am new to forum as well autoit script.
could you please let me know the any best template to execute the MSI & MST file, along with pre-install & post install handling.

please help me , it will be appreciated. :)

 

Link to post
Share on other sites
  • Moderators

@mvij welcome to the forum. Have you done a search on the forum? There are tons of threads on running an MSI, with a transform file.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to post
Share on other sites

Thank you @JLogan3o13,

Yes, there are blogs and threads available to run the MSI with MST. Just I am looking the template like how "App deployment tool Kit " is works .
Ex:  like below , there will be 4 sections ( pre-install , install, post-install, uninstall). Pre-install & uninstall might required rarely message box to end-user and add / modify/ delete registry or files.

 

Pre-Install:

                  If Process is running

                                    message box to end user ( only 2 option)

                                                      a.Kill prorcess & continue

                                                      b. cancel the installation.

                  End If

                  Add registry keys or

                  Remove registry keys

                  Create a Folder if not exist then copy files

 Installation:

                   Pre-requisites:

                                    If any of below installation fails exist the installation

                                    1. run DotNet.exe

                                    2. run Visual studio

                                    3. run Java

                  Main executable files:

                  If pre-requisites are success then run

                                    1. run .msi with transforms

                                    2. run .exe file with silent switches

                   end if

                    end if

 Post-Installation:

                   If Process is running

                                    restart

                                                      a. First process

                                                      b. Second process

                                    Kill Porcess

                                                      a. First Process

                                                      b. Second process

                  End if

 

                  Add registry

                  Modify registry

                  remove registry

                  File copy / overwrite / delete

 Uninstallation :

                   If Process is running

                                    message box to end user (only 2 options)

                                                      a.Kill prorcess & continue

                                                      b. cancel the installation

                  End if

                   run uninstallation multiple commands

Link to post
Share on other sites
  • Moderators

There is no "automagic" pre-written library for doing this. As I state, there are a ton of examples in the forum. If, as you say you have seen them, they are not what you are looking for, then you'll have to write it yourself. So it comes down to what have you tried on your own, and what exactly are you having problems with?

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to post
Share on other sites

very first Thank you 

Yes, as you mentioned, most of the things are available in different blogs. But needs to make it one. I am doing it same.

But I am unable to get the MessageBox to end-user. could you please help me on this. Like below 

               If Process is running

                                    message box to end user ( only 2 option)

                                                      1.Kill prorcess & continue

                                                      2. cancel the installation.

                  End If

Capture1.PNG

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...