PDA

Click to See Complete Forum and Search --> : Install directory in Setup Wizard


JamesKirk
Nov 8th, 1999, 04:32 AM
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?

QWERTY
Nov 8th, 1999, 05:00 AM
Create your own Installer

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

Lyla
Nov 8th, 1999, 05:36 AM
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.

MartinLiss
Nov 8th, 1999, 06:16 AM
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

Ryan
Nov 8th, 1999, 07:25 AM
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
support@niresoft.com