Solved

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

Posted on 2008-06-09
9
4,023 Views
Last Modified: 2008-12-01
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.
0
Comment
Question by:wchull
9 Comments
 
LVL 8

Expert Comment

by:Share-IT
ID: 21746800
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?
0
 
LVL 19

Expert Comment

by:elimesika
ID: 21746808
Here  it is

http://juice.altiris.com/download/1355/exe-to-msi
its free , here is the license agreement
http://juice.altiris.com/ajsl
0
 

Author Comment

by:wchull
ID: 21746985
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.
0
 
LVL 29

Expert Comment

by:matrixnz
ID: 21748199
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
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:wchull
ID: 21753115
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?
0
 

Author Comment

by:wchull
ID: 21760824
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.
0
 
LVL 29

Expert Comment

by:matrixnz
ID: 21765331
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
0
 

Accepted Solution

by:
wchull earned 0 total points
ID: 21780004
Update.....I found something that actually allowed me to wrap Setup.EXE created by INNO Setup (http://www.jrsoftware.org/) into a single self-contained MSI file. This MSI Installer is called Installer2Go from WItem Software (http://www.witemsoft.com/togo/features/) and is Freeware. Installer2Go was VERY easy to use and allowed me to specify the SETUP.EXE file as a file to go into the CAB file and then allowed me to specify that the EXE must be executed after the EXE had been unloaded into the temporary work folder. After working with this product a bit I determined that I should be able to elimatate the use of INNO Setup entirely and just package my VBScripts and my self-extracting zip file using Installer2Go. My only problem was that one of my VBScripts that was used to actually execute all the installation processes in the correct order could not be kicked off by Installer2Go. My guess is that my script didn't meet some requirement of Installer2Go as during the Installer2Go "Custom Action" setup it kept asking me to specify a function to call in the script when I wanted to run the whole script that had no functions. To get around this I just converted the VBScript to a VB6 command line executable. Works VERY slick.
0
 
LVL 8

Expert Comment

by:mugman21
ID: 23068218
wchull,

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

Thanks
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

One of the most frequently asked questions on EE in the "Windows Installer" zone is how to eliminate self-triggered installation of some product.  The problem occurs when, suddenly, whenever a certain application is launched, or even when a folder i…
If you have done a reformat of your hard drive and proceeded to do a successful Windows XP installation, you may notice that a choice between two operating systems when you start up the machine. Here is how to get rid of this: Click Start Clic…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now