Adding files to ClickOnce VB.Net application

I have two problems with my ClickOnce VB.Net application:

  1. Is there a way that one can specify a default location where the application should install
  2. How do I get the path to location of the applocation once it is installed on a clients pc

The problem is that my program reference some compiled help files and an access database and need to keep track of where these files will be located once installed.

I am using Visual Studio 2005 to publish the app.




Answer this question

Adding files to ClickOnce VB.Net application

  • csalsa

    Application.StartupPath returns a string containing the full folder path the exe file.

    ex : C:\Program Files\<Yout Application Folder>



  • Lo&amp;#38;&amp;#35;239&amp;#59;c Baumann

    where i should put "Application.StartupPath"

    what is the full code

    many thx

    hunb



  • pmak

    you mean i can hard code the application path

    if so, which form i should put web.config or form1

    and what is the coding

    many thx

    hunb



  • CodeDjinn

    you can the application path as

    Application.StartupPath



  • OSPACS

    you can not under stand . this(Application.StatupPath) will return the application path.

  • learnerplates

    thanks...it worked

  • Adding files to ClickOnce VB.Net application