Link to home
Start Free TrialLog in
Avatar of nichiaiinc
nichiaiinc

asked on

How can I convert exe to msi?

I want to deploy software from the server using GPO so I need to make msi file. I installed wininstall LE and tried to make msi but I can not work it out. I can convert exe to msi but when I launch msi, it stops with error.

This is the error message:
Error 1309. Error reading from file: C:\Documents and Settings\Admin\Desktop\Program Files\Common files\Intel\ataplugin\ATAPlugin.ax Verify that the file exists and that you can access it.

I am trying to make msi for X-Lite.Does anyone have any idea?
Thank you
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

please produce the log and post it here.

msiexec /l*v c:\install.log /i myproduct.msi
Avatar of matrixnz
matrixnz

Try Install2Go - http://www.dev4pc.com/ rather than package the app using snapshot, you can run the setup.exe silently (if it has silent switches) directly via the MSI itself.

Cheers
Avatar of nichiaiinc

ASKER

Thank you for your response.

>vadimrapp1
This is the log file. Please check it and if you see any problem please let me know.

>matrixnz
OK, I am going to try Install2Go as well.

Thank you,
install.log
According to the log file, your installation is trying to copy that file from the same location where it's going to be installed.

I'd think what happened is this: when you repackaged and built the msi, you built  it as uncompressed with external files, so the files it was going to install were in the same directories where they are about to be installed. Then you probably uninstalled the original installation, and these files were removed. Now when you try to install, the source files are not found.

You have to copy over all the source files to another location (for example to a subdirectory of the project with your repackaged installation), and re-source them in the installation from that location.

> you can run the setup.exe silently (if it has silent switches) directly via the MSI itself.

I wonder what's going to happen when such "installation" is about to be uninstalled. Not to mention repaired.

If wrapping the exe into the msi is acceptable, there's an even simpler way - zap file. See http://thelazyadmin.com/blogs/thelazyadmin/archive/2005/05/16/Publishing-Applications-with-ZAP-Files.aspx

IMHO, the title of that blog accurately describes the approach :-)
Thank you for your quick response.

>You have to copy over all the source files to another location (for example to a subdirectory of the project with your repackaged installation), and re-source them in the installation from that location.

How can I do this with Wininstall? I do not see any option when I start "after snapshot".

Thank you,
Sorry, I'm not familiar with WinInstall. If you don't see the way to do it automatically, then you have to do it yourself - go over all the files, copy them, then change source path in wininstall.

Alternatively, you might compile the installation into single msi while the source files are still in place- the files would be placed inside msi then. But, again depending on the capabilities of wininstall, you might become unable to make changes later and recompile it.

The problem is the file is a single innosetup compiled executable file, which may or may not include com objects etc..  Wininstall le uses snapshot technology, i.e. taking a before and after shot of a master system than compiles the changes into an msi.  As I mentioned before you can use CustomActions to execute the exececutable with the /verysilent /norestart option for the InnoSetup file, you can also uninstall silently again this could be set up as a CustomAction with the Condition Remove=All so that it only excutes on uninstall not during the install.

Cheers
Also I'm assuming X-Lite Softphone is that correct or is it a different program altogeather?

Cheers
Thank you everyone. I wanted to use Wininstall but I think it is not right one for me. X-Lite Softphone is the software I tried to convert, I tried Installer2Go and I could make msi with silent install. I made test.msi for X-Lite Softphone, when I run test.msi it makes test and X-Lite3.0 on the list of Add/Remove Program in Control panel. If I want to uninstall software, I have to uninstall test and X-Lite3.0. I prefer to show 1 program on the list. Can I avoid to show 2 programs on Add/Remove Program somehow?

Thank you,
SOLUTION
Avatar of Vadim Rapp
Vadim Rapp
Flag of United States of America image

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
ASKER CERTIFIED SOLUTION
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
Thank you everyone. It was really great helps.