How to
How to
This page contains suggestions and samples on how-to perform certain setup tasks using QSetup.
Most of the samples here invlove using the Execute Engine. The samples here should be treated
only as guidelines, feel free to modify them as needed.
How to install another setup file during setup?
GENERAL
Let's say you have another setup file by the name MyOtherSetup.exe that you want to install during the setup.
INSTRUCTIONS
- Go to the "Execute" page and add the file MyOtherSetup.exe to your setup as a Service File.
- Add a new "Execute" item with the following details:
Item Name: Run My Other Setup
Perform At: After Copy
Item Type: UnConditional
[Run Executable and Wait] ["<ServiceDir>MyOtherSetup.exe"] [____] [SW_SHOW]
REMARKS
After setup is concluded the file MyAnotherSetup.exe will be erased from the target PC.
How to install .NET Framework?
GENERAL
The .NET Framework is the collection of all classes required to run .NET applications.
.NET Framework must be installed before you can run .NET applications.
Installing the .NET Framework is done by running the file dotnetfx.exe on the target PC.
So far Microsfot has released 3 versions of the .NET Framework: 1.0, 1.1 and 2.0.
This sample we will focus on V1.1
INSTRUCTIONS
- Go to the "Execute" page and add the file dotnetfx.exe (V1.1) to your setup as a Service File.
- Add a new "Execute" item with the following details:
Item Name: DOT-NET Framework
Perform At: After Copy
Item Type: Conditional
IF
Not [.NET Framework Version Is in] [1.0,1.1,2.0] [_] [____]
THEN
[Run Executable and Wait] ["<ServiceDir>dotnetfx.exe"] [____] [SW_SHOW]
REMARKS
Before installation the program will check if V1.1 or higher is already installed.
After setup is concluded the file dotnetfx.exe will be erased from the target PC.
How to install MDAC?
GENERAL
MDAC stands for "Micorosoft Data Access Components Module".
MDAC is needed when you run a database application.
Installing MDAC is done by running the file MDAC_TYP.EXE on the target PC.
So far Microsoft hase released several versions of MDAC.
This sample we will focus on V2.7
INSTRUCTIONS
- Go to the "Execute" page and add the file MDAC_TYP.EXE (V2.7) to your setup as a Service File.
- Add a new "Execute" item with the following details:
Item Name: Install MDAC
Perform At: After Copy
Item Type: Conditional
IF
[ADO(MDAC) Version Is] [______] [<] [2.7]
THEN
[Run Executable and Wait] ["<ServiceDir>MDAC_TYP.EXE"] [______] [SW_SHOW]
REMARKS
Before installation the program will check if V2.7 or higer is already installed.
After setup is concluded the file MDAC_TYP.EXE will be erased from the target PC.
How to install MSDE?
GENERAL
MSDE stands for "Micorosoft Data Engine".
MSDE is Microsoft free version of the SQL Server 7.
Installing MSDE is done by running the file Setupsql.exe on the target PC.
For detailed description on how to install MSDE
Click Here
INSTRUCTIONS
- Go to the "Execute" page and add the file Setupsql.exe to your setup as a Service File.
- Add a new "Execute" item with the following details:
Item Name: Install MSDE
Perform At: After Copy
Item Type: Conditional
IF
[SQL(MSDE) Version Is] [______] [<] [7]
THEN
[Run Executable and Wait] ["<ServiceDir>Setupsql.exe"] [______] [SW_SHOW]
REMARKS
Before installation the program will check if V7 or higer is already installed.
After setup is concluded the file Setupsql.exe will be erased from the target PC.
How to install VB Runtime V6?
GENERAL
"VB Runtime" stands for "Visual Basic Runtime".
VB Runtime must be installed before you can run Visual Basic applications.
Installing "VB Runtime" is done by running the file vbrun60sp6.exe on the target PC.
So far Microsfot has released several versions of the VB Runtime.
This sample we will focus on V6
INSTRUCTIONS
- Go to the "Execute" page and add the file vbrun60sp6.exe to your setup as a Service File.
- Add a new "Execute" item with the following details:
Item Name: Install VB6
Perform At: After Copy
Item Type: Conditional
IF
Not [Visual Basic Runtime Found] [6] [__] [______]
THEN
[Run Executable and Wait] ["<ServiceDir>vbrun60sp6.exe"] [_____] [SW_SHOW]
REMARKS
Before installation the program will check if VB Runtime V6 is already installed.
After setup is concluded the file vbrun60sp6.exe will be erased from the target PC.
To download the file vbrun60sp6.exe from Microsoft website
Click Here.
At first you will download the file: VB6.0-KB290887-X86.exe.
Double click this file to run it and extract the file vbrun60sp6.exe out of it.
How to install BDE?
GENERAL
BDE stands for "Borland Database Engine".
Installing BDE is done by registering the file Bdeinst.dll on the target PC using regsvr32.
INSTRUCTIONS
- Go to the "Execute" page and add the file Bdeinst.dll to your setup as a Service File.
- Add a new "Execute" item with the following details:
Item Name: Install BDE
Perform At: After Copy
Item Type: Conditional
IF
Not [BDE Installed] [______] [_] [______]
THEN
[Run Executable and Wait][regsvr32][/s "<ServiceDir>Bdeinst.dll"][SW_SHOW]
REMARKS
Before installation the program will check if BDE is already installed.
After setup is concluded the file Bdeinst.dll will be erased from the target PC.
The file Bdeinst.dll is provided with Borland products.
You will need to extract it (using WinZip) from the file BDEINST.CAB, located at:
"Program Files\Common Files\Borland Shared\BDE".
Using this method, you get around the "certified installer" issue since Borland's own
BdeInst.dll is doing the actual file installation and registry entry creation, not QSetup.
How to install DirectX 9.0?
GENERAL
"DirectX" is a set of low-level application programming interfaces (APIs) for creating games
and other high-performance multimedia applications. It includes support for high-performance
2-D and 3-D graphics, sound, and input.
So far Microsfot has released several versions of DirectX.
This sample we will focus on Version 9.0.
INSTRUCTIONS
- Go to the "Execute" page and add the file DXSetup.exe to your setup as a Service File.
- Add a new "Execute" item with the following details:
Item Name: Install DirectX
Perform At: After Copy
Item Type: Conditional
IF
[DirectX Version is] [_____] [<] [9.0]
THEN
[Run Executable and Wait] ["<ServiceDir>DXSetup.exe"] [_____] [SW_SHOW]
REMARKS
Before installation the program will check if DirectX 9.0 is already installed.
After setup is concluded the file DXSetup.exe will be erased from the target PC.
The standard installer is included in the (SDK root)\Redist\DirectX9 folder.
How to Config ODBC Data Source?
GENERAL
Before you can communicate with a DataBase you must configure an ODBC Data Source
For detailed description on how to Config ODBC Data Source
Click Here
INSTRUCTIONS
- Add a new "Execute" item with details similar to the following:
Item Name: Config ODBC
Perform At: After Copy
Item Type: UnConditional
[ODBC Config Data Source]
[ODBC_ADD_DSN]
[SQL Server]
[DSN=Test<0>DESCRIPTION=My Test<0>DBQ=C:\MyDB\MyDataBase.mdb]
REMARKS
Parameter-1
Select any of the following requests:
ODBC_ADD_DSN (Default)
ODBC_CONFIG_DSN
ODBC_REMOVE_DSN
ODBC_ADD_SYS_DSN
ODBC_CONFIG_SYS_DSN
ODBC_REMOVE_SYS_DSN
ODBC_REMOVE_DEFAULT_DSN
Parameter-2
Select driver from the list:
The most popular options are:
SQL Server
Microsoft Access Driver (*.mdb)
Parameter-3
Set ODBC attributes:
The attribute string must have a form similar to the following:
DSN=Test<0>DESCRIPTION=My Test<0>DBQ=C:\MyDB\MyDataBase.mdb
The token <0> will be replaced at setup time with ASCII(0).
The actual content of this parameter depends on your DataBase and application.
For more information
Click Here
How to download and run a file?
GENERAL
QSetup has the option to download a file from the internet using HTTP protocol.
In this sample we will download and run the file "WinVer.exe" from "http://www.pantaray.com".
INSTRUCTIONS
- Add a new "Execute" item with the following details:
Item Name: Download & Run
Perform At: After Copy
Item Type: Conditional
IF
[Internet Connection OK] [______] [_] [______]
THEN
[Download File (HTTP)] [http://www.pantaray.com/WinVer.exe] [<TempDir>]
[Run Executable and Wait] ["<TempDir>WinVer.exe"] [_____] [SW_SHOW]
ELSE
[Display Message] [Internet Connection not Found!]
REMARKS
The file will be downloaded to the TEMP directory and run from there.