Problems intalling mscal.ocx on Win 98 Machine

Started by guitarconcept, September 26, 2004, 05:13:22 PM

Previous topic - Next topic

guitarconcept

Okay it looks like the are plenty of issues if you are going to use mscal. Here is some reading on it.
http://news.jrsoftware.org/news/innosetup/msg19071.html
 
To make a long story short they just recommend using mscomct2.ocx instead if you need a calendar on your application. I tried it and it worked first time on all machines.
 
I still have the stdole2.tlb error on the 98 machine (unable to delete) but I will work around it.
 
Thanks for all the help

guitarconcept

My latest script is all vb6. Not sure how that one above happened. Either way, still have the same error for stdole2 file.

guitarconcept

Yes I see that now. That is what InnoScript came up with. I never messed with that. I'll fix that and see what happens.

admin

guitarconcept,
 
Your script suggest you are using VB5 and VB6 files. This is a mistake?. Why are you doing this?

guitarconcept

stdole2.tlb on my 98 is version 2.30.4261
I'm using the VB6 files so the new version is 2.40.4275.1
 
I am using the Beta version and I am reformatting everything tonight and starting clean.  
Thanks

admin

guitarconcept,
 
That works due to the fact that when you install your system created on ME on XP those components are already on XP and updated so they are not replaced.
 
Check the version of stdole2.tlb that is on the computer before installing. I am curious about the version you are attempting to replace on a clean machine.
 
Are you using the Beta version?

guitarconcept

I got it! I just packaged everything on my ME machine and used it's system components and it work fine. Other than the stdole2.tlb file. I still get the error on the '98 machine only. But if you select ignore, it loads and works fine. So I'll do some research to see what it does. Maybe I can just leave it out. Thanks for all the help.

admin

guitarconcept,
 
Wait a few days (maybe sooner) and try InnoScript 3.02 Beta. It will have the function to add files and folders then you will see it bring in all the files from the dep file.
 
If you look in the dep file you will see all the files that are needed for mscal.ocx and they all should be in the script.
 
Let me have a look at the log that was generated from the run to see if the dep file was processed.

guitarconcept

InnoScript created it as first and then you suggested to change it since it was pulling from Office 2003. So I updated the Source line to:
Source: C:Documents and SettingsOwnerMy DocumentsVBnew FitnessLapWin98mscal.ocx; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  regserver restartreplace sharedfile
 
I created the Win98 folder and it contains all of the files, includeing the .dep file that was off my Win ME machine.  
 
I will try the beta version in the mean time.

admin

guitarconcepts,
 
The dep file is the starting place to check. How did you get mscal.ocx to be included in the script? Did you place this line in or did InnoScript create it. If InnoScript creates it the the dep file is used (if it is found in your search path) to get any files that mscal.ocx needs.
 
If you are adding it... Try InnoScript 3.0.1 Beta to allow you to include mscal.ocx in your script and have InnoScript search for the dep file (path to dep file must be in your search path or in the location where the mscal.ocx file was located).
 
This will get any files that the mscal.dep file says that should be included.

guitarconcept

I'll start with the stdole2.tlb thing first. I switch the flags around, no help. The updater is not ran until near the end of the script under the 'run' title (see above) but I tried installing 2 times after the updater ran the first time. No help. But the program seems to be fine without it, so let's blow that one off for awhile. And yes the '98 machine has been re-formatted about 5 times this week.
---------------------------------
MScal. I've tried several different versions of the mscal.ocx. The results are: no matter which one I use, it always works properly on an XP machine (I have two) and it never works on a ME machine or the 98 machine. Right now I'm using the mscal.ocx from the ME machine because the is the one that registers properly on the '98 machine. But there are no numbers on the Calendar when you run the program. That is even the case on the ME machine that I took the OCX file from. There are no .dll files with it, but there are: .cnt, .dep, .oca and .gid. Do one or more need to be included? If so what flag should I use for those?

admin

guitarconcept,
 
Check the mscal.ocx you are going to deploy for support dll's. You may need to deploy those to the 98 machine as well to make it work (not the updated versions of the dll's).
 
