Thursday 21 July 2011

Create an .EXE by Wrapping MSI and MST

Launch WPS.
 In Tools, double click on Windows Installer Editor.

Double click on "Windows Application"
Go to "MSI Script" view
Double click on "Run WiseScript From Installation"
 
 
 
 
Now we will get below screen.
 
 
 
Click on "Options" then click on "Create New WiseScript".As shown below.
 
 
Click OK. Create a new WSE and Save it in the same location as the package files or on the desktop.
 
 
 
Launch the .wse file just created.
 
 
 
On the left pane, double click on Install File(s)
 
 
Select the source where the MSI is located .
Destination should be the temp directory on the user's PC.
Select the other options as they apply for e.g. check of 'Include Subfolders' if necessary.
 
 
 
Do the same exact for .mst file.
 
 
 
Double click 'Execute Program' option from the left-pane.
Browse Default Directory to %SYS32%.
Select "Wait for Program to Exit", for this script to wait until the installation completes.
Overall options should be similar to the image below:
 
 
Click OK we will get below screen.
 
Now to delete files (MSI & MST) from temp  directory, double click on Delete File(s) and give Pathname for both msi and mst.
 
 
 
 
 
Compile it . We will get EXE now.

1 comment: