InnoScript pointing to wrong directories

Started by Randem, May 01, 2006, 04:10:52 PM

Previous topic - Next topic

Randem

No, VB did not automatically include the references. You at some point selected them or you started with a project that had them selected. you would need to de-select them to eliminate the references that you do not use from the project.
 
If you are not using databases then theses two you do not need:
 
Microsoft DAO 3.6 Object Library
Microsoft ActiveX Data Objects 2.5 Library

 
As far as the others, If you are not sure if you need them... One at a time remove the references then attempt to /b{run with full compile} in the VB IDE to see if it complains or your program crashes. If not then most likely you do not need it.  
 
Of course write down the reference before removing it so that you know which one to re-add should you need it.

npudar

I'm not sure I understand the different user name comment.  If you mean this forum, I'm new.  If you mean on my computer, it has always been the same.
 
Regarding the References, when I go to the Project... References menu, the items that have a checkmark are:
 
Visual Basic for Applications
Visual Basic runtime objects and procedures
Visual Basic objects and procedures
OLE Automation
Microsoft Data Formatiing Object Library 6.0 (SP6)
Microsoft Scripting Runtime
Microsoft DAO 3.6 Object Library
Microsoft ActiveX Data Objects 2.5 Library
Microsoft Data Binding Collection VB 6.0 (SP4)
 
As I mentioned before, at one point in my application development, I was trying to incorporate an Access database, but I abandoned that solution for a simpler one.  I am assuming that VB6 automatically included the appropriate Reference at that time.  But when I removed the database code, the Reference linkage still remained.  Is that correct?
 
If so, which of the references do I not need.  I'm not sure which ones do what.
 
Again, thank you so much for your excellent help in this matter.
 
Nick

Randem

If you are not using a database remove the database references from your project as well as any other unneeded references.

Randem

You wouldn't by chance be running under a different user name would you?
 
Here is what I got. You have database references selected, that is why InnoScript finds database files to include in your script.
 
; InnoScript Version 5.3  Build 3
; Randem Systems, Inc.
; Copyright 2003-2006
; website:  https://randemsystems.com
; support:  https://randemsystems.support
 
; Date: May 03, 2006
 
;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript 5.2\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   C:\TEMP\npudar\SV5NewTest-658\StackView.vbp
; Inno Setup Script Output File (.iss):   C:\TEMP\npudar\SV5NewTest-658\StackView.iss
 
; ------------------------
;        References
; ------------------------
 
; Visual Basic For Applications - (MSVBVM60.DLL)
; Standard OLE Types - (OLEPRO32.DLL)
; OLE Automation - (STDOLE2.TLB)
; Microsoft Data Formatting Object Library - (MSSTDFMT.DLL)
; Microsoft Scripting Runtime - (scrrun.dll)
; Microsoft DAO 3.6 Object Library - (dao360.dll)
; Microsoft ActiveX Data Objects 2.5 Library - (msado25.tlb)

; Microsoft Data Binding Collection VB 6.0 (SP4) - (MSBIND.DLL)
; Microsoft Shell Controls And Automation - (SHELL32.dll)
 
 
; --------------------------
;        Components
; --------------------------
 
; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (mscomctl.ocx)
; Microsoft Rich Textbox Control 6.0 (SP6) - (richtx32.ocx)
; Microsoft Tabbed Dialog Control 6.0 (SP5) - (tabctl32.ocx)
 
 
[Setup]
AppName=StackView
AppVerName=StackView 5.0.0
AppPublisher=
AppVersion=5.0.0
VersionInfoVersion=5.0.0
AllowNoIcons=no
DefaultGroupName=StackView
DefaultDirName={pf}\StackView
AppCopyright=
PrivilegesRequired=Admin
MinVersion=4.0,4.0sp6
Compression=lzma
OutputBaseFilename=StackView500Release
 
[Tasks]
 
