Following code demonstrates possible variant of creating PB Self-Exe distributives.
Software includes two parts.
- Utility (named PbSfx), which is necessary to compile only one time.
- Setup as it is. This program is necessary to change every time, depends of your needs.
How to use.
Step 1. (only “one time”).
Copy makecab.exe and PbSfx to the directory, visible through PATH (for example, to C:\PBDLL60\BIN)
Step 2.
Imagine that you have a directory D:\MyDir (with subdirectories), where you debug your program.
Let’s assume that name of future distributive is X.Exe.
Create in any text editor a file (D:\MyDir\X.Sfx), which includes a list of files and subdirectories.
For example, you need to include Program.Exe, Dynamic.Dll and Info.Dat from D:\MyDir and Picture.Bmp from D:\MyDir\SubDir1
In this case X.Sfx looks so:
$AppDir
Program.Exe
Dynamic.Dll
Info.Dat
$AppDir\SubDir1
Picture.Bmp
Lines, beginning from $, describes directories. Program understands $Windows (windows directory) and $System (system directory) also.
Start PbSfx.Exe without parameters (current directory should be D:\MyDir).
Utility will create the subdirectory Release with files X0.Cab, X1.Cab, X2.Cab.
Step 3.
Save skeleton of setup program as D:\MyDir\X.Bas.
Start it from IDE. “Big” self-Exe will be located in D:\MyDir\Release\X.Exe
[This message has been edited by Semen Matusovski (edited April 30, 2000).]
Software includes two parts.
- Utility (named PbSfx), which is necessary to compile only one time.
- Setup as it is. This program is necessary to change every time, depends of your needs.
How to use.
Step 1. (only “one time”).
Copy makecab.exe and PbSfx to the directory, visible through PATH (for example, to C:\PBDLL60\BIN)
Step 2.
Imagine that you have a directory D:\MyDir (with subdirectories), where you debug your program.
Let’s assume that name of future distributive is X.Exe.
Create in any text editor a file (D:\MyDir\X.Sfx), which includes a list of files and subdirectories.
For example, you need to include Program.Exe, Dynamic.Dll and Info.Dat from D:\MyDir and Picture.Bmp from D:\MyDir\SubDir1
In this case X.Sfx looks so:
$AppDir
Program.Exe
Dynamic.Dll
Info.Dat
$AppDir\SubDir1
Picture.Bmp
Lines, beginning from $, describes directories. Program understands $Windows (windows directory) and $System (system directory) also.
Start PbSfx.Exe without parameters (current directory should be D:\MyDir).
Utility will create the subdirectory Release with files X0.Cab, X1.Cab, X2.Cab.
Step 3.
Save skeleton of setup program as D:\MyDir\X.Bas.
Start it from IDE. “Big” self-Exe will be located in D:\MyDir\Release\X.Exe
[This message has been edited by Semen Matusovski (edited April 30, 2000).]
Comment