Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > Separate installers: full and demo
 

Separate installers: full and demo

I'm creating a product which has two versions: a demo version which will be freely released and a full version which will be available only to paid customers. I have two different installers and the user will most likely install the full version on top of the demo (it's an IE add-in and both versions are named the same and both version are installed into the same location).

I'd like to make this as easy as I can for my customers so ideally I'd like to not have to force them to uninstall the demo before installing the full version. Ideally, I'd like the full installer to detect if the demo is installed, and then silently uninstall the demo, so some questions I have are:

* Is this possible?

* And if so, how does one silently uninstall an application?

* Is there a better way to accomplish this? (install the full version on top of the demo)



Thanks,

Jeff
Jeff99999  Wednesday, September 16, 2009 6:52 AM
RemovePreviousVersions will do this. If you make the demo setup project version 1.0 and ship it, then when you make the full project make sure it has a different ProductCode, the same UpgradeCode, and its version is greater than 1.0. If the files are different in the full version then increment their file versions to ensure they overwrite the demo files.

Also,set DetectNewerInstalledVersion in the demo setup project.

Installing full will then upgrade demo (RemovePreviousVersions), and attempting to install demo over full will give an error "a later version of this product is already installed" (DetectNewerInstalledVersion) or some error likethat.
Phil Wilson
PhilWilson  Wednesday, September 16, 2009 7:48 PM
RemovePreviousVersions will do this. If you make the demo setup project version 1.0 and ship it, then when you make the full project make sure it has a different ProductCode, the same UpgradeCode, and its version is greater than 1.0. If the files are different in the full version then increment their file versions to ensure they overwrite the demo files.

Also,set DetectNewerInstalledVersion in the demo setup project.

Installing full will then upgrade demo (RemovePreviousVersions), and attempting to install demo over full will give an error "a later version of this product is already installed" (DetectNewerInstalledVersion) or some error likethat.
Phil Wilson
PhilWilson  Wednesday, September 16, 2009 7:48 PM
Thanks! I'll try this approach.

Jeff

Jeff99999  Friday, September 18, 2009 4:17 PM

You can use google to search for other answers

Custom Search

More Threads

• Deploying a Database with Win Forms App
• Installation Setup Wizard. Application does not appear on my Start Menu?
• .net framework for xp 64?
• deploying the data base file
• ClickOnce loads old version from server
• Secure web installation
• Installation Error 2908
• Problem with multiple ClickOnce versions of same executable installed on a machine
• ClickOnce causes bsod
• Bootstrapper leaves files in TEMP directory