[Files]
Source: c:\program files\randem systems\innoscript\innoscript 5.2\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags:  sharedfile
Source: c:\program files\randem systems\innoscript\innoscript 5.2\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags:  sharedfile
Source: c:\program files\randem systems\innoscript\innoscript 5.2\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags:  sharedfile
Source: c:\program files\randem systems\innoscript\innoscript 5.2\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags:  sharedfile
Source: c:\program files\randem systems\innoscript\innoscript 5.2\vb 6 redist files\stdole2.tlb; DestDir: {sys}; Flags:  regtypelib
Source: c:\program files\randem systems\innoscript\innoscript 5.2\vb 6 redist files\comcat.dll; DestDir: {sys}; Flags:  sharedfile
Source: c:\windows\system32\scrrun.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile
Source: c:\windows\system32\comdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile
Source: c:\windows\system32\mscomctl.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile
Source: c:\windows\system32\richtx32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile
Source: c:\windows\system32\tabctl32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile
Source: c:\program files\common files\system\ado\msado25.tlb; DestDir: {sys}; Flags:  uninsneveruninstall regtypelib
Source: c:\windows\system32\msbind.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile
Source: c:\temp\npudar\sv5newtest-658\stackview.exe; DestDir: {app}; Flags:  ignoreversion
 
[INI]
Filename: {app}\StackView.url; Section: InternetShortcut; Key: URL; String:  
 
[Icons]
Name: {group}\StackView; Filename: {app}\StackView.exe; WorkingDir: {app}
Name: {group}\StackView on the Web; Filename: {app}\StackView.url
Name: {group}\Uninstall StackView; Filename: {uninstallexe}
 
[Run]
Filename: {app}\StackView.exe; Description: Launch StackView; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
 
[UninstallDelete]
Type: files; Name: {app}\StackView.url

npudar

OK, I've posted the files you asked for.  I'm still a bit perplexed by the c:\document and settings\pudar\ directory.  When I try to compile the .iss file in InnoSetup, I get an error message saying that the files are not located in that directory.  Also, I've gone back and checked my folder settings, and they show hidden files.
 
Anyway, I'm thankful for your help.
 
Nick
 

Randem

npudar,
 
Please zip and post the InnoScript Project File (.pjt) along with the exe (StackView.exe) and vbp file for you project. I will take a look.
 
The files are definitely there. InnoScript will check for hidden systems files. If you remove the c:\documents and settings\pudar\ folder from the search path area InnoScript will not look there.
 
I can't tell much from an excerpt of the script I would need to see the whole script with the debug log associated with the run.

npudar

Randem,
I appreciate your assistance.  I'm still having some difficulty in understanding.  When I follow the basic procedure as you wrote on page 5 of the manual, the following portion of the script was generated.  The part that confuses me is that the files scrrun.dll, comdlg32.ocx, mscomctl.ocx, richtx32.ocx, and tabctl32.ocx -- are not in the directory that is being pointed to as the Source.  I have verified that those files are not there, and they are not hidden.  When I try to run Inno Setup, I get error messages.  I have since then added the Support directory to the path (from P&DW), and then the Source directories were identified correctly.
 
I'm not sure what I am doing wrong in the first pass.
 
