Errors: Invalid reference in VBP

Started by Randem, October 04, 2010, 07:11:33 AM

Previous topic - Next topic

Randem

A script is ALWAYS created without exception... You just did not look at the script tab.
 
OK, so now you have to make any additions to the script that you may want then compile and test your script.

dtleahy

Just what are you attempting to accomplish?  
 
I am trying to create a script that InnoSetup 5.3.9 can read to make an installation
 
 
 
Do you generate a script?  
 
For the first time, yes, now I do. Before, no script was created.
 
 
 
What is it about the logs that has your attention?
 
Since no script was being created, and since I was informed (and still am) that there are 3 errors, I went to the logs to see what the errors contain. That seemed pretty logical to me. I wasn't looking for trouble. I have used your InnoScript before (a while ago) and nothing like this ever happened, and I do try to check to see if I am making a bonehead mistake, look in log files, read documentation, before asking for help.  
 
 
 
The script:
 
; InnoScript Version 10.3  Build 7
; Randem Systems, Inc.
; Copyright (c) 2002 - 2010, Randem Systems, Inc.
; Website:  https://randemsystems.com
; Support:  https://randemsystems.support
; OS: Windows XP 5.1 build 2600 (Service Pack 3)
 
; Derived from VB VBP Project File
 
; Designed for Inno Setup Version: 5.3.9 (a)
; Installed Inno Setup Version: 5.3.9 (a)
 
; Local Machine Settings. Use these settings as a template for your installation folders
 
; {app}           : C:\Program Files\Randem Systems\InnoScript
; {appdata}       : C:\Documents and Settings\Dennis Leahy\Application Data\Randem Systems\InnoScript\
; {localappdata}  : C:\Documents and Settings\Dennis Leahy\Local Settings\Application Data\Randem Systems\InnoScript\
; {cf}            : C:\Program Files\Common Files\Randem Systems
; {tmp}           : C:\Documents and Settings\Dennis Leahy\Local Settings\Temp\
; {commonappdata} : C:\Documents and Settings\All Users\Application Data\Randem Systems\InnoScript\Release\
; {pf}            : C:\Program Files\
 
; Date: October 05, 2010
 
;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript10.2.5\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   C:\MyAppName2002\MyAppName2010.vbp
; Inno Setup Script Output File (.iss):   C:\MyAppName2002\Scripts\MyAppName2010 1.12.4.iss
;:   C:\Documents and Settings\Dennis Leahy\Local Settings\Application Data\Randem Systems\InnoScript\Release\Templates\Release.tpl
 
; ------------------------
;        References
; ------------------------
 
; Microsoft Data Binding Collection - (MSBIND.DLL)
; Microsoft Data Formatting Object Library 6.0 (SP6) - (MSSTDFMT.DLL)
; Microsoft ActiveX Data Objects 2.8 Library - (msado15.dll)
 
 
; --------------------------
;        Components
; --------------------------
 
