Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


Setup vb program

Posted on 1999-07-02
Medium Priority
Last Modified: 2008-02-20
Here's the story,

I made 2 vb programs, one main program that is started by a monitoring program

this is what setup.exe should do:
A) I want one setup.exe for the two programs
B) I want the monitor to be started whenever windows starts
C) I want several files in the windows directory
D) I want both exe's and some other info files in a specific directory "C:\PROGDIR\" (so I dont want to use $(AppPath) )
E) I want an empty subdir in in "C:\PROGDIR\"

is there a special setup program for vb that allows ma to do this ?
Question by:Smout
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

Expert Comment

ID: 1521540
InstallShield Express 2 will allow this.

I post this as a comment, if it suits you, let me know and I'll resubmit as an answer.

Expert Comment

ID: 1521541
I must concur, install shield  express will allow you to do this.  It will also allow you to set up registry settings and soem other neat stuff.  It's a must use if you are packaging software, and it's very inexpensive.


Expert Comment

ID: 1521542

Below is an article out of Microsoft's MSDN CD set.  It should answer your question.  Using the mentioned file you can specify where files and directories are located.  You can also specify that an icon is placed in the Startup program group which will start a program on boot.



Visual Basic Concepts

Manually Editing a Setup.lst File
See Also

If you use the Package and Deployment Wizard, the wizard creates the Setup.lst file automatically. You can edit the file manually after creation if you need to customize it.

The Setup.lst file describes all the files that must be installed on the user's machine for your application and contains crucial information for the setup process. For example, the Setup.lst file tells the system the name of each file, where to install it, and how it should be registered. There are five sections to the Setup.lst file:

The BootStrap section — lists the core information about the application, such as the name of the main setup program for the application, the temporary directory to use during the installation process, and the text in the startup window that appears during installation.

The BootStrap Files section — lists all files required by the main installation file. Normally, this includes just the Visual Basic run-time files.

The Setup1 Files section — lists all other files required by your application, such as .exe files, data, and text.

The Setup section — contains information needed by other files in the application.

The Icon Groups section — contains information about the groups your installation process will create. Each member of this section has a correlating section containing the icons to be created in that group.
For More Information   See "Format of the Bootstrap and Setup1 Files Sections" for information on the syntax for these sections.

The BootStrap Section
The BootStrap section contains all the information the setup.exe file needs to set up and launch the main installation program for your application.

Note   Remember that there are two setup programs for your installation: setup.exe, which is a pre-installation program, and setup1.exe, which is compiled from the Setup Toolkit. The BootStrap section provides instructions to the setup.exe file.

The BootStrap section contains the following components:

Component Description
SetupTitle The title to show in the dialog box that appears as setup.exe is copying files to your system.
SetupText The text to show within the dialog box that appears as setup.exe is copying files to your system.
CabFile The name of the .cab file for your application, or the name of the first .cab file for your application if your package has multiple .cab files.
Spawn The name of the application to launch when setup.exe finishes processing. In most instances, this will be the setup1.exe file.  
TmpDir The location you wish to use for the temporary files generated during the installation process.
Uninstall The name of the application to use as an uninstall program. In general, this is st6unst.exe, which is automatically packaged into all packages created with the wizard.

The BootStrap Files Section
The BootStrap Files section lists all the files that must be loaded on the user's machine before your application and dependency files can be loaded. These pre-install, or bootstrap, files include the core files required to run any Visual Basic application, such as the Visual Basic run-time DLL (Msvbvm60.dll). The setup program installs these files prior to installing and launching the main installation program.

The following example shows entries in a typical BootStrap Files section:

[Bootstrap Files]
File1=@Msvbvm60.dll,$(WinSysPathSysFile),$(DLLSelfRegister),1/23/98 9:43:25 AM,1457936,

File2=@OleAut32.dll,$(WinSysPath),$(DLLSelfRegister),1/21/98 11:08:26 PM,571152,2.30.4248.1

File3=@OlePro32.dll,$(WinSysPathSysFile),$(DLLSelfRegister),1/21/98 11:08:27 PM,152336,5.0.4248.1

The Setup1 Files Section
The Setup1 Files section contains all the other files required by your application, such as your .exe file, data, text, and dependencies. The setup program installs these files after it installs the core files listed in the Bootstrap Files section.

The following example shows entries in a typical Setup1 Files section:

[Setup1 Files]
File1=@LotsAControls.exe,$(AppPath),$(EXESelfRegister),,1/26/98 3:43:48 PM,7168,

File2=@mscomctl.ocx,$(AppPath),$(DLLSelfRegister),,1/23/98 9:43:40 AM,1011472,

The Setup Section
The Setup section of the Setup.lst file is simply a list of information used by other parts of the installation process. The following table lists the information contained in the Setup section.

Component Description
Title The name of the application as it will appear in the splash screen during installation, in the program groups on the Start menu, and in the program item name.
DefaultDir The default installation directory. The user can specify a different directory during the installation process.
ForceUseDefDir If left blank, the user is prompted for an installation directory. If set to 1, the application is automatically installed to the directory specified by "DefaultDir" in Setup.lst.
AppToUninstal The name you wish to see as your application in the Add/Remove Programs utility in Control Panel.
AppExe The name of your application's executable file, such as Myapp.exe.

The IconGroups Section
The IconGroups section contains information about the Start menu program groups created by the installation process. Each program group to be created is first listed in the IconGroups section, then assigned an individual section (Group0, Group1, Group2, etc.) that contains information about icons and titles for that group. Groups are numbered sequentially starting at zero.

The following example shows entries in a typical IconGroups section and related subsections:




© 1999 Microsoft Corporation. All rights reserved. Terms of use.

Author Comment

ID: 1521543
I still can't put files in the startup directory (other language oses have a different directoryname ie Opstarten)

Accepted Solution

SiriusP earned 200 total points
ID: 1521544
add both groups (startup & opstarten)
or use zip selfextractor

Featured Post


Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question