[Files]
Source: c:program filesrandem systemsinnoscriptinnoscript 5.3vb 6 redist filesmsvbvm60.dll; DestDir: {sys}; Flags:  sharedfile
Source: c:program filesrandem systemsinnoscriptinnoscript 5.3vb 6 redist filesoleaut32.dll; DestDir: {sys}; Flags:  sharedfile
Source: c:program filesrandem systemsinnoscriptinnoscript 5.3vb 6 redist filesolepro32.dll; DestDir: {sys}; Flags:  sharedfile
Source: c:program filesrandem systemsinnoscriptinnoscript 5.3vb 6 redist filesasycfilt.dll; DestDir: {sys}; Flags:  sharedfile
Source: c:program filesrandem systemsinnoscriptinnoscript 5.3vb 6 redist filesstdole2.tlb; DestDir: {sys}; Flags:  regtypelib
Source: c:program filesrandem systemsinnoscriptinnoscript 5.3vb 6 redist filescomcat.dll; DestDir: {sys}; Flags:  sharedfile
Source: c:documents and settingspudarmy documentsdatahome stuffmagicvisual basic programsstackview v5stackview user guide.pdf; DestDir: {app}; Flags:  ignoreversion
Source: c:documents and settingspudarscrrun.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile
Source: c:documents and settingspudarcomdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile
Source: c:documents and settingspudarmscomctl.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile
Source: c:documents and settingspudarrichtx32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile
Source: c:documents and settingspudartabctl32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile
Source: c:program filescommon filesmsado25.tlb; DestDir: {sys}; Flags:  uninsneveruninstall regtypelib
Source: c:documents and settingspudarmsbind.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile
Source: c:program filesstackview.exe; DestDir: {app}; Flags:  ignoreversion
 
My other question is regarding the specialized scrrun.dll.  Is this the only one of these files that has specific version issues?  The SETUP.LST that P&DW created is listed below.  My applicatin does not use any database functionality (although at one point it did, but I deleted it), so I don't think I need to use the Automatic OS Updater.
 
[Bootstrap]
SetupTitle=Install
SetupText=Copying Files, please stand by.
CabFile=StackView.CAB
Spawn=Setup1.exe
Uninstal=st6unst.exe
TmpDir=msftqws.pdw
Cabs=1
 
[Bootstrap Files]
File1=@VB6STKIT.DLL,$(WinSysPathSysFile),,,7/15/00 12:00:00 AM,101888,6.0.84.50
File2=@COMCAT.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,5/31/98 12:00:00 AM,22288,4.71.1460.1
File3=@STDOLE2.TLB,$(WinSysPathSysFile),$(TLBRegister),,6/3/99 12:00:00 AM,17920,2.40.4275.1
File4=@ASYCFILT.DLL,$(WinSysPathSysFile),,,3/8/99 12:00:00 AM,147728,2.40.4275.1
File5=@OLEPRO32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,3/8/99 12:00:00 AM,164112,5.0.4275.1
File6=@OLEAUT32.DLL,$(WinSysPathSysFile),$(DLLSelfRegister),,4/12/00 12:00:00 AM,598288,2.40.4275.1
File7=@msvbvm60.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,2/23/04 12:00:00 AM,1386496,6.0.97.82
 
[IconGroups]
Group0=StackView
PrivateGroup0=1
Parent0=$(Programs)
 
[StackView]
Icon1=StackView.exe
Title1=StackView
StartIn1=$(AppPath)
 
[Setup]
Title=StackView
DefaultDir=$(ProgramFiles)StackView
AppExe=StackView.exe
AppToUninstall=StackView.exe
 
