O script abaixo instala o MDAC e o DCOM98 (para windows 98 primeira edição). Copie e cole no seu script:
(...)
[TASKS]
Name: MDAC; Description: Microsoft Data Access Components; Flags: checkedonce restart; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,5.0
Name: DCOM98; Description: DCOM 1.3 for Windows 98; Flags: checkedonce; MinVersion: 4.1,0; OnlyBelowVersion: 4.9,0
Name: "desktopicon"; Description: "Criar ícone no &desktop (Área de trabalho)"; GroupDescription: "Ícone adicional:"; MinVersion: 4,4
[Files]
Source: C:VisualBasicVbProgramasSysbarPacoteInstallSupportVB6STKIT.DLL; DestDir: {sys}; Flags: restartreplace uninsneveruninstall ; CopyMode: alwaysskipifsameorolder
Source: C:VisualBasicVbProgramasSysbarPacoteInstallSupportCOMCAT.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
; END DCOM
; START MDAC
Source: C:VisualBasicVbDcomMdacMDAC2_5mdac_typ.exe; DestDir: {tmp}; CopyMode: alwaysskipifsameorolder; Flags: deleteafterinstall
; END MDAC
[Icons]
Name: {group}SysBar; Filename: {app}SysBar.exe;WorkingDir: {app}; IconFilename: {app}SysBar.exe; IconIndex: 0
;Insere um ícone na área de trabalho
Name: "{userdesktop}SysBar"; Filename: "{app}SysBar.exe"
;Instala o dcom e o mdac
[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;