Results 1 to 3 of 3

Thread: Clickonce with added .ini file

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    69

    Clickonce with added .ini file

    My data.ini resides in the application exe folder contains my connection string.
    When I published my app using clickonce the data.ini did not get published .
    I manually copied it to the published folder and it doesnt seem to work.

    The ini file holds only the connection string.
    I found the settings tab on the solution properties which can keep connection string info. But I dont know how to use this to use in my application.

    Or I need a way to publish data.ini along with my appliaction.
    Any help appreciated.
    Thx

  2. #2
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Clickonce with added .ini file

    nilaavu,

    Since you did not mention what installation package you are using, I will assume you are using PDW. In PDW you need to add the file to your package during the wizard run, then it will be eployed.

  3. #3
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Clickonce with added .ini file

    You need to add the INI file to your project in the solution explorer. Then it will be automatically included in your published installer.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width