Microsoft Developer Network > Página Inicial dos Fóruns > Visual C# General > Application Auto Update Feature Question
Fazer uma PerguntaFazer uma Pergunta
 

RespondidoApplication Auto Update Feature Question

  • sexta-feira, 18 de maio de 2007 20:23Fusion54 Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     

    I am building an application that is going to run on web services and be downloaded for free by users. I need to be able to build in a feature into the application so that It can check for updates and update itself. Is there a good way to do this kind of thing? Can someone give me some advice or point me to an example on how one might go about doing this?

     

    Thanks in advance

Respostas

  • sexta-feira, 18 de maio de 2007 20:54Hayder Marzouk Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    Hi,

    The .net framework 2.0 has a new feature for smartly deploying and updating application : ClickOnce. It requires few configuration and if u are using VS2005 as IDE your task will be really easy.

     

    HTH.

    Hayder Marzouk

  • sexta-feira, 18 de maio de 2007 21:53boban.sMVPMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido
    Before even start testing with ClickOnce my proposition is to first check it's limitations. My opinion is that ClickOnce can't be used for many of applications, especially some serious application (period). To support this opinion i didn't see any famous application to use it. I can't find some better link of limitations but here is one:
    http://www.directionsonmicrosoft.com/sample/DOMIS/update/2004/04apr/0404catei.htm

    -Implement a web service method that will return list of files in a folder where you will keep the application files
    -You will get that list from client application and create a same list for local files 
    -Compare both, check for differences, and if there is some, start update form
    -There you will asynchronosly download files from server using WebClient and save them in the application folder, under some changed name (I add .new to file name).
    -On application restart you will  delete old files and rename new ones (remove .new for my case).

Todas as Respostas

  • sexta-feira, 18 de maio de 2007 20:54Hayder Marzouk Medalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido

    Hi,

    The .net framework 2.0 has a new feature for smartly deploying and updating application : ClickOnce. It requires few configuration and if u are using VS2005 as IDE your task will be really easy.

     

    HTH.

    Hayder Marzouk

  • sexta-feira, 18 de maio de 2007 21:53boban.sMVPMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuárioMedalhas de usuário
     Respondido
    Before even start testing with ClickOnce my proposition is to first check it's limitations. My opinion is that ClickOnce can't be used for many of applications, especially some serious application (period). To support this opinion i didn't see any famous application to use it. I can't find some better link of limitations but here is one:
    http://www.directionsonmicrosoft.com/sample/DOMIS/update/2004/04apr/0404catei.htm

    -Implement a web service method that will return list of files in a folder where you will keep the application files
    -You will get that list from client application and create a same list for local files 
    -Compare both, check for differences, and if there is some, start update form
    -There you will asynchronosly download files from server using WebClient and save them in the application folder, under some changed name (I add .new to file name).
    -On application restart you will  delete old files and rename new ones (remove .new for my case).