|
-
Feb 18th, 2007, 12:55 AM
#1
Thread Starter
Hyperactive Member
[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"
Last edited by seanwpb; Feb 19th, 2007 at 11:12 AM.
-
Feb 18th, 2007, 09:47 PM
#2
Re: Inno Setup Help
Your script was created by the Inno Setup wizard not **********. ********** does say you should include one of the Automatic OS updaters but it does not state that you must use the largest of the programs. The largest one will just handle every Windows OS from 95 to XP. There are smaller versions that are just for each OS or you could do the research and include the proper MDAC, JET Engines and/or DCom installations that you need for the target OS.
********** would have automatically corrected most of your nightmares in your script, which would have also included the removal of files deemed unsafe. Most of the files you are getting registration error on should not be deployed separately anyway. They should be deployed using MS service packs and component installations.
You should compare the ********** output to what you have here to see some problems that would stand out.
The MDAC_Typ.exe file should be deploying your database file support, but I'm guessing you have no idea which files they are. You will have to remove those file and hopefully you are deploying the correct version of MDAC.
-
Feb 18th, 2007, 09:57 PM
#3
Thread Starter
Hyperactive Member
Re: Inno Setup Help
Randem, thanks for the reply
the mdac version is 5.50.4132.500
inno setup did do the the script. ********** is to confusing. i noticed on the ********** site that there are smaller version of the MDAC, JET Engines and/or DCom installations for different OS's but the smallest is still to large.
so is there anything that stands out that you can help me with what I have so far?
Sean
-
Feb 18th, 2007, 10:05 PM
#4
Re: Inno Setup Help
What's confusing about **********??? You select your vbp tell it where the output goes and click on convert. Then you massage the output... It will do much better that the Inno Setup Wizard.
BTW: Most of the dll's you have in your script need to be removed.
-
Feb 18th, 2007, 10:08 PM
#5
Thread Starter
Hyperactive Member
Re: Inno Setup Help
Randem,
ok your right I just revisted the ********** and created another and opened in inno setup and its not hard, i dont know what I was doing before. tell me if this looks correct havent test it yet.
; ********** Version 6.0 Build 3 Trial
; Randem Systems, Inc.
; Copyright 2003-2007
; website: http://www.***********
; support: http://www.**********.com/cgi-bin/discus/discus.cgi
; Date: February 18, 2007
; VB Runtime Files Folder: C:\Program Files\Randem Systems\**********\********** 6.0\VB 6 Redist Files\
; Visual Basic Project File (.vbp): C:\Documents and Settings\Owner\Desktop\work order\WorkOrders.vbp
; Inno Setup Script Output File (.iss): C:\Documents and Settings\Owner\Desktop\new script\script.iss
; ------------------------
; References
; ------------------------
; Visual Basic runtime objects and procedures - (MSVBVM60.DLL)
; OLE Automation - (STDOLE2.TLB)
; Microsoft DAO 3.51 Object Library - (DAO350.DLL)
; Microsoft Data Binding Collection VB 6.0 (SP4) - (MSBIND.DLL)
; Microsoft Data Formatting Object Library - (MSSTDFMT.DLL)
; Microsoft Jet and Replication Objects 2.6 Library - (msjro.dll)
; Microsoft Internet Controls - (shdocvw.dll)
; Microsoft ActiveX Data Objects 2.5 Library - (msado25.tlb)
; Microsoft Shell Controls And Automation - (SHELL32.dll)
; --------------------------
; Components
; --------------------------
; Microsoft Common Dialog Control 6.0 (SP6) - (COMDLG32.OCX)
; Microsoft Rich Textbox Control 6.0 (SP6) - (Richtx32.ocx)
; Microsoft Windows Common Controls-2 6.0 (SP6) - (Mscomct2.ocx)
; Microsoft Internet Transfer Control 6.0 (SP6) - (MSINET.OCX)
[Setup]
AppName=Project1
AppVerName=Project1 8.0.0
AppPublisher=SERVICE MASTER SOFTWARE
AppVersion=8.0.0
VersionInfoVersion=8.0.0
AllowNoIcons=no
DefaultGroupName=SERVICE MASTER SOFTWARE
DefaultDirName={pf}\SERVICE MASTER
AppCopyright=SERVICE MASTER SOFTWARE
PrivilegesRequired=Admin
MinVersion=4.0,4.0
Compression=lzma
OutputBaseFilename=WorkOrders800Release
[Tasks]
[Files]
Source: c:\program files\randem systems\**********\********** 6.0\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags: sharedfile;
Source: c:\program files\randem systems\**********\********** 6.0\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags: sharedfile;
Source: c:\program files\randem systems\**********\********** 6.0\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags: sharedfile;
Source: c:\program files\randem systems\**********\********** 6.0\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags: sharedfile;
Source: c:\program files\randem systems\**********\********** 6.0\vb 6 redist files\stdole2.tlb; DestDir: {sys}; Flags: regtypelib;
Source: c:\program files\randem systems\**********\********** 6.0\vb 6 redist files\comcat.dll; DestDir: {sys}; Flags: sharedfile;
Source: c:\documents and settings\owner\desktop\work order\setup files\vb_dcom_mdac_jet_autosetup.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression;
Source: c:\documents and settings\owner\desktop\work order\setup files\assignedto.txt; 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\report.smd; DestDir: {app}; Flags: ignoreversion;
Source: c:\documents and settings\owner\desktop\work order\setup files\specialinfo.txt; DestDir: {app}; Flags: ignoreversion;
Source: c:\documents and settings\owner\desktop\work order\setup files\takenby.txt; DestDir: {app}; Flags: ignoreversion;
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: {app}; Flags: ignoreversion;
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: ignoreversion;
Source: c:\documents and settings\owner\desktop\work order\setup files\work.mdb; DestDir: {app}; Flags: ignoreversion;
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\zip32.dll; DestDir: {app}; Flags: ignoreversion;
Source: c:\documents and settings\owner\desktop\work order\setup files\dao350.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\documents and settings\owner\desktop\work order\setup files\msbind.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\documents and settings\owner\desktop\work order\setup files\msstdfmt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\program files\common files\system\ado\msjro.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\documents and settings\owner\desktop\work order\setup files\msado25.tlb; DestDir: {sys}; Flags: uninsneveruninstall regtypelib;
Source: c:\documents and settings\owner\desktop\work order\setup files\comdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\documents and settings\owner\desktop\work order\setup files\richtx32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\documents and settings\owner\desktop\work order\setup files\mscomct2.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: c:\documents and settings\owner\desktop\work order\setup files\msinet.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
[INI]
Filename: {app}\WorkOrders.url; Section: InternetShortcut; Key: URL; String:
[Icons]
Name: {group}\Project1; Filename: {app}\WorkOrders.exe; WorkingDir: {app}
Name: {group}\Project1 on the Web; Filename: {app}\WorkOrders.url
Name: {group}\Uninstall Project1; Filename: {uninstallexe}
[Run]
Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist
Filename: {app}\WorkOrders.exe; Description: Launch Project1; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
[UninstallDelete]
Type: files; Name: {app}\WorkOrders.url
-
Feb 18th, 2007, 10:13 PM
#6
Re: Inno Setup Help
That looks good. Have you included all your supporting files such as mdb's, ini and other such files and are they going to be installed where your app expects them to be? Currently your supporting files are being deployed to the app's installation folder.
-
Feb 18th, 2007, 10:16 PM
#7
Thread Starter
Hyperactive Member
Re: Inno Setup Help
yes I want those files in the apps folder. is there a better way than the vb_dcom_mdac_jet_autosetup.exe because it makes the setup file 34 mb. also is this fully compatible with win 95 to win vista as you see it.
thanks for your help on this matter
-
Feb 18th, 2007, 10:20 PM
#8
Re: Inno Setup Help
You have a dropdown list that contains the other OS specific files which are smaller. You could also add the seperate MDAC's, DCOM, JET and other files to your installation but it will be about the same size as the files supplied and YOU will have to figure out wher and where to run them.
-
Feb 18th, 2007, 10:21 PM
#9
Re: Inno Setup Help
Are you looking for a safe installation or a complex one that is smaller and lots of user intervention or maintaining several installation one for each OS?
-
Feb 18th, 2007, 10:23 PM
#10
Re: Inno Setup Help
You could always let the user install your app then if they have problems they can download the Auto OS Updater (or MDAC, JET, DCOM) installation to install it themselves.
You could give them the option...
-
Feb 19th, 2007, 12:38 AM
#11
Thread Starter
Hyperactive Member
Re: Inno Setup Help
Randem,
So is this script the way it is compatible with all versions of windows from 95 to vista? And if I was to remove the vb_dcom_mdac_jet_autosetup.exe file would all that needs to be commented is that line?
Sean
-
Feb 19th, 2007, 02:00 AM
#12
Re: Inno Setup Help
Yes, it is a compatible installation. And yes all you would need to do is comment out that file in the [Files] section and recompile if you want to have a version without it.
You should still test your system for how it works on those systems. The install will work but you will need to test your programs operations. I am not familiar with the unzip32.dll file. It may be OS dependant. You can use a Virtual Machine from VMWare to test with. In that way you only need one machine and you can have multiple OS rrunning independent from yours to test in a clean environment.
-
Feb 20th, 2007, 02:51 AM
#13
Re: (Resolved) Inno Setup Help
BTW: It gives you some good documentation on what is included in your project also...
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|