Results 1 to 2 of 2

Thread: setup creator with updater

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2015

    setup creator with updater

    hey i using one click deployment and i wonder if there is a setup creator that use auto updater so the users in my domain will get my application too auto update when i had uploaded my file on the server iknow you can do that from VS publiser but the reason i want a setup creator is becuase i have some folder with RTF files that the program loads from the aplication folder like
    (" RichTextBox1.LoadFile("C:\Program Files\Beregner\visual\335_80-13.rtf")")
    and i also want it to put in the new RTF files in that folder

    or can you put the RTF file in as a ressoruce and make the richtextbox load from the ressource? if yes how would the code looks like?
    Last edited by kewin; Apr 24th, 2015 at 01:30 PM.

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Sydney, Australia

    Re: setup creator with updater

    That code you posted is bad regardless of how you deploy. If the RTF file is in the same folder as your EXE then you should be using Application.StartupPath to build the file path, i.e.
    RichTextBox1.LoadFile(Path.Combine(Application.StartupPath, "335_80-13.rtf"))
    Now the code works no matter where the program is, including on your development system.

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