Link to home
Start Free TrialLog in
Avatar of wchull
wchull

asked on

What do I need to convert my EXE to be a MSI installer application?

We have an application that must be be installed and deinstalled using VBScripts we have written in-house.  To install a new release we first have to run a deleteapp script to rip out any old verision that may exist.  After the old version has been removed files have to pushed down to a specific folder and then the Installapp script is run to hook the deployed files into system.  To make a long story short, we found a freeware utility called INNO Setup that has allowed us to create a single SETUP.EXE file.  When SETUP is executed it deploys all needed files to the C:\temp folder, executes the delete script, unzips the application files to the correct folder, runs the installation script and then removes the files from the temp folder.  The problem we have is that a particular area of the company cannot use our regular software deployment tool and they are attempting to use Microsoft Windows Group Policy Installer methodology that requires that the package be in an MSI format, not an EXE format.  I've been searching so far in vain for a utility to convert an EXE into an MSI and nothing seems to work like we want it to.  In our situation all we need to do is have the MSI installer deploy and execute the setup.exe on the target or does what the setup file does in the order in which things need to be done.  It would also be helpful if I could find something that was freeware as well.  Any help would be appreciated.
Avatar of Share-IT
Share-IT
Flag of United Kingdom of Great Britain and Northern Ireland image

Firstly i'm not much of a packager but i've  used Wise Package Studio to build .msi files. pretty easy really although i just used some real basic functionality.

As an alternate solution though could you not just build a GPO that calls a login script or start up script that installs the software?
Avatar of wchull
wchull

ASKER

I tried the EXE-to-MSI from Altiris however it doesn't work with our SETUP file.  The setup file that it works with is an Altris Software_Virtualization_Agent.exe and converts it to a Software_Virtualization_Agent.msi file.  Thanks for the post but this will not meet our need.
Avatar of matrixnz
Try Wininstall LE 2003 - found a link to it here http://www.winsite.com/bin/Info?16500000037147 this will allow you to do perform a snapshot install of the application, just make sure your master system is clean with things like AntiVirus switched off, otherwise you end up capturing this within the MSI.  On completion you can then use Orca to edit the MSI if required.  This by far is the easiest method of converting an exe to an msi.  There are some better products out there like installshield, wise installer, but they cost an arm and a leg, Wininstall LE 2003 is free.

Cheers
Avatar of wchull

ASKER

WinInstall LE is no longer FREEWARE but a version comes on the Windows 2000 Install CD so I'm licensed for it.  Here's my problem as I think I have part of it working.....  As previously noted I really can't have the MSI installer perform the install per se.  What I really need is a single MSI installer file that when kicked off will write 3 VBScript files and 1 Self-extracting ZIP file to the C:\temp folder and when the files are unloaded into the C:\temp folder, execute one of the VBScripts.  So far I have tricked Wininstall into copying the files to the C:\temp folder but (1) the 4 files are not a part of the .MSI file and (2) I'm not sure how to cause the VBScript to execute.  Any ideas?
Avatar of wchull

ASKER

Since my last post I've become a bit frustrated.  I found a freeware product calle MSIBuilder that seems to allow me to distrubute what I need to install the software except for the fact that I cannot figure out how to make the MSIBuilder launch the SETUP program that MUST be used to properly install the product.  If anyone has used this tool before and know how to have the MSI execute the setup program let me know.

What seems to work so far is a wrapper program that basically runs the SETUP.EXE thru the MSI.  The problem I have with this is the fact that the MSI file does not contain the whole package.  The MSI file and the Setup.exe remain sepeerate programs and must be resident from the same source locaton for the app  to install.

Note if anyone knows of a better way to do things let me know.
Within the MSI you can use Custom Actions to execute VBS and EXE, however not entirely sure how to do it with ORCA as I use AdminStudio.  Another thing to consider is to use a Custom GPO with a Startup Script, which will allow you to use your InnoSetup install, to ensure that on each reboot the application doesn't re-install itself, have InnoSetup detect during InitializeSetup if it's been installed already or not, if no install, if yes exit the script.

Cheers
ASKER CERTIFIED SOLUTION
Avatar of wchull
wchull

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
wchull,

Excellent post, thanks for the link. Using Inno along with this app does conform to
MS logo requirements.

Thanks