Click here to Skip to main content
15,890,336 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I have done a wpf application to my client machines. i have added a setup wizard to my vss solution and with help of it i am creating a setup file. Now if the setup file is double clicked the application will be installed in that respective system. Now I want to give update versions to that application.. So whenever the user starts to open that application, then it should ask with a prompt that whether to install the latest version or not... When i browsed in web I cam to know that Click One is best suited for my requirement. I have don't through Click One but my problem is that its just downloading a .msi file.... which will not act as my setup behaves.. So I was strucked here.... IF any valuable info is present about my problem please post it to me... For Database call I have written a wcf application.
Posted

1 solution

ClickOnce is an alternative to MSI. They don't mix. When using ClickOnce, you don't create a setup project and you don't have an MSI file.

An MSI (or setup.exe) is required if want to be able to install the app for "all users", or configure the computer to run the app whenever a user logs on (by putting it in the Startup folder). Such installations require administrator privileges.

A ClickOnce app is installed only for the current user and doesn't require administrator privileges to install. Also you (and the user doing the install) have no control over where the app is actually installed. It goes into the "ClickOnce cache". The actual directory path looks like a cat gave birth on your keyboard.

To use ClickOnce, go to the project settings of the app you want to deploy (not your setup project) and click on the Publish tab in Visual Studio. There are several things to configure, but the two most important are the path where you want the app to be deployed to, and the path that users will use to access the installation and get updates from. You should probably publish to a local directory and experiment with the configuration until you get the desired results.

ClickOnce apps can be uninstalled via 'Programs and Features' (aka 'Add or Remove Programs').
 
Share this answer
 
Comments
jing567 31-Jan-14 23:34pm    
Hi Mark,
Your info is very valuable...I just followed it... Now I want to provide uninstall option in my start up menu.....Can u guide me how it is possible through click one...I previously achieved uninstall option through setup file....
MarkLTX 1-Feb-14 21:17pm    
Sorry, I don't know that. It's not something built in to ClickOnce. You'll probably have to do something manually in your code.

Once installed, the app will have a registry key under HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Uninstall. You'll probably need to search for the right key based on the value of DisplayName, Publisher or some other value inside those keys. Once you identify which key belongs to your app, extract the UninstallString value and execute it. That's what I was able to find with a Google search, but I've never actually tried it.

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900