Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: setup
Hi,
 
How to customized the setup and deployment project through visual studio 2008.Actually i want
to include automatic up gradation feature .Means like Skype ,whenever a new version of our product will available it should display a popup window
"A updated version of this product is available.Do you want to install now ...yes or no ".
How to do this .Please give me any idea or steps to do this through visual studio.
 
With Regards,
Kirti
Posted 25-Jun-13 3:35am
Edited 25-Jun-13 23:31pm
v4

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

First of all, I would suggest you to think about what you really want, use the "improve question" widget and add more information. "What" and "How" has to be done depends a lot on your needs and can be very, very different. I'll give you some points to be clarified.
 
If you want to do that, then I would say it has almost nothing to do with the installator.
 
One possibility is to create a service in background checking all the time for new updates, but I don't think it is a good idea (I personally don't like software doing that). I think that should be placed at the InitInstance of the program, so it checks for an available update, when starting up.
 
Once you know if there is a new update or not, you start the routine to download the new version. Once downloaded, the running instance of the software should close. If you want it automated, then you should keep track of where the file was downloaded.
 
Now starts the tricky part, difficulty is directly proportional to you wishes and how the software is installed.
 
If all the software-files are in the same folder (for tiny and middle software is the best option) and you don't want a customized install, that's the easiest way. Run the updater, check for previous versions, delete the old one, install the new one.
 
If the software has some files in the system folder of the operating system or if you want to keep track of installed components and then give the possibility of customized upgrade... that's going to be hard.
 
Addition after comment 1
Please read carefully. I have told you the steps. You want to popup a window whenever a new update is available, so:
1) create a service that will be executed at autostart and remain in background, checking (let's say) 2 times a day, if there is new update.
2) If new update available, generate pop-up to download
3) When downloading, keep track of the path where the file is being saved
4) once downloaded, check if the programm is running and shut it down if yes
5) (optional) Uninstall your previous version (watch out with common files to other softwares)
6) install your new version (overwriting your previous if you didn't make Step 5)
 
Addition after comment 2
Create Windows Service[^]
  Permalink  
v5
Comments
Member 9828510 at 26-Jun-13 2:52am
   
Thanks for reply .Please give the steps and description to do automatic upgrade the version of product setup
Nelek at 26-Jun-13 4:25am
   
Answer updated
Member 9828510 at 26-Jun-13 4:45am
   
Thanks for reply .I want to know in details about service .How to create it ? Please tell me about that.
Member 9828510 at 26-Jun-13 5:21am
   
Thanks .I want to ask one more thing that is there is any way to remove the option "Do not close applications.(A reboot may be required )" .Actually if my application is in running mode and during that time if any body want to uninstall that application then it is prompting "File is in use" with two option :1.automatically close the application 2.do not close the application.If user select second one then it is allowing to uninstall the application without closing the application.Due to this setup can be removed from system but application is showing in running mode on windows.How to resolve this issue?
Nelek at 26-Jun-13 5:38am
   
I would not ask. If the user wants to install, he/she has to stop the application. 99% of the software do it like that. How are you suppose to uninstall a running application? Sorry, but it makes not sense for me.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 George Jonsson 215
1 Kornfeld Eliyahu Peter 169
2 Zoltán Zörgő 139
3 PIEBALDconsult 130
4 OriginalGriff 120
0 OriginalGriff 6,165
1 DamithSL 4,658
2 Maciej Los 4,107
3 Kornfeld Eliyahu Peter 3,649
4 Sergey Alexandrovich Kryukov 3,342


Advertise | Privacy | Mobile
Web01 | 2.8.141220.1 | Last Updated 26 Jun 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100