Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Force users to run setup.exe instead of *.msi

I've been searching the solution for a while but ended up finding nothing. I would like to ask with Microsoft Setup Project, is there any way to force user to run setup from setup.exe instead of msi file? I tried some solution such as add Launch Condition but do not know how to pass parameter from setup.exe to the msi file...

The reason I ask this is because I need to run some exe files in the setup process and those files require administrator privilege. As you know already we cannot add something like manifest file to require admin privilege for msi file.

I would appreciate any idea.

like image 711
longbkit Avatar asked Nov 23 '11 08:11

longbkit


People also ask

How do I combine MSI and setup exe?

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. Save this answer.

How do I pass MSI parameters to exe?

Use the /v option to pass command-line options and values of public properties through to Msiexec.exe. Note: If you pass the /v parameter at the command prompt when launching Setup.exe, any parameters that are specified for the CmdLine keyname in Setup.

How do I install setup exe silently?

If there is no MSI version of the application or the EXE setup does not support silent installation, use application repackaging. Repackaging your application with Advanced Installer into an MSI or an EXE will fully support silent installation.

Is exe better or MSI?

The main difference between the two extensions is their purpose. 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.


1 Answers

No, this is not supported by the Visual Studio setup EXE.

A solution is to wrap all your installation files into a self-extracting EXE archive. This archive can launch your setup EXE after extraction. For example, you can use IExpress: http://technet.microsoft.com/en-us/library/dd346760.aspx

Another solution is to use a different setup authoring tool which supports this directly: http://en.wikipedia.org/wiki/List_of_installation_software

like image 151
rmrrm Avatar answered Sep 21 '22 16:09

rmrrm