Click here to Skip to main content
13,046,679 members (61,253 online)
Rate this:
Please Sign up or sign in to vote.
See more:

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,
Posted 25-Jun-13 2:35am
Updated 25-Jun-13 22:31pm

1 solution

Rate this: bad
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[^]
Member 9828510 26-Jun-13 2:52am
Thanks for reply .Please give the steps and description to do automatic upgrade the version of product setup
Nelek 26-Jun-13 4:25am
Answer updated
Member 9828510 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 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 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 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 26 Jun 2013
Copyright © CodeProject, 1999-2017
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