VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



How to Recreate Package without creating Package again and again?

by Raghuraja. C (21 Submissions)
Category: Miscellaneous
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Mon 21st April 2003
Date Added: Mon 8th February 2021
Rating: (1 Votes)

How to Recreate Package without creating Package again and again?

Rate How to Recreate Package without creating Package again and again?



--------------------------------------------------------------

  Let us assume Application name is "Sample"

A. Once you create the package, Package will create:
---------------------------------------------------

   A1. Setup.exe
   A2. Setup.lst
   A3. Sample.CAB (Cabinet file with Application Name)

   And

   A4. Support Folder (Not necessary to distribute)

B. If you want to change exe or other supporting file:
-----------------------------------------------------

   B1. Create exe (New exe with modification)
   B2. Go to Support Folder
   B3. Copy new exe or Supporting files which is modified
   B4. Run Sample.BAT
       One batch file is present in side the Support folder
       with application name.
   B5. After running the BATCH file the new application will be
       created out side the support folder.

C. Main files in Package Contains:
---------------------------------

   C1. Sample.DDF
   C2. Setup.inf
   C3. Setup.Lst

D. If you want to add new file to Package:
------------------------------------------
   D1. Open Sample.DDF in Notepad add the New file.
   D2. Open Setup.inf  in Notepad add the New file 
      Prefix with 1,1 if it needs to add in .CAB (Cabinet file)
      Prefix with 1,0 if it needs to add setup it self.

   D3. After add this information Run Sample.BAT to Recreate the file.


E. Suppose you want ADD Readme.txt and Autorun.inf to Package then:
------------------------------------------------------------------

   E1. Create Readme.txt and Autorun.inf
   E2. Copy thease files into Support Folder
   E3. Open Sample.DDF file
   E4. Add like "Autorun.inf" 
   E5. Add like "Readme.txt"  
   E6. Open Setup.inf file
   E7. Add like -> 1,0,Readme.txt,1120 
       Where 1,0 Out side the .CAB file Readme.txt file Name and 
       Byes of the File
   E8. Add like -> 1,0,Autorun.inf,41
       Where 1,0 Out side the .CAB file Autorun.txt file Name and 
       Byes of the File


F. Sample of Setup.inf:
-----------------------

;*** BEGIN **********************************************************
;**                                                                **
;** Automatically generated on: Mon Apr 07 19:30:30 2003           **
;**                                                                **
;** MakeCAB Version: (32) 1.00.0600 (11/22/96)                     **
;**                                                                **
;*** BEGIN **********************************************************
[disk list]
1,Disk 1
[cabinet list]
1,1,Sample.DFC
[file list]
1,0,Setup.Lst,10554
1,0,setup.exe,141571
1,0,Readme.txt,1120
1,0,Autorun.inf,41
1,1,Sample.exe,6111232
1,1,MDAC_TYP.EXE,7857411
1,1,ST6UNST.EXE,76035
1,1,WRKGADM.EXE,48899
1,1,Test.EXE,920569
;*** END ************************************************************
;**                                                                **
;** Automatically generated on: Mon Apr 07 19:30:30 2003           **
;**                                                                **
;*** END ************************************************************


G. Sample Sample.DDF:
--------------------

.OPTION EXPLICIT
.Set Cabinet=off
.Set Compress=off
.Set MaxDiskSize=CDROM
.Set ReservePerCabinetSize=6144
.Set DiskDirectoryTemplate=".."
.Set CompressionType=MSZIP
.Set CompressionLevel=7
.Set CompressionMemory=21
.Set CabinetNameTemplate="Sample.CAB"
"Setup.Lst"
"setup.exe"
"setup1.exe"
"Readme.txt"
"Autorun.inf"
.Set Cabinet=on
.Set Compress=on
"Sample.exe"
"MDAC_TYP.EXE"
"ST6UNST.EXE"
"Test.EXE"
"Support.EXE"
"STDOLE2.TLB"
"VB6STKIT.DLL"
"MSVCRT40.DLL"
"MSVBVM60.DLL"
"OLEAUT32.DLL"

H. Sample Setup.inf:
-------------------

[Bootstrap]
SetupTitle=Installing Sample 1.0.0
SetupText=Copying Files, please stand by...
CabFile=Sample.CAB
Spawn=Setup1.exe
Uninstal=st6unst.exe
TmpDir=msftqws.pdw
Cabs=1

[Bootstrap Files]
[email protected],$(WinSysPathSysFile),,,7/15/00 12:00:00 AM,101888,6.0.84.50
[email protected],$(WinSysPathSysFile),$(DLLSelfRegister),,5/31/98 12:00:00 AM,22288,4.71.1460.1
[email protected],$(WinSysPathSysFile),,,6/1/99 12:00:00 AM,326656,4.22.0.0
[email protected],$(WinSysPathSysFile),$(DLLSelfRegister),,3/8/99 12:00:00 AM,164112,5.0.4275.1
[email protected],$(WinSysPathSysFile),$(TLBRegister),,6/3/99 12:00:00 AM,17920,2.40.4275.1

[IconGroups]
Group0=Sample 1.0.0
PrivateGroup0=0
Parent0=$(Programs)

[Sample1.0.0]
Icon1="Sample.exe"
Title1=Sample 1.0.0
StartIn1=$(AppPath)

[Setup]
Title=Sample1.0.0
DefaultDir=$(ProgramFiles)\Sample 1.0.0
AppExe=Sample.exe
AppToUninstall=Sample.exe

[Setup1 Files]
[email protected],$(AppPath),,,2/13/02 7:56:36 AM,47104,7.0.0.100
[email protected],$(AppPath),,,6/29/00 5:06:20 AM,1243308,0.0.0.0
[email protected],$(AppPath),,,6/29/00 4:54:06 AM,163368,0.0.0.0
File5=@MDAC_TYP.EXE,$(AppPath),,,1/20/00 12:00:00 AM,7856352,25.0.4403.12
[email protected],$(AppPath),,,12/31/03 12:42:54 PM,6426624,1.0.0.29
[email protected],$(AppPath),,,4/11/02 12:15:12 PM,8037286,0.0.0.0

; The following lines may be deleted in order to obtain extra 
; space for customizing this file on a full installation diskette.

; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
; XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

         
        --- End of Recreating Package Document ---

Download this snippet    Add to My Saved Code

How to Recreate Package without creating Package again and again? Comments

No comments have been posted about How to Recreate Package without creating Package again and again?. Why not be the first to post a comment about How to Recreate Package without creating Package again and again?.

Post your comment

Subject:
Message:
0/1000 characters