Can't get Application.Restart to work

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Lee

    Can't get Application.Restart to work

    Hi,

    I'm trying to programmaticall y restart my application after downloading
    updates, but I can't get the Application.Res tart command to work correctly.
    It shuts down my program fine, but then doesn't start up again afterwards.

    I read about Click Once in the MSDN but couldn't fathom if CO was supposed
    to be a pre-requisite for getting it to work correctly.

    Does anyone have any experience with this that could help me out? Or even an
    alternative method of restarting a .Net v2.0 application?

    Regards,

    Lee.


  • Steve

    #2
    Re: Can't get Application.Res tart to work

    On Sep 26, 1:30 pm, "Lee" <L...@nospam.ne twrote:
    Hi,
    >
    I'm trying to programmaticall y restart my application after downloading
    updates, but I can't get the Application.Res tart command to work correctly.
    It shuts down my program fine, but then doesn't start up again afterwards..
    >
    I read about Click Once in the MSDN but couldn't fathom if CO was supposed
    to be a pre-requisite for getting it to work correctly.
    >
    Does anyone have any experience with this that could help me out? Or evenan
    alternative method of restarting a .Net v2.0 application?
    >
    Regards,
    >
    Lee.
    From what I understand, double click on 'My Project' in 'Solution
    Explorer'. Click on the option 'Publish' on the left side. Click the
    'Updates' button. Check the box 'This application should check for
    updates.' This will download new updates if they are available and
    restart the program.

    Comment

    • Lee

      #3
      Re: Can't get Application.Res tart to work

      Hi,

      Thanks for the response.

      It does look like I may need to publich my application so i'm going to take
      some time in looking at how that is done. Thanks for the pointers!


      "Steve" <sithius92@gmai l.comwrote in message
      news:2bc7b18d-45f3-443b-96e9-85321840f9f1@z6 6g2000hsc.googl egroups.com...
      On Sep 26, 1:30 pm, "Lee" <L...@nospam.ne twrote:
      Hi,
      >
      I'm trying to programmaticall y restart my application after downloading
      updates, but I can't get the Application.Res tart command to work
      correctly.
      It shuts down my program fine, but then doesn't start up again afterwards.
      >
      I read about Click Once in the MSDN but couldn't fathom if CO was supposed
      to be a pre-requisite for getting it to work correctly.
      >
      Does anyone have any experience with this that could help me out? Or even
      an
      alternative method of restarting a .Net v2.0 application?
      >
      Regards,
      >
      Lee.
      From what I understand, double click on 'My Project' in 'Solution
      Explorer'. Click on the option 'Publish' on the left side. Click the
      'Updates' button. Check the box 'This application should check for
      updates.' This will download new updates if they are available and
      restart the program.

      Comment

      • ShaneO

        #4
        Re: Can't get Application.Res tart to work

        Lee wrote:
        I tried your code and it didn't restart the app, it just closed down as
        it did previously. I'm guessing the reason why it's not restarting is
        becuase of the publish option? I don't publish my application but
        instead upload the files manually to my website for the program to detect.
        >
        Perhaps I should be looking to public instead of using a manual upload
        method?
        >
        Oh, I didn't realise you weren't "Publishing " the app. Yes, I'd agree
        that everything will work fine once you start publishing, and besides,
        it's simpler than having to update manually.

        ShaneO

        There are 10 kinds of people - Those who understand Binary and those who
        don't.

        Comment

        Working...