Click here to Skip to main content
15,881,139 members
Home / Discussions / C#
   

C#

 
GeneralRe: Popup menu Pin
Mazdak17-Sep-02 21:51
Mazdak17-Sep-02 21:51 
QuestionAuto-updater? Pin
floydboy5817-Sep-02 18:27
floydboy5817-Sep-02 18:27 
AnswerRe: Auto-updater? Pin
Philip Fitzsimons18-Sep-02 1:16
Philip Fitzsimons18-Sep-02 1:16 
GeneralRe: Auto-updater? Pin
floydboy5818-Sep-02 1:52
floydboy5818-Sep-02 1:52 
GeneralRe: Auto-updater? Pin
Philip Fitzsimons18-Sep-02 1:55
Philip Fitzsimons18-Sep-02 1:55 
GeneralRe: Auto-updater? Pin
floydboy5818-Sep-02 2:01
floydboy5818-Sep-02 2:01 
GeneralRe: Auto-updater? Pin
Philip Fitzsimons18-Sep-02 3:19
Philip Fitzsimons18-Sep-02 3:19 
GeneralRe: Auto-updater? Pin
leppie18-Sep-02 3:58
leppie18-Sep-02 3:58 
floydboy58 wrote:
The problem I am trying to figure out is how am I going to replace my application .EXE while it is running? Or rather, how do I smoothly exit the program, get the copy done and re-load (without user interaction).

Have a look at System.Diagnostics.Process class. It's easy enough to run a "updater" app to close the process and restart an instance of of the main app.

Else forcefully close the program after an update, forcing the user to open the newly updated one.

Third option is to go the AppDomain way, but that can be scary (to me anyways Smile | :) )

Hope this helps
GeneralRe: Auto-updater? Pin
Ray Cassick18-Sep-02 5:16
Ray Cassick18-Sep-02 5:16 
GeneralRe: Auto-updater? Pin
User 988518-Sep-02 5:44
User 988518-Sep-02 5:44 
AnswerRe: Auto-updater? Pin
Andy Smith18-Sep-02 4:55
Andy Smith18-Sep-02 4:55 
Questionhelp? Pin
imran_rafique17-Sep-02 15:33
imran_rafique17-Sep-02 15:33 
Generalgetting a HANDLE Pin
Nnamdi Onyeyiri17-Sep-02 9:29
Nnamdi Onyeyiri17-Sep-02 9:29 
GeneralRe: getting a HANDLE Pin
leppie17-Sep-02 10:08
leppie17-Sep-02 10:08 
GeneralRe: getting a HANDLE Pin
Nnamdi Onyeyiri17-Sep-02 10:15
Nnamdi Onyeyiri17-Sep-02 10:15 
GeneralRe: getting a HANDLE Pin
leppie17-Sep-02 10:33
leppie17-Sep-02 10:33 
GeneralRe: getting a HANDLE Pin
Nnamdi Onyeyiri17-Sep-02 10:36
Nnamdi Onyeyiri17-Sep-02 10:36 
GeneralRe: getting a HANDLE Pin
leppie17-Sep-02 10:44
leppie17-Sep-02 10:44 
GeneralServices Pin
Mazdak17-Sep-02 8:47
Mazdak17-Sep-02 8:47 
GeneralMQSeries from .NET Pin
SimonS17-Sep-02 3:58
SimonS17-Sep-02 3:58 
GeneralRe: MQSeries from .NET Pin
leppie17-Sep-02 4:38
leppie17-Sep-02 4:38 
GeneralRe: MQSeries from .NET Pin
Gaul17-Sep-02 4:53
Gaul17-Sep-02 4:53 
GeneralRe: MQSeries from .NET Pin
SimonS17-Sep-02 5:27
SimonS17-Sep-02 5:27 
GeneralRe: MQSeries from .NET Pin
leppie17-Sep-02 7:24
leppie17-Sep-02 7:24 
GeneralRe: MQSeries from .NET Pin
Gaul25-Sep-02 12:05
Gaul25-Sep-02 12:05 

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.