Click here to Skip to main content
15,900,110 members
Home / Discussions / C#
   

C#

 
GeneralRe: Launch application after installtion of MSI Pin
Dave Kreskowiak15-Feb-08 5:07
mveDave Kreskowiak15-Feb-08 5:07 
GeneralRe: Launch application after installtion of MSI Pin
Skippums15-Feb-08 5:57
Skippums15-Feb-08 5:57 
GeneralRe: Launch application after installtion of MSI Pin
Ravenet16-Feb-08 2:21
Ravenet16-Feb-08 2:21 
GeneralRe: Launch application after installtion of MSI Pin
Blumen16-Feb-08 18:45
Blumen16-Feb-08 18:45 
GeneralRe: Launch application after installtion of MSI Pin
Ravenet16-Feb-08 20:54
Ravenet16-Feb-08 20:54 
GeneralRe: Launch application after installtion of MSI Pin
Blumen17-Feb-08 17:17
Blumen17-Feb-08 17:17 
GeneralRe: Launch application after installtion of MSI Pin
Ravenet17-Feb-08 17:20
Ravenet17-Feb-08 17:20 
GeneralRe: Launch application after installtion of MSI Pin
Blumen17-Feb-08 18:31
Blumen17-Feb-08 18:31 
yep, thats correct.

My project is a Windows application, and the requirement is that it should run once the installation is complete.

So I created a custom installer class, coz I wanted to create a few folders during installation. In the Commit event of my custom installer class (dll), I'm creating these folders. In the deployment project, in Custom Actions, as displayed in the link you have sent me, I'm adding the primary output of my Windows application project to the Commit event (View - Editor - Custom Actions - Commit).

In Installer class, I'm calling the exe that I need to run after installation is complete using the following code:

if(System.IO.File.Exists(@savedState["TargetDir"].ToString() + "MyExe.exe"))
{
ProcessStartInfo psi = new ProcessStartInfo(@savedState["TargetDir"].ToString() + "MyExe.exe");
Process.Start(psi);
}


The only issue is that application starts running once the final screen of installation is displayed to the user.

Regards,
Blumen
GeneralRe: Launch application after installtion of MSI Pin
Ravenet17-Feb-08 19:45
Ravenet17-Feb-08 19:45 
GeneralShowDialog() issue Pin
Harvey Saayman15-Feb-08 2:04
Harvey Saayman15-Feb-08 2:04 
GeneralRe: ShowDialog() issue Pin
darkelv15-Feb-08 2:07
darkelv15-Feb-08 2:07 
GeneralRe: ShowDialog() issue Pin
Harvey Saayman15-Feb-08 2:12
Harvey Saayman15-Feb-08 2:12 
GeneralRe: ShowDialog() issue Pin
darkelv15-Feb-08 2:29
darkelv15-Feb-08 2:29 
GeneralRe: ShowDialog() issue Pin
Harvey Saayman15-Feb-08 2:32
Harvey Saayman15-Feb-08 2:32 
GeneralRe: ShowDialog() issue [modified] Pin
DaveyM6915-Feb-08 2:43
professionalDaveyM6915-Feb-08 2:43 
GeneralRe: ShowDialog() issue Pin
Harvey Saayman15-Feb-08 3:24
Harvey Saayman15-Feb-08 3:24 
GeneralRe: ShowDialog() issue Pin
Matt12315-Feb-08 11:58
Matt12315-Feb-08 11:58 
GeneralRe: ShowDialog() issue Pin
DaveyM6919-Feb-08 11:43
professionalDaveyM6919-Feb-08 11:43 
GeneralRe: ShowDialog() issue Pin
Harvey Saayman19-Feb-08 21:51
Harvey Saayman19-Feb-08 21:51 
GeneralRe: ShowDialog() issue Solved Pin
DaveyM6919-Feb-08 23:11
professionalDaveyM6919-Feb-08 23:11 
GeneralRe: ShowDialog() issue Pin
darkelv15-Feb-08 2:37
darkelv15-Feb-08 2:37 
GeneralRe: ShowDialog() issue Pin
Harvey Saayman15-Feb-08 3:22
Harvey Saayman15-Feb-08 3:22 
GeneralProblem to Dial a number from COM port in C#.Net Pin
lgauri15-Feb-08 1:49
lgauri15-Feb-08 1:49 
GeneralRe: Problem to Dial a number from COM port in C#.Net Pin
DaveyM6915-Feb-08 2:14
professionalDaveyM6915-Feb-08 2:14 
GeneralRe: Problem to Dial a number from COM port in C#.Net Pin
Manoj Kumar Rai15-Feb-08 3:14
professionalManoj Kumar Rai15-Feb-08 3:14 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.