Este é um script de exemplo para instalação do MDAC e do DCOM98; pode ser usado para as demais instalações:
[TASKS]
;Configura instalação do MDAC
Name: MDAC; Description: Microsoft Data Access Components; Flags: checkedonce restart; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,5.0
;Configura instalação do DCOM98
Name: DCOM98; Description: DCOM 1.3 for Windows 98; Flags: checkedonce; MinVersion: 4.1,0; OnlyBelowVersion: 4.9,0
(...)
[Files]
Source: C:VisualBasicImportaTxt2005PacoteInstalacaoPackageSupportVB6STKIT.DLL; DestDir: {sys}; Flags: restartreplace uninsneveruninstall ; CopyMode: alwaysskipifsameorolder
Source: C:VisualBasicImportaTxt2005PacoteInstalacaoPackageSupportCOMCAT.DLL; DestDir: {sys}; Flags: restartreplace uninsneveruninstall regserver ; CopyMode: alwaysskipifsameorolder
Source: C:VisualBasicImportaTxt2005PacoteInstalacaoPackageSupportSTDOLE2.TLB; DestDir: {sys}; Flags: restartreplace uninsneveruninstall regtypelib ; CopyMode: alwaysskipifsameorolder
Source: C:VisualBasicImportaTxt2005PacoteInstalacaoPackageSupportASYCFILT.DLL; DestDir: {sys}; Flags: restartreplace uninsneveruninstall ; CopyMode: alwaysskipifsameorolder
Source: C:VisualBasicImportaTxt2005PacoteInstalacaoPackageSupportOLEPRO32.DLL; DestDir: {sys}; Flags: restartreplace uninsneveruninstall regserver ; CopyMode: alwaysskipifsameorolder
Source: C:VisualBasicImportaTxt2005PacoteInstalacaoPackageSupportOLEAUT32.DLL; DestDir: {sys}; Flags: restartreplace uninsneveruninstall regserver ; CopyMode: alwaysskipifsameorolder
(...)
; START DCOM
Source: C:VisualBasicVbDcomMdacdcom98.exe; DestDir: {tmp}; CopyMode: alwaysoverwrite; MinVersion: 4.1,0; OnlyBelowVersion: 4.9,0; Tasks: DCOM98
; START MDAC
Source: C:VisualBasicVbDcomMdacMDAC2_5mdac_typ.exe; DestDir: {tmp}; CopyMode: alwaysskipifsameorolder; Flags: deleteafterinstall
[Run]
Filename: {tmp}dcom98.exe; Parameters: /r:n /q:u; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: DCOM98; MinVersion: 4.1,0; OnlyBelowVersion: 4.9,0
Filename: {tmp}mdac_typ.exe; Parameters: "/Q /C:""setup /QNT"""; WorkingDir: {tmp}; Flags: skipifdoesntexist;