473,396 Members | 1,875 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,396 software developers and data experts.

clickonce xml data file

Hi,

I have some XML config file in my VB project.

When I use clickonce to publish my project, the execute files and the xml
data files are not in the same folder of the client computer. How can I get
the real path of my xml data files? Thanks

for example,
execute file path:
C:\Documents and Settings\ABC\Local
Settings\Apps\2.0\ATYXOMR1.MJO\3MBQ94PV.A0L\clic.. tion_4593a29cad7ddd6d_0001.0000_8d6cefa7f90cf08d

xml data path:
C:\Documents and Settings\ABC\Local
Settings\Apps\2.0\ATYXOMR1.MJO\3MBQ94PV.A0L\clic.. .exe_4593a29cad7ddd6d_0001.0000_none_d9f1875ab364a 710
Jul 19 '06 #1
3 1783
Hi James,

Thank you for posting.

Have you set the Publish Status of the xml file to "Data File"? If so,
after installation, the xml file will be located in the Data directory in
the end user's Local Settings folder. For information on reading from and
writing to the Data directory, you could refer to the following link.

http://msdn2.microsoft.com/en-us/lib...wy(d=ide).aspx

However, you have another option to publish the xml file. You could set the
Publish Status of the xml file to "Include". In this case, after
installation, the xml file will be located in the same path where the
application's executable (.exe) files and assemblies reside. Thus you
could access this xml file
directly in your program.

Hope this helps.
If you have anything unclear, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

================================================== ==========================
=============================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

With newsgroups, MSDN subscribers enjoy unlimited, free support as opposed
to the limited number of phone-based technical support incidents. Complex
issues or server-down situations are not recommended for the newsgroups.
Issues of this nature are best handled working with a Microsoft Support
Engineer using one of your phone-based incidents.

================================================== ==========================
=============================================
This posting is provided "AS IS" with no warranties, and confers no rights.

Jul 19 '06 #2
thx~
"Linda Liu [MSFT]" <v-****@online.microsoft.com¼¶¼g©ó¶l¥ó·s»D:0p******** ******@TK2MSFTNGXA01.phx.gbl...
Hi James,

Thank you for posting.

Have you set the Publish Status of the xml file to "Data File"? If so,
after installation, the xml file will be located in the Data directory in
the end user's Local Settings folder. For information on reading from and
writing to the Data directory, you could refer to the following link.

http://msdn2.microsoft.com/en-us/lib...wy(d=ide).aspx

However, you have another option to publish the xml file. You could set
the
Publish Status of the xml file to "Include". In this case, after
installation, the xml file will be located in the same path where the
application's executable (.exe) files and assemblies reside. Thus you
could access this xml file
directly in your program.

Hope this helps.
If you have anything unclear, please feel free to let me know.

Sincerely,
Linda Liu
Microsoft Online Community Support

================================================== ==========================
=============================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

With newsgroups, MSDN subscribers enjoy unlimited, free support as opposed
to the limited number of phone-based technical support incidents. Complex
issues or server-down situations are not recommended for the newsgroups.
Issues of this nature are best handled working with a Microsoft Support
Engineer using one of your phone-based incidents.

================================================== ==========================
=============================================
This posting is provided "AS IS" with no warranties, and confers no
rights.

Jul 24 '06 #3
Hi James,

You're welcome!

If you have any other questions in the future, please don't hesitate to
contact us. It is always our pleasure to be of assistance.

Have a nice day!

Sincerely,
Linda Liu
Microsoft Online Community Support
Jul 24 '06 #4

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

Similar topics

11
by: moondaddy | last post by:
I have a .net 2.0 smarclient app and am trying to deploy it to IIS where users can access it from. I created an application folder in IIS where I'm trying to deployee to. 1) When the...
1
by: moondaddy | last post by:
I have a sample vb .net 2.0 winforms app and am using Oneclick deployment to a remote server. All of the files (DLLs, EXEs, manifests, configs, etc.) seem to get deployed to the target folder on...
3
by: Chris Rennert | last post by:
Hey all, we have a project that we would like to use ClickOnce deployment on, and although it all seems straightforward we are having a few issues concerning SQL Server Express and clickonce. We...
1
by: Andrew86 | last post by:
I have an application which requires a number of DLLs (unmanaged ansi C dlls) to reside in the same directory as the application. I currently have these dlls included in the project folder and...
0
by: Etienne | last post by:
Hi, I am settings up my application to work with ClickOnce deployment. However, after instlling installing an update, the database doesn't get copied. I tried everything I could think of. It is...
3
by: Meelis Lilbok | last post by:
Hi I have made a project with vb.net and publish it(clickonce) On firs laucnh app creates a xml file in startuppath\database\file.xml Now when i update my app and publish it, after...
6
by: Irfan | last post by:
hi, After installing the application in the client machine using ClickOnce, i would like that the client be able to change the database path in the Application.Config file. However, clickonce...
3
by: Peter Wyss | last post by:
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,...
3
by: =?Utf-8?B?Tmlrb2xheSBQb2Rrb2x6aW4=?= | last post by:
Good noon, community! Would you be so kind and help me solve my problem. I need Deploy application through ClickOnce technology. I've configuration file where I assign sensitive data about...
0
by: andrewschools | last post by:
Hi, I'm using ClickOnce for all of my installations and updates. However, when I modify any of the datasets in my application, when a user downloads the new update, all their data saved in their...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...

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.