471,305 Members | 1,428 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,305 software developers and data experts.

Publish, ClickOnce

hi,

I like the Publish function comes with VS2008.

But 3 questions remain: how to make update path to be flexiable? Because I
will give those updates to my cutomers, and different cutomer will use
differnt server/shard path.

And after install on client machine, where does it copy all files? Because I
have a configure file need user to modify it. Each cutomer has hundrends
of users.

So the next question, which is not as important , how to install this file
in original package but should not be updated?

Thanks,
Ryan
Jun 27 '08 #1
3 1893
But 3 questions remain: how to make update path to be flexiable?
his is burned into the manifest; if you want to use ClickOnce, I'd
simply setup a build script that build it <ntimes with different
values. You can't change the manifest by hand without triggering the
security checks.
And after install on client machine, where does it copy all files?
ClickOnce "installs" (not quite the right word) into a special area
under the user's profile - somewhere like:
%userprofile%\Local Settings\Apps\2.0
Because I have a configure file need user to modify it.
If you mean the user-settings file, then fine; probably easiest to
edit via code, though.
If they edit any of the core files, there is a very good chance that
ClickOnce will refuse to run it; there is a security hash stored with
the files, and any mismatches are considered terminal. There may be
ways to disable this for specific files, but I've never had cause to
look...

Of course, you could solve this and the "not be updated" issue at the
same time by handling this file manually somewhere *else* in the
user's profile - if it doesn't exist yet, then copy the master from
the ClickOnce folder, otherwise just load the user's file and ignore
the ClickOnce version - then it doesn't matter if the master gets
updated.

Marc
Jun 27 '08 #2
Marc, Thanks! And

"Marc Gravell" <ma**********@gmail.com>
??????:e6**********************************@m3g200 0hsc.googlegroups.com...
>But 3 questions remain: how to make update path to be flexiable?
his is burned into the manifest; if you want to use ClickOnce, I'd
simply setup a build script that build it <ntimes with different
values. You can't change the manifest by hand without triggering the
security checks.
>And after install on client machine, where does it copy all files?
ClickOnce "installs" (not quite the right word) into a special area
under the user's profile - somewhere like:
%userprofile%\Local Settings\Apps\2.0
Then this might be a problem, another user log in then won't see the
application.
>Because I have a configure file need user to modify it.
If you mean the user-settings file, then fine; probably easiest to
edit via code, though.
If they edit any of the core files, there is a very good chance that
ClickOnce will refuse to run it; there is a security hash stored with
the files, and any mismatches are considered terminal. There may be
ways to disable this for specific files, but I've never had cause to
look...
Yes, just an .ini file for user to set.

Of course, you could solve this and the "not be updated" issue at the
same time by handling this file manually somewhere *else* in the
user's profile - if it doesn't exist yet, then copy the master from
the ClickOnce folder, otherwise just load the user's file and ignore
the ClickOnce version - then it doesn't matter if the master gets
updated.

Marc

Jun 27 '08 #3
Then this might be a problem, another user log in then won't see the
application.
Correct. If you want all-users install, I'd use an msi. One feature of
the ClickOnce approach is that it allows the user to install even on
locked-down PCs, where they can't run standard (system-wide)
installers. Swings / roundabouts...

Marc
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Josef Brunner | last post: by
4 posts views Thread by AMP | last post: by
4 posts views Thread by Paul Engel | last post: by
2 posts views Thread by Pieter | last post: by
3 posts views Thread by =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.