My program needs msstdfmt.dll and dao360.dll. They were removed by InnoScript because they are on the unsafe list, yet both of my PCs, XP and NT4, have those files on them. I am attmpting to package this program with INNO, but do not know how to handle this. I understand there is a source of redistributable files. Would these files resolve my problem or is there another way?
jimyab,
The possible reason they were removed is that those files are already on your destination system which will have the correct version for it OS. Now being that the case it would be foolish to overwrite these files with ones that do not belong.
You do not need to deploy files that will already be on the destination system. Now if these files were put there by a service pack then that is what needs to be deployed.
Try deploying the Automatic OS Updater (https://randemsystems.com/os-updater-support) with your app. It will deploy any MDAC, DCOM and JET files needed for the OS that you are going to deploy to.
You can tell InnoScript to do this automatically by checking the Automatic OS Updater check box on the Parameters screen. You will need to download the updater also.
My MinVersion=4.0,4.0sp4 and I have downloaded the Automatic OS Updater (32 MB).
I have the Automatic OS Updater included, but have no idea what it affects or what it includes. I assume that the Updater covers all version of windows and contains files that are safe for the respective OS.
jimyab,
Did you read the info on the Automatic OS Updater? It describes what is included. It includes the MDAC, DCOM and JET SP's that you will need if you use a database or data access techniques.
Yes, I read it includes those three items, but I don't know what files are there. My knowledge is limited. That is why I am asking for help. My formal education was in Basic, long before VB. I did not have to package any of my programs for distribution, just make and exe file. Since retiring, I learned VB from texts that do not go into the detail that I need and cannot find texts that do. The texts that I have say to use P&DW which I know to be a problem.
I have packaged my program using InnoScript and InnoSetup. I attempted to install it on my NT4sp6 machine and my XP home edtion machine. It did not work on either. I do not remember the error messages. (I have been sick for the last week & still not thinking clearly.) Both machines have VB6 (sp5 & 6) and the program runs in the IDE on both, but will not install. Can you offer suggestions?
jimyab,
Without knowing the exact error messages... it would not be fruitful. The error message give some insight as to where the problem actually exist. You maybe looking in the wrong area for a solution.
What are the exact error messages and when do they occur. The more detailed the information the better the answer to help.
The XP error message:
Unable to execute file H:Limousine.exe
created process failed; Code 193
%1 is not valid Win32 application
The NT4 error message:
Unable to execute file H:Limousine.exe
created process failed; Code 193
%1 is not valid WinNT application
Obviously, the same file is the problem for both systems. Does that mean the first one under [Files] is the culprit?
jimyab,
Where did you install your app (in what folder). This error message indicates that it is expecting your files to be on the root drive of H.
Also check your exe file. Post your iss file so I can look at it.
On both machines, drive H is a catch all for test purposes only. As I recall it should have been H:\Limousine\Limousine.exe in both cases and not just H:\Limousine.exe
; InnoScript Version 4.0.2
; Randem Systems, Inc.
; Copyright 2003, 2004
; website: https://randemsystems.com (https://randemsystems.com)
; support: https://randemsystems.support (https://randemsystems.support)
; Date: January 23, 2005
; VB Runtime Files Folder: C:\Program Files\Randem Systems\InnoScript\InnoScript 4.0\VB 6 Redist Files\
; Visual Basic Project File (.vbp): E:\VB6 Programs\Limousine Jan 6 2005\Limousine.vbp
; Inno Setup Script Output File (.iss): E:\VB6 Programs\Limousine Jan 6 2005\IS-Jan232005.iss
; Visual Basic Project Application File (exe/dll/ocx): E:\VB6 Programs\Limousine Jan 6 2005\Limousine.exe
; ------------------------
; Visual Basic References
; ------------------------
; Microsoft Data Formatting Object Library 6.0 (SP4)
; Microsoft DAO 3.6 Object Library
; --------------------------
; Visual Basic Components
; --------------------------
[Setup]
AppName=Limousine
AppVerName=Limousine 1.2.2
AppPublisher=James S. Yablonsky
AppVersion=1.2.2
VersionInfoVersion=1.2.2
AllowNoIcons=yes
InfoBeforeFile=E:\VB6 Programs\Limousine Jan 6 2005\Misc. files\IntroMsg.txt
InfoAfterFile=E:\VB6 Programs\Limousine Jan 6 2005\Misc. files\ExitMsg.txt
WizardImageFile=G:\Graphics\My Graphics - BMP\Y-3G-1a.bmp
DefaultGroupName=Limousine
DefaultDirName=Limousine
AppCopyright=Copyright 2002-2005 James S. Yablonsky, All rights reserved
PrivilegesRequired=Admin
MinVersion=4.0,4.0sp4
OutputBaseFilename=Limousine
[Tasks]
Name: desktopicon; Description: Create a &desktop icon; GroupDescription: Additional Icons:
[Files]
Source: c:\program files\randem systems\innoscript\innoscript 4.0\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags: sharedfile
Source: c:\program files\randem systems\innoscript\innoscript 4.0\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags: sharedfile
Source: c:\program files\randem systems\innoscript\innoscript 4.0\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags: sharedfile
Source: c:\program files\randem systems\innoscript\innoscript 4.0\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags: sharedfile
Source: c:\program files\randem systems\innoscript\innoscript 4.0\vb 6 redist files\stdole2.tlb; DestDir: {sys}; Flags: regtypelib
Source: c:\program files\randem systems\innoscript\innoscript 4.0\vb 6 redist files\comcat.dll; DestDir: {sys}; Flags: sharedfile
Source: c:\program files\randem systems\innoscript\innoscript 4.0\vb_dcom_mdac_jet_autosetup.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion
Source: e:\vb6 programs\limousine jan 6 2005\limousine.exe; DestDir: {app}; Flags: ignoreversion
Source: c:\winnt\system32\comdlg32.ocx; DestDir: {app}; Flags: regserver restartreplace
Source: e:\vb6 programs\limousine jan 6 2005\misc. files\license.txt; DestDir: {app}; Flags: ignoreversion
Source: e:\vb6 programs\limousine jan 6 2005\misc. files\limo manual.pdf; DestDir: {app}; Flags: ignoreversion
Source: e:\vb6 programs\limousine jan 6 2005\misc. files\limo.mdb; DestDir: {app}; Flags: ignoreversion
Source: c:\winnt\system32\mscomct2.ocx; DestDir: {app}; Flags: regserver restartreplace
Source: c:\winnt\system32\mscomctl.ocx; DestDir: {app}; Flags: regserver restartreplace
Source: c:\winnt\system32\msflxgrd.ocx; DestDir: {app}; Flags: regserver restartreplace
Source: e:\vb6 programs\limousine jan 6 2005\misc. files\y32.ico; DestDir: {app}; Flags: ignoreversion
[INI]
Filename: {app}\Limousine.url; Section: InternetShortcut; Key: URL; String:
[Icons]
Name: {group}\Limousine; Filename: {app}\Limousine.exe; WorkingDir: {app}
Name: {group}\Limousine on the Web; Filename: {app}\Limousine.url
Name: {group}\Uninstall Limousine; Filename: {uninstallexe}
Name: {userdesktop}\Limousine; Filename: {app}\Limousine.exe; Tasks: desktopicon; WorkingDir: {app}
[Run]
Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist
Filename: {app}\Limousine.exe; Description: Launch Limousine; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
[UninstallDelete]
Type: files; Name: {app}\Limousine.url
jimyab,
The script is fine. The problem has to be in your code or your exe creation. Are you dynamically creating object in your code? If you are you will have to find and include all the dependencies for that object.
Could you zip and upload your project and I will take a look.
The project .exe and other files are enclosed. I had a problem with an update of another prgram and had to restore my system to Wednesday. I had to re-compile the exe becasue the *restore* action affected the IDE version. I wanted to be sure both versions were the same.
jimyab,
you forgot to upload the zip file.
I did it wrong apparantly. This time I hit upload attachment first, then post message.
jimyab,
Your zip file does not include the vbp file. Please send me the vbp file. I ran your exe and it works. Is there any area where it fails? Of course my system will have all the correct components. I will setup a clean system to try your install after I get your vbp file.
Attached is the vbp file
I am beginning to believe my problem lies with Service Pack 6. As soon as I get over this flu, or whatever, and I can think clearly, I am considering deleting VB6 sp6 and re-installing VB6 with sp5. To date, I have seen no other problems with sp6, however, I keep reading complaints about it and am beginning to believe it to be my problem.
The program has run flawlessly in the IDE, but I cannot install it on either of my machines. I had installed an earlier version on the clients machine (XP) when the database stopped functioning. I found a couple of bugs and have not been able to install it since.
jimyab,
The problem is definitely not service pack 6. Your program loads here. Is there any particular area or procedure that you run to make it crash. I want to attempt just what you do to make it not work.
Also why are you installing the ocx files in your app folder instead of the system folder?
Are these ocx files the ones you need for the OS you are installing on?
Source: c:\winnt\system32\mscomct2.ocx; DestDir: {app}; Flags: regserver restartreplace
I don't know what happened with those OCX files. I have them in the e:...misc files folder and they were to go into {sys}. Looking back at various versions of my iss files, those OCX files were correctly entered, but somehow changed to the system source.
Source: e:vb6 programslimousine jan 6 2005misc. filescomdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: e:vb6 programslimousine jan 6 2005misc. filesmscomct2.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: e:vb6 programslimousine jan 6 2005misc. filesmscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: e:vb6 programslimousine jan 6 2005misc. filesmsflxgrd.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
I am going to rewrite the iss file and try once again to install it on the two machines. I assume you corrected it on your setup and that is why it worked for you.
I know this coughing (my wife says, dog barking) is part of my not seeing things or thinking clearly. Thank you for the help.