Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / New Users / April 2007

Tip: Looking for answers? Try searching our database.

add info file to click once application

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
send2dudi@gmail.com - 16 Apr 2007 12:14 GMT
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
RobinS - 17 Apr 2007 04:06 GMT
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.
---------------------
> Hi all
>
[quoted text clipped - 5 lines]
>
> Thanx
send2dudi@gmail.com - 17 Apr 2007 08:22 GMT
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 כתב:
> 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
[quoted text clipped - 11 lines]
> >
> > Thanx
RobinS - 18 Apr 2007 06:25 GMT
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 ???:
> You have to add it to your Visual Studio Solution, and mark the build
> type
[quoted text clipped - 14 lines]
> >
> > Thanx
send2dudi@gmail.com - 18 Apr 2007 10:17 GMT
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
RobinS - 18 Apr 2007 18:48 GMT
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.
-----------------------
> 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

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.