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 :)
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.
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.
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.
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).
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).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With