473,769 Members | 4,591 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

ClickOnce Questions

Hello!

I've a few questions about ClickOnce in VisualStudio 2005. The
installation of my application works fine, I published the files on a
webserver and installed the app on a winxp client, updates works also
fine. But here's my first question:

- Our app produces xml-files on startup, which stores several
informations like gui-settings etc...now when I publish a new version
and my app updates, this xml-files rested in the old folder and weren't
copied to the new one -so my app lost this settings...the same problem
with the logfiles? Any suggestions on this issue? How can I copy the
xml-files to the new folder during an update?

An additional question on this first one:

- How can I delete this additional files during an uninstall?

- How can I handle it, that our supporters find the log-file easy,
because the location changes from machine to machine?

Thanks,
Peter
Jul 12 '07 #1
3 3796
First, please don't multi-post. If you want to ask the same question in
multiple groups, post to all of them at once, so if someone answers the
question, it's displayed in all groups.

1) XML files

If you include those with a Build Action of Data and mark them as "Copy
always" or "Copy if newer", they get put in the Data directory on the
client machine, accessible through code using
ApplicationDepl oyment.CurrentD eployment.DataD irectory.

If they don't change with subsequent versions, they get copied from the
previous version's DataDirectory to the new version's DataDirectory.

If they do change on the server (in any way, even just the time stamp), the
new ones get copied from the server to the new version's DataDirectory on
the client machine, but the old ones are copied from the old version's
DataDirectory to a subfolder in the new version's DataDirectory, called
\.pre . You can access that through code. I believe that the fact that it
exists is reason enough to know you have an upgraded version.

If this is user settings, and you are creating it the first time the user
runs the application, try storing it in the Vista-approved location of
(Environment.Ge tFolderPath(Env ironment.Specia lFolder.LocalAp plicationData)
That's what we do; we create a folder there with the name of our product,
and store our user config files there, so we don't have to worry about them
being moved in a ClickOnce installation.

This goes to the LocalSettings under the user's profile.

2) "Delete additional files" -- what does this mean? What additional files?
CLickOnce can't do this for you, but you can write a program to do this and
have the Bootstrapper run it.

3) "log file" -- what log file? Is it a log file that you are creating? You
need to put anything like this in the LocalSettings under the user's
profile. Unless you ask the user for the location, there is nowhere you can
put it that you are guaranteed access to, especially with the advent of
Windows Vista. The safest place is the one mentioned above, and give the
user a button that will open and display the log file.

There is a great book on ClickOnce by Brian Noyes that anyone using it
should check out. It helped me immensely.

Robin S.
-----------------------------------------------

"Peter Wyss" <pe************ ****@timeware.c hwrote in message
news:uv******** ******@TK2MSFTN GP04.phx.gbl...
Hello!

I've a few questions about ClickOnce in VisualStudio 2005. The
installation of my application works fine, I published the files on a
webserver and installed the app on a winxp client, updates works also
fine. But here's my first question:

- Our app produces xml-files on startup, which stores several
informations like gui-settings etc...now when I publish a new version and
my app updates, this xml-files rested in the old folder and weren't
copied to the new one -so my app lost this settings...the same problem
with the logfiles? Any suggestions on this issue? How can I copy the
xml-files to the new folder during an update?

An additional question on this first one:

- How can I delete this additional files during an uninstall?

- How can I handle it, that our supporters find the log-file easy,
because the location changes from machine to machine?

Thanks,
Peter

Jul 15 '07 #2
Hy Robin,

