Home All Groups Group Topic Archive Search About

clickonce xml data file

Author
19 Jul 2006 7:37 AM
James Wong
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_d9f1875ab364a710

Author
19 Jul 2006 9:56 AM
Linda Liu [MSFT]
Hi James,

Thank you for posting here!

I noticed that you have posted the same question in our
microsoft.public.dotnet.general newsgroup, which I have already responded.
So please check my answer there and if you need any further assistance on
this particular issue, please reply to me in that thread so I can follow up
with you in time.

For your convenience, I have included my reply as follows.

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/library/d8saf4wy(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.

Thank you and have a nice day!


Sincerely,
Linda Liu
Microsoft Online Community Support