Check to see if installing the OS Updater first and then installing the .tlb file works. I imagine you are using a clean Windows 98 to test?
 
Just to check... I do not think that the order of the flags is important but you could check this possibility and add the restartreplace first in the line.

guitarconcept

Okay I tried a couple different MScal version and one did work on the '98 machine. It also installed okay on an ME machine, but the calendar in the program had no numbers on it. I have seen that before and it is just a matter of finding a version that works okay. So that brings me to my next question.  
What do I have to know from the end user to determine what MScal version to send them?
 
I added the 'restartreplace sharedfile' to the .tlb script but I had the same error. I selected ignore from the dialog box and it installed okay and seemed to work okay too. Any ideas what that is all about? Once again I only get that on a windows '98 machine that does not have VB installed on it.  The new line looks like this:
Source: c:program filesrandem systemsinnoscriptinnoscript 3.0vb5 runtimestdole2.tlb; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  uninsneveruninstall regtypelib restartreplace sharedfile
 
 
Thanks
Tim

admin

guitarconcept,
 
If you are having trouble with a file that is in use... Try adding the flag restartreplace sharedfile to the file. That will allow the file to be replaced at the next reboot.
 
BTW, you can get other versions of mscal.ocx from prior versions of office.

guitarconcept

Okay Great! Here is the entire script:
 
--------------------------------------
; InnoScript Version 3.0.0
; Randem Systems, Inc.
; Copyright 2003, 2004
; website:  https://randemsystems.com
; support:  https://randemsystems.support
 
; Date: September 25, 2004
 
;                      VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript 3.0\VB6 Runtime\
; Package and Deployment Wizard Setup.lst File:   C:\My Documents\VB\new Fitness\Package\SETUP.LST
;         Inno Setup Script Output File (.iss):   C:\Documents and Settings\Owner\My Documents\VB\new FitnessLap\Myprogram.iss
;                  Visual Basic Project Folder:   C:\Documents and Settings\Owner\My Documents\VB\new FitnessLap\
 
[Setup]
AppName=Fit Concept
AppVerName=Fit Concept 1.0.0.0
DefaultGroupName=Fit Concept
AppPublisher=ShapeConcept
;AppPublisherURL=http://www.ShapeConcept.com
AppVersion=1.0.0.0
AppSupportURL=http://www.ShapeConcept.com
;AppUpdatesURL=http://www.ShapeConcept.com
AllowNoIcons=yes
;InfoBeforeFile=Setup.txt
;InfoAfterFile=ReadMe.txt
;WizardImageFile=yourlogo.bmp
AppCopyright=Copyright 2004, All rights reserved.
PrivilegesRequired=admin
OutputBaseFilename=Setup
DefaultDirName={pf}\Fit Concept
 
[Tasks]
Name: desktopicon; Description: Create a &desktop icon; GroupDescription: Additional icons:
Name: quicklaunchicon; Description: Create a &Quick Launch icon; GroupDescription: Additional icons:; Flags: unchecked
 
