How to default the location for setup exe


How to default the location for setup file during the installation? What I means here is, once i make the setup file for my vb program, and once I run this setup file, I want it install to c:\myvbprogram\hello folder by default.

Normally, the default is c:\Program Files\....something. How can I by pass this in order to install it in my default location?

Thanks for any suggestion.
Who is Participating?
setiawanConnect With a Mentor Commented:
Use Install Shield, VB Setup Wizard is not enough to do what do you want
Go in and edit the SETUP.LST file to manually set the installation directory.

Down in the [Setup] section:


Change the DefaultDir to where ever you want.

You can also change the title, program group, etc.


ht055Author Commented:
Hi setiawan,
How to the Install Shield? Do you mind to give more clue and example?

Hi mark2150,

You way is work.

Thank for both of you.
Just follow the wizard :)
I think you have your answered from mark2150
But If you want more try InstallShield
InstallShield can give you more (including registry setting)
and many other features.
warning : it is not promotion :)


This question was awarded, but never cleared due to the JSP-500 errors of that time.  It was "stuck" against userID -1 versus the intended expert whom you awarded.  This corrects the problem and the expert will now receive these points; points verified.

Please click on your Member Profile and select "View Question History" to navigate through any open or locked questions you may have to update and finalize them.  If you are an EE Pro user, you can also choose Power Search to find all your open questions.

This is the Community Support link, if help is needed, along with the link to All Topics which reflects many TAs recently added.
Thank you,
Moderator @ Experts Exchange
All Courses

From novice to tech pro — start learning today.