Two unsafe files

Started by jimyab, January 25, 2005, 09:59:56 AM

Previous topic - Next topic

jimyab

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.

admin

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  

jimyab

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

Attached is the vbp file

admin

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.

jimyab

I did it wrong apparantly.  This time I hit upload attachment first, then post message.

admin

jimyab,
 
you forgot to upload the zip file.

jimyab

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.

admin

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.

jimyab

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
; 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

admin

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.

jimyab

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?

admin

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.

jimyab

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?

admin

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.