469,910 Members | 1,496 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,910 developers. It's quick & easy.

ClickOnce: How to change the codebase location in code

Sorry I keep posting around tha subject but I cannot get seem what I need
out of clickonce.

another thing that would hele me would be the ability to change the codebase
tag on the server in code at runtime.

lets say on the server I have the following information in my
WindowsApplication1.application file
<deploymentProvider
codebase="http://localhost/task/WindowsApplication1.application" />

I want to write an application that can change it like so without using
mage.exe or mageUI.exe this is the only line I need to change and I wna tto
change it on the fly and on demand to somethig like so.

<deploymentProvider
codebase="http://localhost/task/111111/WindowsApplication1.application" />

I have loaded it into a XmlDocument and changed it but this will not work
because it corrupts the file. It looks as it there is CRC info or something
inbeded in file tho keep people form doing just that for security purposes.

Any help will be GREATY appriciated

Thanks
Jan 30 '07 #1
1 4672
You can modify the codebase however once it changes in anyway from
initial deployment you have to resign the manifests. You have
basically one option here in two flavors. Run Mage.exe or MageUi.exe
and use your key to sign the updated manifests (this basically
acknowledges that the changes you made are valid and not a hack
attempt)
Jan 31 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Danny Tuppeny | last post: by
7 posts views Thread by hgirma | last post: by
3 posts views Thread by Ronald S. Cook | last post: by
2 posts views Thread by Jamey McElveen | last post: by
6 posts views Thread by Irfan | last post: by
3 posts views Thread by Peter Wyss | last post: by
3 posts views Thread by Peter Carlson | last post: by
3 posts views Thread by =?Utf-8?B?S2VuIExlbWlldXg=?= | last post: by
1 post views Thread by Waqarahmed | last post: by
reply views Thread by Salome Sato | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.