Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to run setup (*.exe) file with out using MSI File?

Here I have successfully create setup using visual studio 3.5. On Debug folder in application I found (*.exe and *.msi file).

When I have take both file in same folder then it's work fine. But when I have take only (*.exe) file then it doesn't work.

I need to run (.exe) setup with out using (.msi) file. I required to send only *.exe to client. Is there any way to wrap both file in to single file.

Thanks In advance :)

like image 389
Yashwant Kumar Sahu Avatar asked Dec 01 '11 13:12

Yashwant Kumar Sahu


People also ask

How do I install setup exe silently?

In order to run an InstallScript MSI or InstallScript installation in silent mode, you must first run Setup.exe with the /r option to generate a response file, which stores information about the data entered and options selected by the user at run time.

Do all exe files have MSI?

EXE is used mainly to indicate that the file is an executable one. In comparison, MSI indicates that the file is a Windows installer. 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.

What is the difference between setup exe and MSI?

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.

How do I convert an MSI file to exe?

Run the Windows Command Prompt. Go to the folder where your .exe file is located. Run the following command: <file.exe> /s /x /b"<folder>" /v"/qn" (replace <file.exe> with the name of your .exe file and <folder> with the target folder where you want the MSI package to be saved to).


1 Answers

You have it the wrong way around! The MSI is the important but, the .exe is just a bootstrapper that calls the MSI. If anything you could just distribute the MSI.

See What does the EXE do in the Visual Studio setup project output?

It should be possible to create a bootstrapper that includes the actual MSI as an embedded resource, however I'm not sure how you can do this using Visual Studio.

If I were you I would either just distribute the MSI on its own with the instructions that users must have the .Net framework installed in order for the application to run, or combine up the two in a self-extracting zip (or similar).

like image 160
Justin Avatar answered Nov 14 '22 22:11

Justin