473,386 Members | 1,721 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 2012
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: dave | last post by:
For some reason in my visual C# 2005 express installation, when ever i publish even a simple app, in the properties, the "sign the clickonce manifest" and the "enable the clickonce security...
2
by: Josef Brunner | last post by:
Hi, my application uses some configuration files. Since I could not find a way to have VS 2005 include these files into the generated Setup program once I publish the ClickOnce application (not...
21
by: Al Christoph | last post by:
I posted this last week end in the MSDN forums. No luck there. Let's see what the experts here have to say:-)))) I have a rather convoluted project. The distributable will come in eight...
4
by: AMP | last post by:
Hello, I am trying to publish a program and I want to include some files, Readme....ect. I tried putting them in the Resourses but that doesnt publish them. How do I make sure they are included...
0
by: jayrooney07 | last post by:
Hi, I'm working on a C# project in which there's a conflict between two dll-files (office automation dll's, version 2.1 & version 2.4), forcing me to manually copy the second dll to the...
10
by: Phil | last post by:
VB2005 Express. I am developing a solution that involves a windows forms application and a number of class library projects (DLLs). Some of the DLLs require extra data files or third party dlls. I...
4
by: Paul Engel | last post by:
I have an app that published fine to our network. We just moved to a new server and I am trying to publish my app to the new server. It fails and I get the following messages: Error 1 Cannot...
2
by: Pieter | last post by:
Hi, We're using ClickOnce alreaddy more than a year for a given applicaiton, doing more than 50 publishes without any problem. Yesterday we made a minor change to one of our components (let's...
3
by: =?Utf-8?B?QWxoYW1icmEgRWlkb3MgS2lxdWVuZXQ=?= | last post by:
Hi all, I am working on a windows forms app. I do my development in a development environment, and I have certain settings in my app.config like connection to WCF services that point to my...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.