|
dev
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
add info file to click once applicationHi 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 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. --------------------- <send2d***@gmail.com> wrote in message Show quote news:1176722091.949615.151770@y80g2000hsf.googlegroups.com... > 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 > 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 כתב: Show quote > 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. > --------------------- > <send2d***@gmail.com> wrote in message > news:1176722091.949615.151770@y80g2000hsf.googlegroups.com... > > 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 > > 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. ------------------------ <send2d***@gmail.com> wrote in message news:1176794564.132063.123040@p77g2000hsh.googlegroups.com... Thanks fot the replyI did that for other data files i use, but they do not show in the Start->Programs->. Any other ideas ? Thanks again RobinS ???: Show quote > 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. > --------------------- > <send2d***@gmail.com> wrote in message > news:1176722091.949615.151770@y80g2000hsf.googlegroups.com... > > 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 > > 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 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. ----------------------- <send2d***@gmail.com> wrote in message Show quote news:1176887830.043172.88440@l77g2000hsb.googlegroups.com... > 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 > |
|||||||||||||||||||||||