Thanks for your answers!
2) "Delete additional files" -- what does this mean? What additional files?
CLickOnce can't do this for you, but you can write a program to do this and
have the Bootstrapper run it.
With additional files, I mean for example my log-files, stored in
(Environment.Ge tFolderPath(Env ironment.Specia lFolder.LocalAp plicationData),
which I create at startup of my program...how can I manage, that the
Bootsrapper run a program, which delete this files during the uninstall?

Thanks,
Peter
Jul 17 '07 #3
I don't think you CAN do custom stuff in an uninstall of a ClickOnce app.
If I remember, I'll look it up in Brian Noyes' ClickOnce book. I don't
remember seeing anything like that in there though.
Robin S.
----------------
"Peter Wyss" <pe************ ****@timeware.c hwrote in message
news:%2******** *******@TK2MSFT NGP06.phx.gbl.. .
Hy Robin,

Thanks for your answers!
>2) "Delete additional files" -- what does this mean? What additional
files? CLickOnce can't do this for you, but you can write a program to
do this and have the Bootstrapper run it.

With additional files, I mean for example my log-files, stored in
(Environment.Ge tFolderPath(Env ironment.Specia lFolder.LocalAp plicationData),
which I create at startup of my program...how can I manage, that the
Bootsrapper run a program, which delete this files during the uninstall?

Thanks,
Peter

Jul 24 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4703
by: Mika M | last post by:
Hi! I made ClickOnce deployment for Windows Forms VB 2005 application, and it's working mostly fine. Now I have some question: 1. Is it okay when my application goes into x:\Documents and Settings\...-directory in target computer, or is there something wrong with my ClickOnce deployment? I assumed application(s) goes into x:\Program Files\... -directory.
0
1052
by: Magnus Bergh | last post by:
I have some questions about ClickOnce: 1) If I want to run a Clickonce published application from another program (not .NET) how should I run it, calling the application manifest file? 2) Is it possible to manually edit .config files for the published application. For example I want to change the datasource name I have in app.config.
0
1166
by: PROCOS | last post by:
I already posted this in "Framework.Setup" but I think this was the wrong newsgroup. So here we go again: ------------------------- We have a large software suite (> 200 installation files + resource dlls) witch is written for framework 1.1. We use a 3 tier approach and remoting. Deployment is always a big issue for our customers and therefore ClickOnce would be an excellent solution. So my questions: 1) Is ClickOnce doing well with a...
8
1815
by: Tina | last post by:
While ASP.Net is migrating toward more robust presentation by using things like AJAX I am wondering if ClickOnce will errode a lot of ASP.Net presence in Corporate Applications. I've been reading a lot about ClickOnce and it seems compelling particularily since Vista will have the .Net framework included along with the other requirements for ClickOnce deployment. Is there some downside to ClickOnce deployment that I'm now aware of? ...
1
8780
by: M O J O | last post by:
Hi, I've have searched google, but can't find a solution to my problem. Om my develloper machine, I use one app.config, but when I deploy, I need to deploy another app.config. The reason is, that on my develloper machine, my app.config sqlconnection is pointing to my (local) database and I have several settings like "Debug=True", but when I deploy (using ClickOnce), I need to use an
2
2711
by: Jamey McElveen | last post by:
Hello, I would like to use ClickOne but we need to stagger our update process. Currently we are shipping cd's when it is time for an update. We stagger the release in waves of 250 each so our clients do not overwhelm our support staff with loading questions and new feature questions. ClickOnce will elininate the CD cost and the loading questions but that still does not take care of the calls for new feature questions. I would like to...
1
1765
by: dongarbage | last post by:
ClickOnce almost does what I want. However, there are a couple of additional things I want to do with my application which I believe are a challenge with a ClickOnce application: 1. The application is one which is to be purchased by my website's users. So, before the application is installed, the user must purchase the application. 2. The user must accept a user license agreement before installing the application.
0
821
by: James Wong | last post by:
Hi, 1) I want to deploy a setup file to another computer, it will publish to a web server for clickonce after run the setup file. Can I do this in VB.Net 2005? 2) How can I run the application in Firefox using clickonce? Thanks.
3
2044
by: Ryan Liu | last post by:
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
0
9424
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10223
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10051
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10000
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9866
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8879
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7413
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3968
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.