[RESOLVED] (Resolved) Inno Setup Help
Ok i have this program and Im using Inno Setup and what I have works well with Win XP, Not sure ifs its the correct way to go but works with XP. The problem I have is when I use it on vista I get numerious errors, And sometimes on 98 machines. On the Vista if you click ignore on all the errors it loads and runs great. On the 98 machines when it happens its always because they dont have access installed, which I dont understand either, but I have just installed the access runtime setup from MS and all is fine.
the vista errors are unable to register the dll/ocx: createprocess falied; code 14001
on the following files
mscomctl.ocx
comdlg32.ocx
dao350.dll
msado25.tlb - this one gets error registertypelib failed code 0x8002801c
msbind.dll
mscomct2.ocx
msinet.ocx
msjet35.dll
msrd2x35.dll
msrdo20.dll
msstdfmt.dll
richtx32.ocx
This program still uses DAO, because its been in development forever and it works great. Its a database program that uses an access 2000 format file. Target is for our company, different locations around the country OS's ranging from 95 to Vista. I know there are some major issues with my Inno installation script and need help fixing it. I have tried PDW but this is how I got most of what i have along with **********.
I have read that dao350.dll shouldnt be installed so I know thats wrong I think. Also ********** says to include the file VB_DCOM_MDAC_JET_AutoSetup.exe but this file is way to big. Would like another solution. below is my script from Inno Setup & some as you see is commented out. Making software is no problem for me but getting it to install without issues has always been an issue. Thank You in advance.
[Setup]
AppName=SERVICE MASTER SOFTWARE
AppVerName=SERVICE MASTER SOFTWARE
AppPublisher=If you recieve any errors go to
DefaultDirName={pf}\SERVICE MASTER
DefaultGroupName=SERVICE MASTER
AllowNoIcons=yes
Compression=lzma
SolidCompression=yes
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkedonce
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: checkedonce
Name: MDAC; Description: Microsoft Data Access Components; Flags: checkedonce restart; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,5.0
[Dirs]
Name: "{app}\Transmittal Reports"
;sharedfile regserver
[Files]
; begin VB system files
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\ASYCFILT.DLL"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\COMCAT.DLL"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\msvbvm60.dll"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\OLEAUT32.DLL"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\OLEPRO32.DLL"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\STDOLE2.TLB"; DestDir: "{sys}"; OnlyBelowVersion: 0,6; Flags: restartreplace uninsneveruninstall sharedfile regtypelib
; end VB system files
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\Mscomctl.ocx"; DestDir: "{sys}"; Flags: restartreplace sharedfile regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\Mscomct2.ocx"; DestDir: "{sys}"; Flags: restartreplace sharedfile regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\MSINET.OCX"; DestDir: "{sys}"; Flags: restartreplace sharedfile regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\COMDLG32.OCX"; DestDir: "{sys}"; Flags: restartreplace sharedfile regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\richtx32.ocx"; DestDir: "{sys}"; Flags: restartreplace sharedfile regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\DAO350.DLL"; DestDir: "{sys}"; Flags: sharedfile regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\expsrv.dll"; DestDir: "{sys}"; Flags:
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\msado25.tlb"; DestDir: "{sys}"; Flags: sharedfile regtypelib
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\MSBIND.DLL"; DestDir: "{sys}"; Flags: sharedfile regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\msjet35.dll"; DestDir: "{sys}"; Flags: regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\Msjint35.dll"; DestDir: "{sys}"; Flags:
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\msjter35.dll"; DestDir: "{sys}"; Flags:
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\msrd2x35.dll"; DestDir: "{sys}"; Flags: regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\MSRDO20.DLL"; DestDir: "{sys}"; Flags: sharedfile regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\MSREPL35.DLL"; DestDir: "{sys}"; Flags:
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\MSSTDFMT.DLL"; DestDir: "{sys}"; Flags: sharedfile regserver
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\MSVCRT40.DLL"; DestDir: "{sys}"; Flags:
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\RDOCURS.DLL"; DestDir: "{sys}"; Flags: sharedfile
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\VB5DB.DLL"; DestDir: "{sys}"; Flags: sharedfile
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\VB6STKIT.DLL"; DestDir: "{sys}"; Flags:
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\vbajet32.dll"; DestDir: "{sys}"; Flags:
;my exe's and other files - smd type files are my own ascii text files
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\TIPOFDAY.smd"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\Unzip32.dll"; DestDir: "{sys}";
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\Updater.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\users.mdb"; DestDir: "{app}"; Flags: onlyifdoesntexist
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\report.smd"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\dupe.smd"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\AssignedTo.txt"; DestDir: "{app}"; Flags: onlyifdoesntexist
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\TakenBy.txt"; DestDir: "{app}"; Flags: onlyifdoesntexist
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\SpecialInfo.txt"; DestDir: "{app}"; Flags: onlyifdoesntexist
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\WorkOrders.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\work.mdb"; DestDir: "{app}"; Flags: onlyifdoesntexist
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\zip32.dll"; DestDir: "{sys}";
Source: "C:\Documents and Settings\Owner\Desktop\work order\SETUP FILES\MDAC_TYP.EXE"; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,5.0; Tasks: MDAC
; END MDAC
[Registry]
Root: HKCU; Subkey: SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce; ValueType: string; ValueName: MDAC_Setup; ValueData: """{%TEMP}\mdac_typ.exe"" /Q /C:""setup /QT"""; MinVersion: 4.0,0; OnlyBelowVersion: 4.1,0; Tasks: MDAC
[INI]
Filename: "{app}\WorkOrders.url"; Section: "InternetShortcut"; Key: "URL"; String: "http://mysite.com"
[Icons]
Name: "{group}\SERVICE MASTER"; WorkingDir: "{app}"; Comment: "SERVICE MASTER - YOUR WORK ORDER SOLUTION - CLICK TO RUN" ; Filename: "{app}\WorkOrders.exe"
Name: "{group}\{cm:ProgramOnTheWeb,SERVICE MASTER}"; Comment: "CLICK HERE TO VIEW THE SERVICE MASTER WEBSITE" ;Filename: "{app}\WorkOrders.url"
Name: "{group}\{cm:UninstallProgram,SERVICE MASTER}"; Comment: "CLICK HERE TO UNINSTALL SERVICE MASTER" ; Filename: "{uninstallexe}"
Name: "{userdesktop}\SERVICE MASTER"; WorkingDir: "{app}"; Comment: "SERVICE MASTER - YOUR WORK ORDER SOLUTION - DOUBLE CLICK TO RUN" ; Filename: "{app}\WorkOrders.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\SERVICE MASTER"; WorkingDir: "{app}"; Comment: "SERVICE MASTER - YOUR WORK ORDER SOLUTION - CLICK TO RUN" ; Filename: "{app}\WorkOrders.exe"; Tasks: quicklaunchicon
[Run]
Filename: {tmp}\mdac_typ.exe; Parameters: "/Q /C:""setup /QNT"""; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: MDAC; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,5.0
Filename: regsvr32.exe; Parameters: "/s ""{sys}\MSSTDFMT.DLL"""
Filename: "{app}\WorkOrders.exe"; Description: "{cm:LaunchProgram,SERVICE MASTER}"; Flags: nowait postinstall skipifsilent
[UninstallDelete]
Type: files; Name: "{app}\WorkOrders.url"
Re: (Resolved) Inno Setup Help
BTW: It gives you some good documentation on what is included in your project also...