Results 1 to 5 of 5

Thread: Install directory in Setup Wizard

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 1999
    Posts
    2

    Post

    When the Setup Wizard is run it creates the file setup.exe. When Setup.exe is run, it asks if you want to install in such-and-such a directory or you want to change it.

    I DON'T WANT THE USER TO CHANGE IT, since my program looks for files in C:\MyDirectory. Anyway to FORCE it to install in C:\MyDirectory?

  2. #2
    Fanatic Member
    Join Date
    Oct 1999
    Location
    MA, USA
    Posts
    523

    Post

    Create your own Installer

    ------------------
    Visual Basic Programmer (at least I want to be one)
    ------------------
    PolComSoft
    You will hear a lot about it.


  3. #3
    Addicted Member
    Join Date
    Jul 1999
    Location
    Portland, OR.
    Posts
    226

    Post

    Hi. Try modifiying the setup program that is in your VB Dir. For example: You may make that form's field read only, OR go to the code and modifiy it to your needs.
    Good Luck.

  4. #4
    Former Admin/Moderator MartinLiss's Avatar
    Join Date
    Sep 1999
    Location
    San Jose, CA
    Posts
    33,431

    Post

    You don't need to do any of the above. Just add an ForceUseDefDir=1 (or perhaps it's ForceUseDefDir=True) to the [Setup] section of your setup.lst file.

    ------------------
    Marty

  5. #5
    Lively Member
    Join Date
    Jan 1999
    Location
    California
    Posts
    115

    Post

    Why are you working against yourself? Don't worry about where the setup wizard install's your application, instead of looking for files/calling files like, C:\ExampleDir, use App.Path. That way, doesn't matter where the files go, it'll find them no matter what.

    ------------------
    Ryan French
    Niresoft Incorporated
    http://www.niresoft.com
    [email protected]

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