Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How merge the exe and msi file in single setup?

Tags:

.net

c#-4.0

I'm creating a setup using visual studio setup project , it will create two files one is msi and second one is exe. but i want to Create single file using that.

like image 741
user2413829 Avatar asked May 23 '13 13:05

user2413829


People also ask

Are MSI and exe the same?

MSI is an installer file which installs your program on the executing system. Setup.exe is an application (executable file) which has msi file(s) as its one of the resources. Executing Setup.exe will in turn execute msi (the installer) which writes your application to the system.

Can an MSI run a exe?

MsiExec.exe is the executable program of the Windows Installer used to interpret installation packages and install products on target systems. After you build your release, you can install your Windows Installer package (. msi) from the command line.

How do I create an MSI file from an exe?

Create Msi from Exe Using Free MSI Wrapper 1. In the Source Folder field, specify the folder with the EXE file that you want to convert to MSI. 2. In the Target Path field, specify the default folder in which the created MSI will be installed.

Do all exe files have MSI?

While an MSI is used only with installers, this is not the case with EXE. Any application requires having at least one EXE file as it is needed to start the processes of the application. Even programs installed with either an EXE or an MSI will have one or more EXE files.


1 Answers

I would check out IExpress. This is a built in tool in many versions of Windows which you can use to create a self extracting directive file. You simply add the msi and setup.exe and choose to run the setup.exe.

This tool creates an SED file which you could run in a post build event so you do not have to do it manually after every build.

You could follow the directions in this tutorial: http://www.youtube.com/watch?v=k976yEXX11k

http://en.wikipedia.org/wiki/IExpress

like image 136
tomasat Avatar answered Oct 23 '22 03:10

tomasat