add info file to click once application

S

send2dudi

Hi all

I have an application that is installed using click once.
I am trying to add a documentation file that will be added to the
Start->Programs->My App

How do i do that?

Thanx
 
R

RobinS

You have to add it to your Visual Studio Solution, and mark the build type
as Content. Then in your Publish properties, where it shows all the files
in your solution, be sure that one is included. I think that will do it.

Robin S.
 
S

send2dudi

Thanks fot the reply

I did that for other data files i use, but they do not show in the
Start->Programs->.
Any other ideas ?

Thanks again


RobinS כתב:
 
R

RobinS

The answers to your questions are not short and easy.

This is from Brian Noyes' book about Click Once Deployment, which I
recommend you rush right out and buy and read.


Applications deployed through ClickOnce don't show up in ProgramFiles. All
of the application files are placed under a set of folders dynamically
created by the runtime under the user's profile when the app is deployed to
the client machine. The folder names are obfuscated by design for security
reasons. This also makes it difficult for someone to be able to go into
those folders and launch the app from there, since a ClickOnce deployed
application should always be launched by ClickOnce.

Generally, they go under C:\Documents and
Settings\username\LocalSettings\Apps on XP.

About the file thing:

Did you add the files as DataFile or Application File? If the Publish
Status is set to Data File in the Application Files dialog, they will be
treated different when the application is deployed to the client machine
and when updates occur.

Any file whose Publish Status is set to Data File will be copied to the
Publishing Location folders along with the rest of the application files.
When the application is deployed to the client machine, these files will be
put in a separate folder for each application and version under a \Data
root directory under the user profile. You can get the path to this folder
on the client programmatically using the Application.UserAppDataPath
property or with the ApplicationDeployment.DataDirectory property.

And he goes on and on about how the data directory's not there until the
first the user launches the app, and stuff about reading the files, etc.
Sorry, but I don't have time to type the whole chapter in, and I can't
condense it down enough to give you a quick "Do This" answer; there's a lot
of stuff involved. The book is very good, and goes into specifics about
prerequisites, installation packages, plug-ins, etc.

Good luck.
Robin S.
------------------------
Thanks fot the reply

I did that for other data files i use, but they do not show in the
Start->Programs->.
Any other ideas ?

Thanks again


RobinS ???:
 
S

send2dudi

Again thanks for the reply

I do have that book - No help there
I see no other way but to add a short cut to the doc file by code...

Cheers
 
R

RobinS

Bummer. You might try e-mailing the author. I've done that, and he has very
graciously e-mailed me back. It might take a couple of days to get an
answer, but it's free to try. If you figure something out, please post
back, because I might need to know this too!

Robin S.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top