; Microsoft DataGrid Control 6.0 (SP5) (OLEDB) - (MSDATGRD.OCX)
; Microsoft ADO Data Control 6.0 (SP4) (OLEDB) - (MSADODC.OCX)
; Microsoft DataList Controls 6.0 (SP3) (OLEDB) - (MSDATLST.OCX)
; Crystal Report Control - (Crystl32.OCX)
; Microsoft Windows Common Controls-2 6.0 (SP6) - (mscomct2.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (mscomctl.ocx)
; 3D Active Button Magic Control - (3dabm9u.ocx)
; Microsoft Common Dialog Control 6.0 (SP6) - (Comdlg32.ocx)
; Microsoft Calendar Control 9.0 - (MSCAL.OCX)
 
 
[Setup]
SetupLogging=Yes
AppId=MyAppName2010  
 
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------
 
AppName=MyAppName2010 1.12.4
AppVerName=MyAppName2010  
AppPublisher=7th Sense Multimedia
 
;------------------------------------------------------------------------------------------------------------------------
 
AppVersion=1.12.4
VersionInfoVersion=1.12.4
AllowNoIcons=yes
DefaultGroupName=7th Sense Multimedia\MyAppName2010  
DefaultDirName={pf}\MyAppName2010 1  
AppCopyright=

Randem

And what exactly is the problem??? I don't see one... That is not the script.

dtleahy

Again, from scratch, carefully deleting all those weird folders that are automatically included on the Search Folders tab, and adding just the one new folder that contains copies of all three of the DLL files. After Create, here is the contents of your info popup dialog:
 
=============================================
Script created: C:MyAppName2010ScriptsMyAppName2010 1.12.4.iss
 
Files Found: 17
Files Unsafe: 17
Files UnsafeWinSxS: 0
Files Missing: 0
Files Deleted: 1
Files Replaced: 0
 
Files Not Found: 0 (Shown in Red)
 
Elapsed Time: 0:01:46
 
Warning: If some files are not found they may be in the SYSTEM folders and
are not allowed in the script to prevent OS damage when installing them.
 
Please find substitute files in another folder to include in the script or run in 'UnSafe Mode'.
***3 VBP File Errrors Found ***
 
Please view the log for more details on your files
=============================================
 
The error log is empty.
 
The run log:
Randem Systems - InnoScript - Version 10.3  Build 7 - 10/5/2010 12:53:18 AM
 
 
10/5/2010 12:53:18 AM - Saving Settings... Please Wait
10/5/2010 12:53:19 AM - Saving Project... Please Wait
10/5/2010 12:53:19 AM - Processing VB Runtime Files...
10/5/2010 12:53:21 AM - Processing Special Files...
10/5/2010 12:53:21 AM - Processing VBP Project MyAppName2010.vbp File Information...
10/5/2010 12:53:21 AM - * * * ERROR * * * Invalid reference in VBP: ..WINNTsystem32MSBIND.DLL - Converts to: ..WINNTsystem32MSBIND.DLL - File Does Not Exist
10/5/2010 12:53:21 AM - Object - MSBIND.DLL
10/5/2010 12:53:21 AM - * * * ERROR * * * Invalid reference in VBP: ..WINNTsystem32MSSTDFMT.DLL - Converts to: ..WINNTsystem32MSSTDFMT.DLL - File Does Not Exist
10/5/2010 12:53:21 AM - Object - MSSTDFMT.DLL
10/5/2010 12:53:21 AM - * * * ERROR * * * Invalid reference in VBP: ..Program FilesCommon FilesSystemadomsado15.dll - Converts to: ..Program FilesCommon FilesSystemadomsado15.dll - File Does Not Exist
10/5/2010 12:53:21 AM - Object - msado15.dll
10/5/2010 12:53:21 AM - Object - MSDATGRD.OCX
10/5/2010 12:53:21 AM - Object - MSADODC.OCX
10/5/2010 12:53:21 AM - Object - MSDATLST.OCX
10/5/2010 12:53:21 AM - Object - Crystl32.OCX
10/5/2010 12:53:21 AM - Object - mscomct2.ocx
10/5/2010 12:53:21 AM - Object - mscomctl.ocx
10/5/2010 12:53:21 AM - Object - 3dabm9u.ocx
10/5/2010 12:53:21 AM - Object - Comdlg32.ocx
10/5/2010 12:53:21 AM - Object - MSCAL.OCX
10/5/2010 12:53:21 AM - Object - MyAppName2010.exe
10/5/2010 12:53:21 AM -  
         Dependency Information Search...
 
10/5/2010 12:53:21 AM - Processing Dependency Information for - msvbvm60.dll
10/5/2010 12:53:24 AM - Processing Dependency Information for - oleaut32.dll
10/5/2010 12:53:26 AM - Processing Dependency Information for - olepro32.dll
10/5/2010 12:53:28 AM - Processing Dependency Information for - asycfilt.dll
10/5/2010 12:53:31 AM - Processing Dependency Information for - stdole2.tlb
10/5/2010 12:53:33 AM - Processing Dependency Information for - comcat.dll
10/5/2010 12:53:36 AM - Processing Dependency Information for - vb5db.dll
10/5/2010 12:53:38 AM - Processing Dependency Information for - msstdfmt.dll
10/5/2010 12:53:40 AM - Processing Dependency Information for - msdatgrd.ocx
10/5/2010 12:53:43 AM - Processing Dependency Information for - msadodc.ocx
10/5/2010 12:53:45 AM - Processing Dependency Information for - msdatlst.ocx
10/5/2010 12:53:47 AM - Processing Dependency Information for - crystl32.ocx
10/5/2010 12:53:50 AM - Processing Dependency Information for - mscomct2.ocx
10/5/2010 12:53:52 AM - Processing Dependency Information for - mscomctl.ocx
10/5/2010 12:53:55 AM - Processing Dependency Information for - 3dabm9u.ocx
10/5/2010 12:53:57 AM - Processing Dependency Information for - comdlg32.ocx
10/5/2010 12:53:59 AM - Processing Dependency Information for - mscal.ocx
10/5/2010 12:54:02 AM - Processing Dependency Information for - MyAppName2010.exe
10/5/2010 12:54:04 AM - Scanning msstdfmt.dll
10/5/2010 12:54:11 AM - Scanning msdatgrd.ocx
10/5/2010 12:54:17 AM - Scanning msadodc.ocx
10/5/2010 12:54:23 AM - Scanning msdatlst.ocx
10/5/2010 12:54:30 AM - Scanning crystl32.ocx
10/5/2010 12:54:36 AM - Scanning mscomct2.ocx
10/5/2010 12:54:42 AM - Scanning mscomctl.ocx
10/5/2010 12:54:43 AM - Scanning 3dabm9u.ocx
10/5/2010 12:54:50 AM - Scanning comdlg32.ocx
10/5/2010 12:54:56 AM - MSCAL.OCX   Dep - C:Program FilesMicrosoft OfficeOfficeMSCAL.dep   Microsoft Calendar Control 9.0
10/5/2010 12:54:56 AM - Scanning mscal.ocx
10/5/2010 12:55:05 AM - Scanning MyAppName2010.exe
10/5/2010 12:55:05 AM -  
         Creating Inno Setup Script File...
10/5/2010 12:55:05 AM -  
 
               Processed in SAFE file mode
 
               Files included in Script
 
              Version       OS      Type   File
 
10/5/2010 12:55:05 AM -           6.0.97.82         Win32         DLL    C:Program FilesRandem SystemsInnoScriptInnoScript10.2.5VB 6 Redist FilesMSVBVM60.DLL
10/5/2010 12:55:05 AM -         2.40.4275.1      NT-Win32         DLL    C:Program FilesRandem SystemsInnoScriptInnoScript10.2.5VB 6 Redist FilesOLEAUT32.DLL
10/5/2010 12:55:05 AM -          5.0.4275.1         Win32         DLL    C:Program FilesRandem SystemsInnoScriptInnoScript10.2.5VB 6 Redist FilesOLEPRO32.DLL
10/5/2010 12:55:05 AM -         2.40.4275.1      NT-Win32         DLL    C:Program FilesRandem SystemsInnoScriptInnoScript10.2.5VB 6 Redist FilesASYCFILT.DLL
10/5/2010 12:55:05 AM -         2.40.4275.1      NT-Win32         DLL    C:Program FilesRandem SystemsInnoScriptInnoScript10.2.5VB 6 Redist FilesSTDOLE2.TLB
10/5/2010 12:55:05 AM -         4.71.1460.1      NT-Win32         DLL    C:Program FilesRandem SystemsInnoScriptInnoScript10.2.5VB 6 Redist FilesCOMCAT.DLL
10/5/2010 12:55:05 AM -           6.0.81.69      NT-Win32         DLL    C:Program FilesRandem SystemsInnoScriptInnoScript10.2.5VB 6 Redist FilesVB5DB.DLL
10/5/2010 12:55:05 AM -           6.1.97.82      NT-Win32         DLL    C:CoolDLLsMSSTDFMT.DLL
10/5/2010 12:55:05 AM -           6.0.89.88      NT-Win32         DLL    C:Program FilesMicrosoft Visual StudioRedistMSDATGRD.OCX
10/5/2010 12:55:05 AM -            6.0.88.4      NT-Win32         DLL    C:Program FilesMicrosoft Visual StudioRedistMSADODC.OCX
10/5/2010 12:55:05 AM -           6.0.84.18      NT-Win32         DLL    C:Program FilesMicrosoft Visual StudioRedistMSDATLST.OCX
10/5/2010 12:55:05 AM -            6.0.88.4      NT-Win32         DLL    C:Program FilesMicrosoft Visual StudioRedistmscomct2.ocx
10/5/2010 12:55:05 AM -           6.1.97.82      NT-Win32         DLL    C:Program FilesMicrosoft Visual StudioRedistmscomctl.ocx
10/5/2010 12:55:05 AM -             9.3.3.1         Win32         DLL    C:Program Files3D Active Button Magic3dabm9u.ocx
10/5/2010 12:55:05 AM -           6.0.84.18     DOS-Win32         DLL    C:Program FilesUBISOFTMyst IV - RevelationsupportregisteremearegisterdllComdlg32.ocx
10/5/2010 12:55:05 AM -          9.0.0.3620      NT-Win32         DLL    C:Program FilesMicrosoft OfficeOfficeMSCAL.OCX
10/5/2010 12:55:05 AM -            1.12.0.3         Win32         App    C:MyAppName2002MyAppName2010.exe
10/5/2010 12:55:05 AM -  
         Translating parameters...
10/5/2010 12:55:05 AM - Merging with Template Script File... Please Wait
10/5/2010 12:55:05 AM - Merging with Template Script File... Please Wait
10/5/2010 12:55:05 AM - Merging with Template Script File... Please Wait
10/5/2010 12:55:05 AM - Saving Inno Setup Script file... Please Wait
10/5/2010 12:55:05 AM -  
 
 
Script created: C:MyAppName2002ScriptsMyAppName2010 1.12.4.iss
 
Files Found: 17
Files Unsafe: 17
Files Unsafe WinSxS: 0
Files Missing: 0
Files Deleted: 1
Files Replaced: 0
 
Files Not Found: 0   (Shown in Red)
 
Elapsed Time: 00:01:46
 
WARNING: If some files are not found they may be in the SYSTEM folders and
are not allowed in the script to prevent OS damage when installing them.
 
Please find substitute files in another folder to include in the script or run in 'UnSafe Mode'.
* * *  3 VBP File Errors Found  * * *
 
Please view the log for more details on your files
10/5/2010 12:55:05 AM -  
 
Files Deleted:
 
Crystl32.OCX
 
 
Files Missing:
 
 
 
Files Unsafe:
 
MSBIND.DLL
msado15.dll
KERNEL32.dll
USER32.dll
ole32.dll
ADVAPI32.dll
GDI32.dll
CRPE32.dll
VERSION.dll
comdlg32.dll
oledlg.dll
gdiplus.dll
COMCTL32.dll
SHLWAPI.dll
urlmon.dll
WININET.dll
WINSPOOL.DRV
 
 
Files Unsafe (WinSxS):
 
 
 
Files Replaced:

Randem

No you don't have a corrupt install. Just what are you attempting to accomplish? Do you generate a script? What is it about the logs that has your attention?
 
You put the files in a different location and you generate the script...
 
I don't understand why you are searching the logs. You seem to be creating problems where none exists. Post your script.

dtleahy

Ralph,
 
No matter what I do, I get the same errors.
 
I have very carefully started over several times. I created yet another new folder, and copied those 3 DLL files into it. I have included that new folder in the InnoScript Search Folders. Then save the InnoScript project (otherwise, the file folders are not saved), then Create Script (Safe Mode, though I have also tried Unsafe Mode with the same results.) When the Create is done, I invariably have the same errors.
 
So, puzzled, I tried to create a script for a different VBP. Starting over from scratch (and I have tried closing down InnoScript and re-starting it), one very puzzling thing that I noticed is that if I click the Search Folders tab before I even select a VBP to begin the project, I get a very strange, seemingly random list of:
 
C:WINNTSystem32
C:WINNT
C:WINNTsystem32WBEM
C:Program FilesSeagate SoftwareNOTES
C:Program FilesSeagate SoftwareNOTESDATA
C:Program FilesCommon FilesAdaptec SharedSystem
C:Program FilesMicrosoft SQL Server80ToolsBINN
C:Program FilesCommon FilesAdobeAGL
C:Program FilesCommon FilesUlead SystemsMPEG
C:Program FilesMicrosoft SQL Server80ToolsBinn
C:Program FilesMicrosoft SQL Server90Toolsbinn
C:Program FilesATI TechnologiesATI.ACECore-Static
C:Program FilesCommon FilesDivX Shared
C:Documents and SettingsDennis LeahyRandem SystemsInnoScript
 
After selecting the correct VBP file, the Search Folders contents does not automatically change.
 
Also, clicking the tab Debug Log, there are already a couple of hundred lines in there.
 
Do I have a corrupt install of InnoScript? If not, can you please help me figure out what is going on.
 
Thanks,
 
Dennis

Randem

You don't do anything in VB. This is what you need to do:
 
1 - Copy the files to a different folder.
2 - Add that folder to the Search Folders tab in InnoScript.
3 - Re-run InnoScript to pickup the new file locations.
 
That is it...

dtleahy


dtleahy

Never mind, I just tried selecting each reference, within VB, by selecting the DLL from a different folder. That does not work, as I'm sure it has to be the correct/same folder as the DLL is registered in the registry.
 
By the way, this is Version 10.3 Build 7

dtleahy

Well, run log has the same 3 errors.
 
winnt/system32 I have listed in Exclude folders
and it is not in Include folders
 
What should I try next? Do I need to delete the references within VB, and select the DLL files (within VB) in the alternative folder?
 
Dennis

dtleahy

Thanks, Ralph (man, I wasn't even close, sorry)
 
OK, removed the system32 folder from the folders to be searched, put in a new folder to search that has copies of those files.
 
Giving it another whirl...

Randem

Yes, that may be true but that's not what I stated. You should not have files from the system folder in your deployment. Files in the system folder will be ignored. You must move those files to another folder for deployment and put that location in the search tab.
 
The screen at the end of the run state that also as well as the instructions.
 
Depending on where your project is ..\Winnt\System may not be the same as c:\Winnt\System that is why there is an error.
 
P.S. The name is Ralph

dtleahy

Thanks for the reply, randem (can't remember your name, maybe Jason?)
 
I checked and those 3 files ARE in the directory where they are supposed to be C:WINNTSystem32
 
Same results (same error I reported). So, I even tried re-registering the DLLs, but got the same results again.
 
I even went back into the VB project, removed one of the references (MSBIND.DLL), then navigated to it in WINNTStstem32 and re-selected it. (just to see if that one DLL would then be 'found', but it wasn't. Same error.
 
Thanks again for any help. I'm under the gun to get this app out the door.
 
Dennis

Randem

Aloha dtleahy,
 
InnoScript is just telling you that you are referencing files that do not exist in the current location. If you put the new location in the search path tab, then InnoScript should be able to find the missing files for your application.

dtleahy

Hello,
 
I have not used InnoScript in a long time, don't remember much, so I'm realy a newbie to this.
 
I got 3 Invalid reference in VBP errors in the script. What do I do next?
 
===================
9/30/2010 4:05:17 PM - Processing VBP Project MyProgram2010.vbp File Information...
9/30/2010 4:05:17 PM - * * * ERROR * * * Invalid reference in VBP: ..WINNTSystem32MSBIND.DLL - Converts to: ..WINNTSystem32MSBIND.DLL - File Does Not Exist
9/30/2010 4:05:17 PM - Object - MSBIND.DLL
9/30/2010 4:05:17 PM - * * * ERROR * * * Invalid reference in VBP: ..WINNTsystem32MSSTDFMT.DLL - Converts to: ..WINNTsystem32MSSTDFMT.DLL - File Does Not Exist
9/30/2010 4:05:17 PM - Object - MSSTDFMT.DLL
9/30/2010 4:05:17 PM - * * * ERROR * * * Invalid reference in VBP: ..Program FilesCommon FilesSystemadomsado15.dll - Converts to: ..Program FilesCommon FilesSystemadomsado15.dll - File Does Not Exist
9/30/2010 4:05:17 PM - Object - msado15.dll
 
===================
 
Thanks in advance for any help!
 
Dennis