Making the SelfLaunch capabilty !!!!!!!

Topics: Updater Application Block
Mar 18, 2005 at 6:20 AM
originally posted by: Param23

After WaitForApplicationExitProcessor installs all files to the Destination..I want to launch the application without any stub !!!

How can I do it..?

Where should I put my code

In short , I want to achieve "StartNewVersion " type of functionality which is provided in SelfUpdating QuickStart in UAB1
now in UAB2..

This will be the code :

Name of Application : App1.exe

Dim p As New ProcessStartInfo(config.ExecutablePath)
p.WorkingDirectory = Path.GetDirectoryName(config.ExecutablePath)
applicationProcess = Process.Start(p)
processStarted = True

(Adapted from SimpleAppStart )

Mar 19, 2005 at 10:45 PM
originally posted by: Param23

Got the solution...

I have just put the code for starting stub in Activation Completed event of ApplicationUpdaterManger..and just got the results..

The SimpleAppstart has the disadvantage that we can only check for updates at the start or at the end of launching an application..

and even after update ,we can not restart the updated version automatically..

If some one wants to restart the application automatically..

Just start the Stub Process either from Activation_completed event handler (if you are using AppDeployproceesor ) or either from ActivationCompleted event handler in ApplicationUpdateManager..