|
hi,
i am using the clickonce to download my windows application, for some reason i want to install the application every time the user click the link. ie no install or no cache in the client side. how can we achieve this? hope some one can help me on this. thanks. badri prasad, Software Engineer- Changed TypeBruce.ZhouMSFT, ModeratorMonday, April 27, 2009 9:31 AMNot followed up in time
-
|
| badri prasad Wednesday, April 22, 2009 6:07 AM |
badri prasad,
Make it an online-only application. It will always run it off of the internet. It does install the files, though, and cache them. If you want an application that doesn't do that, write a web application.
If you want to try online mode, go to the Publish tab for your main project. In the middle under Install Mode and Settings, you will see the radio button.
RobinS. http://robindotnet.wordpress.com - Edited byRobinDotNetMVP, ModeratorWednesday, April 22, 2009 6:33 AMchange link after name
-
|
| RobinDotNet Wednesday, April 22, 2009 6:32 AM |
Thank you for your reply and i do have my application which is avaliable online only. in that mode also if i change the app.config file in the server it doesn't reflect in the client machine. to achieve this what we need to do. thank you. badri prasad, Software Engineer |
| badri prasad Wednesday, April 22, 2009 6:36 AM |
Are you deploying a new version of your application after changing the app.config file? RobinS. http://robindotnet.wordpress.com |
| RobinDotNet Wednesday, April 22, 2009 6:37 AM |
no i am not, deploying a new version. badri prasad, Software Engineer |
| badri prasad Wednesday, April 22, 2009 6:39 AM |
Sorry, but you have to. It won't pick up the update if you don't deploy a new version with a new version number. ClickOnce verifies that the files are the same as cached and doesn't download it if it is not a new version of the deployment.
RobinS. http://robindotnet.wordpress.com |
| RobinDotNet Wednesday, April 22, 2009 6:41 AM |
so you mean for each small config change, we need to redeploy to server once agin to get a new version number?
is there any other way, because we will be giving the application to the client and they will install in the application server and for the config change they can't redeploy the whole application once again? badri prasad, Software Engineer |
| badri prasad Wednesday, April 22, 2009 6:44 AM |
Yes. Any time you change any file in the deployment, you have to republish.
You can also give the clients mageui.exe and have them change the config file and re-sign the application and deployment manifests. They can also increase the version number when they do that.
Or you could have your application pull down the configuration file in a background thread, if that's feasible at all.
RobinS. http://robindotnet.wordpress.com |
| RobinDotNet Wednesday, April 22, 2009 6:47 AM |
as i am new to this tool, can you please explain in detail about how to change the manifest and version number using the mageui.exe
thank you. badri prasad, Software Engineer |
| badri prasad Wednesday, April 22, 2009 6:52 AM |
Track down a copy of mageui.exe (mine is under the Microsoft SDKs folder under Program FileS) and open your appname.application file and the appname.exe.manifest with it. One has the list of files included in the deployment, the other has info like the publish location. If you change a file and want to re-version, you have to re-sign both files. They look like regular XML, but they are not; they are digitally signed. So if you edit in a text editor and save, you will mess them up and have to redeploy. Just FYI. Here's a blog entry with a channel 9 video explaining how to do so with Mage.exe, which is sort of the same as MageUI, although I've heard it has fewer options. http://blogs.msdn.com/vsto/archive/2009/04/08/channel-9-interview-resigning-clickonce-application-and-deployment-manifests-with-mage-beth-massi-saurabh-bhatia.aspxRobinS. http://robindotnet.wordpress.com |
| RobinDotNet Wednesday, April 22, 2009 6:59 AM |
hi,
i have followed the procedure said in the video about mage.exe and did the same, the machines in which we are installing newely got the changes and the machines in which we already installed is pointing to the older version. is there any other way to clear the cache from clients machine. i have also used mage -cc comand. after that also i am facing the same problem.
please help me to solve this issue. thank you. badri prasad, Software Engineer |
| badri prasad Wednesday, April 22, 2009 8:57 AM |
May I ask why you need to change the app.config file so frequently? If it is for some custom variables, you may want to look at reading those from a webservice or a network file instead of the app.config. RobinDotNet is correct that you would need to re-publish the application and increment the version number for the machines with the current version to even notice the changes. (Clickonce only checks for file changes if the version changes) |
| Adrient Wednesday, April 22, 2009 3:05 PM |
Did you increment the version number? RobinS. http://robindotnet.wordpress.com |
| RobinDotNet Wednesday, April 22, 2009 8:57 PM |
Thank you Adrient, that's a really good question.
badri prasad -- what is in your app.config file that needs to be updated so often? Inquiring minds want to know.
RobinS.
ClickOnce blog http://robindotnet.wordpress.com |
| RobinDotNet Wednesday, April 22, 2009 8:58 PM |
We are changing the issue type to “General Discussion�because you have not followed up with the necessary information. If you have more time to look at the issue and provide more information, please feel free to change the issue type back to “Question�by opening the Options list at the top of the post editor window, and changing the type. If the issue is resolved, we will appreciate it if you can share the solution so that the answer can be found and used by other community members having similar questions. Please mark the replies as answers if they help and unmark if they don't. |
| Bruce.Zhou Monday, April 27, 2009 9:31 AM |