[Files]
Source: C:\Documents and Settings\Owner\My Documents\VB\new FitnessLap\VB_DCOM_MDAC_JET_AutoSetup.exe; DestDir: {tmp}; MinVersion: 4.0,4.0; Flags:  ignoreversion deleteafterinstall
Source: c:\program files\microsoft visual studio\vb98\wizards\pdwizard\redist\comcat.dll; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  regserver restartreplace sharedfile
Source: c:\program files\randem systems\innoscript\innoscript 3.0\vb5 runtime\stdole2.tlb; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  uninsneveruninstall regtypelib
Source: c:\program files\randem systems\innoscript\innoscript 3.0\vb5 runtime\asycfilt.dll; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  sharedfile
Source: c:\program files\randem systems\innoscript\innoscript 3.0\vb5 runtime\olepro32.dll; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  regserver restartreplace sharedfile
Source: c:\program files\randem systems\innoscript\innoscript 3.0\vb5 runtime\oleaut32.dll; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  regserver restartreplace sharedfile
Source: c:\program files\randem systems\innoscript\innoscript 3.0\vb6 runtime\msvbvm60.dll; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  regserver restartreplace sharedfile
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\lastuser.inf; DestDir: {app}; MinVersion: 4.0,4.0; Flags:  ignoreversion
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\userscopy.inf; DestDir: {app}; MinVersion: 4.0,4.0; Flags:  ignoreversion
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\users.inf; DestDir: {app}; MinVersion: 4.0,4.0; Flags:  ignoreversion
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\timworkout.mdb; DestDir: {app}; MinVersion: 4.0,4.0; Flags:  ignoreversion
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\timwater.mdb; DestDir: {app}; MinVersion: 4.0,4.0; Flags:  ignoreversion
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\timcalendar.mdb; DestDir: {app}; MinVersion: 4.0,4.0; Flags:  ignoreversion
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\tim.fcf; DestDir: {app}; MinVersion: 4.0,4.0; Flags:  ignoreversion
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\food.mdb; DestDir: {app}; MinVersion: 4.0,4.0; Flags:  ignoreversion
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\exercises.mdb; DestDir: {app}; MinVersion: 4.0,4.0; Flags:  ignoreversion
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\blankworkout.mdb; DestDir: {app}; MinVersion: 4.0,4.0; Flags:  ignoreversion
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\blankwater.mdb; DestDir: {app}; MinVersion: 4.0,4.0; Flags:  ignoreversion
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\blankcalendar.mdb; DestDir: {app}; MinVersion: 4.0,4.0; Flags:  ignoreversion
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\blank.fcf; DestDir: {app}; MinVersion: 4.0,4.0; Flags:  ignoreversion
Source: c:\documents and settings\owner\my documents\vb\new fitness\package\support\msstdfmt.dll; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  regserver restartreplace sharedfile
Source: c:\documents and settings\owner\my documents\vb\new fitness\package\support\msdatgrd.ocx; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  regserver restartreplace sharedfile
Source: c:\documents and settings\owner\my documents\vb\new fitness\package\support\mschrt20.ocx; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  regserver restartreplace sharedfile
Source: c:\documents and settings\owner\my documents\vb\new fitness\package\support\msadodc.ocx; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  regserver restartreplace sharedfile
Source: c:\program files\microsoft office\office11\mscal.ocx; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  regserver restartreplace sharedfile
Source: c:\program files\common files\system\ado\msado25.tlb; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  uninsneveruninstall sharedfile regtypelib
Source: c:\documents and settings\owner\my documents\vb\new fitness\package\support\msbind.dll; DestDir: {sys}; MinVersion: 4.0,4.0; Flags:  regserver restartreplace sharedfile
Source: c:\documents and settings\owner\my documents\vb\new fitnesslap\project1.exe; DestDir: {app}; Flags:  ignoreversion
 
 
 
 
[INI]
Filename: {app}\Project1.url; Section: InternetShortcut; Key: URL; String: http://www.yourwebsite.com
 
[Icons]
Name: {group}\Fit Concept; Filename: {app}\Project1.exe; WorkingDir: {app}
Name: {group}\Fit Concept on the Web; Filename: {app}\Project1.url
Name: {group}\Uninstall Fit Concept; Filename: {uninstallexe}
Name: {userdesktop}\Fit Concept; Filename: {app}\Project1.exe; Tasks: desktopicon; WorkingDir: {app}
Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\Fit Concept; Filename: {app}\Project1.exe; Tasks: quicklaunchicon; WorkingDir: {app};
 
[Run]
Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT WorkingDir: {tmp}; MinVersion: 4.0,4.0
Filename: {app}\Project1.exe; Description: Launch Fit Concept; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
 
 
 
[UninstallDelete]
Type: files; Name: {app}\Project1.url
 
 
-----------------------------------------------
And your right about the tlb file....
An error occured while trying to replace existing file. deletefile failed code 5. Access is denied.  
 
So that sounds like something else is currently using the file huh?
Mucho Gracias!