[Setup1 Files]
File1=@MDAC_TYP.EXE,$(AppPath),,,6/26/98 12:00:00 AM,8124720,4.71.1015.0
File2=@MSSTDFMT.DLL,$(WinSysPath),$(DLLSelfRegister),$(Shared),2/23/04 12:00:00 AM,119808,6.1.97.82
File3=@MSBIND.DLL,$(WinSysPath),$(DLLSelfRegister),$(Shared),2/23/04 12:00:00 AM,78848,6.1.97.82
File4=@VB5DB.DLL,$(WinSysPath),,$(Shared),6/18/98 12:00:00 AM,89360,6.0.81.69
File5=@msjtes40.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,8/4/04 12:56:44 AM,241693,4.0.8618.0
File6=@msrepl40.dll,$(WinSysPathSysFile),,,8/4/04 12:56:44 AM,552989,4.0.8015.0
File7=@msrd3x40.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,8/4/04 12:56:44 AM,315423,4.0.6508.0
File8=@msrd2x40.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,8/4/04 12:56:44 AM,421919,4.0.7328.0
File9=@mswdat10.dll,$(WinSysPathSysFile),,,8/4/04 12:56:46 AM,831519,4.0.6508.0
File10=@mswstr10.dll,$(WinSysPathSysFile),,,8/4/04 12:56:46 AM,614429,4.0.8905.0
File11=@expsrv.dll,$(WinSysPathSysFile),,,8/4/04 12:56:44 AM,380957,6.0.72.9589
File12=@vbajet32.dll,$(WinSysPathSysFile),,,8/4/04 12:56:48 AM,30749,6.0.1.9431
File13=@msjint40.dll,$(WinSysPathSysFile),,,8/4/04 12:56:44 AM,151583,4.0.8905.0
File14=@msjter40.dll,$(WinSysPathSysFile),,,8/4/04 12:56:44 AM,53279,4.0.6508.0
File15=@msjet40.dll,$(WinSysPathSysFile),$(DLLSelfRegister),,8/4/04 12:56:44 AM,1507356,4.0.8618.0
File16=@dao360.dll,$(MSDAOPath),$(DLLSelfRegister),$(Shared),8/4/04 12:56:44 AM,561179,3.60.8618.0
File17=@tabctl32.ocx,$(WinSysPath),$(DLLSelfRegister),$(Shared),3/9/04 12:00:00 AM,224016,6.1.97.82
File18=@RICHED32.DLL,$(WinSysPathSysFile),,,5/7/98 12:00:00 AM,174352,4.0.993.4
File19=@RICHTX32.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),3/9/04 12:00:00 AM,212240,6.1.97.82
File20=@MSCOMCTL.OCX,$(WinSysPath),$(DLLSelfRegister),$(Shared),3/9/04 12:00:00 AM,1081616,6.1.97.82
File21=@comdlg32.ocx,$(WinSysPath),$(DLLSelfRegister),$(Shared),3/9/04 12:00:00 AM,152848,6.1.97.82
File22=@MSVCRT.DLL,$(WinSysPathSysFile),,,2/17/04 12:00:00 AM,278581,6.0.9782.0
File23=@scrrun.dll,$(WinSysPath),$(DLLSelfRegister),$(Shared),8/4/04 12:56:46 AM,151552,5.6.0.8820
File24=@StackView.exe,$(AppPath),,,4/15/06 4:15:13 PM,6492160,5.0.0.0
 
I appreciate any help/illumination that you can provide. Thank you.
Nick

Randem

npudar,
 
Your understanding is incorrect. The information on how to use InnoScript is spelled very clearly in the instructions. It would be impossible for InnoScript to point to a location where the files were not found. There are several area in the manual that go into Safe/Unsafe mode.
 
Safe Mode as found in one area of the Manual:
 
Safe / UnSafe Mode
 
   In Safe mode, no files will be taken from the system folders. In Unsafe mode, files can be taken from anywhere (including the system folder). Future versions of Inno Setup may not allow unsafe file processing.
 
This mode is safety mechanism to help prevent you from crippling the computers that you deploy your completed installation package on. You can turn safe mode off to make sure you know what files belong in your installation, but you should turn it back on after you find out.
 
   This is just a prevention method to get your attention, to warn you that you could cause severe problems to the computers that you install your app on. You should however create another folder and add the safe version of these files to it. Even some of these files could be eliminated if you deploy service packs with your app, such as the JET engines and MDAC

npudar

I tried to run InnoScript with VBP, Normal Script, and Safe Mode.  Several of the generated .iss file lines pointed to files in directories that did not contain those files.  I went in manually to the .iss file and edited the path to the right directory. (Support)
 
I started off running the P&D Wizard to create the Support directory that would contain all of the potentially necessary files.  I assume that running in Safe Mode will generate a script of only the safe files.
 
I am assuming that I should include the path to the Support directory so that the files are found correctly.
 
Am I correct in the above assessments (particularly the part about Safe Mode processing)?
 
Thanks,
Nick