Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Start application after installation

Tags:

I've googled around and found some topics like

http://wix.sourceforge.net/manual-wix3/run_program_after_install.htm

and

Launch application after installation complete, with UAC turned on

but, i don't use any ui. Just simple installation! So far

<CustomAction Id="LaunchApp" Directory="INSTALLDIR" ExeCommand="[SystemFolder]cmd.exe /C MyExe.exe" />

<InstallExecuteSequence>
      <RemoveExistingProducts Before="InstallInitialize" /> 
      <Custom Action="LaunchApp" After="InstallFinalize" />
    </InstallExecuteSequence>

but when i start the installer, a window pops up: "Please wait while Windows configures MyProgram". and on top of it comes cmd.exe just with a blinking cursor, when i close cmd i get message :"There is a problem with this Windows Installer package. A program required for this install to complete could not be run." Though program remains opened. How can i do that properly (without any UI)? Thanks in advance!

like image 429
Peacelyk Avatar asked Mar 04 '11 14:03

Peacelyk


People also ask

How do I open a file?

Press Ctrl+P. Now the default launch action for the file will be execute. If it is a mp3 or avi file it will be played by the default player for that file type, If it is a exe file it will start that program. It will do all this without you having to browse into the folder and launch the file yourself.

What is WiX bundle?

A bundle is a collection of installation packages that are chained together in a single user experience. Bundles are often used to install prerequisites, such as the . NET Framework or Visual C++ runtime, before an application's .


1 Answers

What happens if you use

ExeCommand="[SystemFolder]cmd.exe /C start MyExe.exe"
like image 60
AntonyW Avatar answered Oct 14 '22 13:10

AntonyW