VB App distribution problem

Started by John Kim, March 17, 2004, 10:28:41 AM

Previous topic - Next topic

admin

Greg Lloyd,
 
Any file marked missing while in SAFE MODE should be because they are to be taken from the SYSTEM folders. This is not always a good chice to take them from there since some dll/ocx/exe from the system folder are Windows OS dependant and will corrupt another version of the Windows OS.
 
It is not your system that needs to be scrutinized, it is the deployment systems where the problems will occur if you take Win2K OS dependant files and install them on non Win2K machine.
 
You have to check the Microsoft website and see which files are installed with the OS and never deploy those files. Some files are installed with every OS and never need deployment. These files should be placed into your unsafe.fil file and InnoScript will automatically remove them each time.
 
Of course any file only deployed with VB6 should be re-deployed with your app. A copy of these files should be included in a seperate folder for control purposes in deployment.

Greg Lloyd (Unregistered Guest)

Thank you for InnoScript - it is great.
 
Just one question. When I run Innoscript in safe mode I get many missing files because VB6 installed most of the files (example msflxgrd.ocx) in the {win}\system32 folder.
 
Could you please comment on the log file contents in terms of safety. (My system is W2K and VB6 SP6)
 
Thanks.
 
[color=aa00aa]Randem Systems, Inc. - InnoScript - Version 2.3.9
 
 
9/06/2004 4:41:05 PM - Saving Settings... Please Wait
9/06/2004 4:41:05 PM -       Dependency File Processing
 
 
9/06/2004 4:41:05 PM - Procesing VB Runtime Files...
9/06/2004 4:41:05 PM -    MSVBVM60.DLL
9/06/2004 4:41:05 PM -    OLEAUT32.DLL
9/06/2004 4:41:05 PM -    OLEPRO32.DLL
9/06/2004 4:41:05 PM -    ASYCFILT.DLL
9/06/2004 4:41:05 PM -    STDOLE2.TLB
9/06/2004 4:41:05 PM -    COMCAT.DLL
9/06/2004 4:41:05 PM - Procesing Special Files...
9/06/2004 4:41:05 PM -    eAppointment.exe
9/06/2004 4:41:05 PM - Procesing VBP Project File...
9/06/2004 4:41:05 PM - eAppointment.exe   Dep - C:\My Documents\VB6_Current\eAppointment Jpeg\eAppointment.dep   
9/06/2004 4:41:05 PM - dao360.dll   Dep - C:\Program Files\InnoScript 2.3\VB6Dep.ini   
9/06/2004 4:41:05 PM -    MSJET40.DLL
9/06/2004 4:41:05 PM -    MSJTER40.DLL
9/06/2004 4:41:06 PM -    MSJINT40.DLL
9/06/2004 4:41:06 PM -    MSJTES40.DLL
9/06/2004 4:41:06 PM -    VB5DB.DLL
9/06/2004 4:41:06 PM - scrrun.dll   Dep - C:\WINNT\system32\scrrun.dep   
9/06/2004 4:41:06 PM -    MSVCRT.DLL
9/06/2004 4:41:06 PM - msstdfmt.dll   Dep - C:\WINNT\system32\msstdfmt.dep   
9/06/2004 4:41:06 PM - msflxgrd.ocx   Dep - C:\WINNT\system32\msflxgrd.dep   Microsoft FlexGrid Control 6.0 (SP6)
9/06/2004 4:41:06 PM - mscomct2.ocx   Dep - C:\WINNT\system32\mscomct2.dep   Microsoft Windows Common Controls-2 6.0 (SP6)
9/06/2004 4:41:06 PM - mscomctl.ocx   Dep - C:\WINNT\system32\mscomctl.dep   Microsoft Windows Common Controls 6.0 (SP6)
9/06/2004 4:41:07 PM - TABCTL32.OCX   Dep - C:\WINNT\system32\TABCTL32.dep   Microsoft Tabbed Dialog Control 6.0 (SP6)
9/06/2004 4:41:07 PM - MCI32.OCX   Dep - C:\WINNT\system32\MCI32.dep   Microsoft Multimedia Control 6.0 (SP3)
9/06/2004 4:41:07 PM - comdlg32.ocx   Dep - C:\WINNT\system32\comdlg32.dep   Microsoft Common Dialog Control 6.0 (SP6)
9/06/2004 4:41:07 PM -  
 
 Restart Dependency check for new items - 1
 
9/06/2004 4:41:07 PM - MSJET40.DLL   Dep - C:\Program Files\InnoScript 2.3\VB6Dep.ini   
9/06/2004 4:41:07 PM -    VBAJET32.DLL
9/06/2004 4:41:07 PM -    EXPSRV.DLL
9/06/2004 4:41:07 PM -    MSWSTR10.DLL
9/06/2004 4:41:07 PM -    MSWDAT10.DLL
9/06/2004 4:41:07 PM -    MSRD2X40.DLL
9/06/2004 4:41:07 PM -    MSRD3X40.DLL
9/06/2004 4:41:07 PM -    MSREPL40.DLL
9/06/2004 4:41:07 PM - MSJTER40.DLL   Dep - C:\Program Files\InnoScript 2.3\VB6Dep.ini   
9/06/2004 4:41:08 PM - MSJTES40.DLL   Dep - C:\Program Files\InnoScript 2.3\VB6Dep.ini   
9/06/2004 4:41:08 PM - VB5DB.DLL   Dep - C:\Program Files\InnoScript 2.3\VB6Dep.ini   
9/06/2004 4:41:08 PM -  
 
 Restart Dependency check for new items - 2
 
9/06/2004 4:41:08 PM - VBAJET32.DLL   Dep - C:\Program Files\InnoScript 2.3\VB6Dep.ini   
9/06/2004 4:41:08 PM - EXPSRV.DLL   Dep - C:\Program Files\InnoScript 2.3\VB6Dep.ini   
9/06/2004 4:41:08 PM - MSWSTR10.DLL   Dep - C:\Program Files\InnoScript 2.3\VB6Dep.ini   
9/06/2004 4:41:08 PM - MSWDAT10.DLL   Dep - C:\Program Files\InnoScript 2.3\VB6Dep.ini   
9/06/2004 4:41:08 PM - MSRD2X40.DLL   Dep - C:\Program Files\InnoScript 2.3\VB6Dep.ini   
9/06/2004 4:41:08 PM - MSRD3X40.DLL   Dep - C:\Program Files\InnoScript 2.3\VB6Dep.ini   
9/06/2004 4:41:08 PM - MSREPL40.DLL   Dep - C:\Program Files\InnoScript 2.3\VB6Dep.ini   
9/06/2004 4:41:08 PM - Creating Inno Setup File...
9/06/2004 4:41:08 PM -  
 
               Processed in UNSAFE file mode
 
               Files included in Script
 
          Version      OS       File
 
9/06/2004 4:41:08 PM -      6.0.97.82             Win32    C:\Program Files\InnoScript 2.3\VB6 Runtime\msvbvm60.dll
9/06/2004 4:41:08 PM -    2.40.4275.1          NT-Win32    C:\Program Files\InnoScript 2.3\VB6 Runtime\oleaut32.dll
9/06/2004 4:41:08 PM -     5.0.4275.1             Win32    C:\Program Files\InnoScript 2.3\VB6 Runtime\olepro32.dll
9/06/2004 4:41:08 PM -    2.40.4275.1          NT-Win32    C:\Program Files\InnoScript 2.3\VB6 Runtime\asycfilt.dll
9/06/2004 4:41:08 PM -    2.40.4275.1          NT-Win32    C:\Program Files\InnoScript 2.3\VB6 Runtime\stdole2.tlb
9/06/2004 4:41:08 PM -    4.71.1460.1          NT-Win32    C:\Program Files\InnoScript 2.3\VB6 Runtime\comcat.dll
9/06/2004 4:41:08 PM -        0.9.0.2             Win32    C:\My Documents\VB6_Current\eAppointment Jpeg\eappointment.exe
9/06/2004 4:41:08 PM -    3.60.6508.2          NT-Win32    C:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll
9/06/2004 4:41:08 PM -     4.0.7328.0          NT-Win32    C:\WINNT\system32\msjet40.dll
9/06/2004 4:41:08 PM -     4.0.6508.0          NT-Win32    C:\WINNT\system32\msjter40.dll
9/06/2004 4:41:09 PM -     4.0.6508.0          NT-Win32    C:\WINNT\system32\msjint40.dll
9/06/2004 4:41:09 PM -     4.0.7328.0          NT-Win32    C:\WINNT\System32\msjtes40.dll
9/06/2004 4:41:09 PM -      6.0.81.69          NT-Win32    C:\WINNT\system32\vb5db.dll
9/06/2004 4:41:09 PM -     5.6.0.6626             Win32    C:\WINNT\system32\scrrun.dll
9/06/2004 4:41:09 PM -  
 
* * * * * msvcrt.dll Deleted from script - UnSafe File * * * * *
 
9/06/2004 4:41:09 PM -      6.1.97.82          NT-Win32    C:\WINNT\system32\msstdfmt.dll
9/06/2004 4:41:09 PM -      6.1.97.82          NT-Win32    C:\WINNT\System32\msflxgrd.ocx
9/06/2004 4:41:09 PM -      1.0.0.213             Win32    C:\My Documents\VB Bits\Buttons_Cool_Dynamic\coolbutton.ocx
9/06/2004 4:41:09 PM -      6.1.97.82          NT-Win32    C:\WINNT\System32\mscomct2.ocx
9/06/2004 4:41:09 PM -      6.1.97.82          NT-Win32    C:\WINNT\System32\mscomctl.ocx
9/06/2004 4:41:09 PM -      6.1.97.82          NT-Win32    C:\WINNT\System32\tabctl32.ocx
9/06/2004 4:41:09 PM -      6.0.84.18          NT-Win32    C:\WINNT\System32\mci32.ocx
9/06/2004 4:41:09 PM -      6.1.97.82         DOS-Win32    C:\WINNT\System32\comdlg32.ocx
9/06/2004 4:41:09 PM -     6.0.1.9431             Win32    C:\WINNT\system32\vbajet32.dll
9/06/2004 4:41:09 PM -    6.0.72.9589             Win32    C:\WINNT\system32\expsrv.dll
9/06/2004 4:41:09 PM -     4.0.6508.0          NT-Win32    C:\WINNT\system32\mswstr10.dll
9/06/2004 4:41:09 PM -     4.0.6508.0          NT-Win32    C:\WINNT\system32\mswdat10.dll
9/06/2004 4:41:09 PM -     4.0.7328.0          NT-Win32    C:\WINNT\system32\msrd2x40.dll
9/06/2004 4:41:09 PM -     4.0.6508.0          NT-Win32    C:\WINNT\system32\msrd3x40.dll
9/06/2004 4:41:09 PM -     4.0.6726.0          NT-Win32    C:\WINNT\system32\msrepl40.dll
9/06/2004 4:41:09 PM - Translating parameters...
9/06/2004 4:41:09 PM - Saving Inno Setup file... Please Wait
9/06/2004 4:41:09 PM -  
 
 
Script created: C:\My Documents\VB6_Current\eAppointment Jpeg\Inno Setup\eAppointment.iss
 
Number of files found: 29
Number of files not found: 0   (Shown in Red)
Number of files deleted: 1
Elapsed Time: 00:00:04
 
WARNING: UNSAFE FILES MAY BE IN THIS SCRIPT
 
Please view the log for more details on your files
[/color]

Admin

John Kim
 
Running InnoScript against the VBP file would find the same dependencies if the search path has all the paths to search for the dependencies. This is controlable to limit/expand where InnoScript will search for files (for speed). You do not need PDW at all if you use the correct search paths.

John Kim


John Kim

I run the InnoScript against MS PDW file and found new dependency on DAO350. DAO350 need vb5db.dll.  After I include these DLLs. The problem was resolved.   By the way, I need MSJET35.DLL since I used Access97 DB.
 
InnoScript and InnoSetup are great tools!
In my experience, should use together with PDW since PDW has accurate dependency information.
 
You guys are great!!!!
 
Thanks,
John

Admin

John Kim  
 
If you want DAO350 to be picked up by InnoScript you will have to reference it in your project. once DAO350 is referenced in your project the jet engines that are dependencies of DAO350 will be picked up.
 
I do not see why you would need MSJET35.DLL unless you are accessing an Access 97 database.
 
The other two files you might want to check on the microsoft website to see if those two files should be deployed.

John Kim

Hello,
 
I need a help.
 
I developed an application using VB6 and Access 97 DB, and implemented report  
module using Crystal Report 4.6(comes with VB6 package).  On a development  
machine(MS XP), everything worked fine including CR preview and printing as well  
as DB activities.  So using InnoSetup and InnoScript, I made a distribution  
package including runtime files for VB and CR (I included your  
VB_DCOM_MDAC_JET_Autosetup file to take care of database access runtime files),  
and tried on a FRESH XP machine(i.e., factory setting. I call test machine).  
All DB activities worked fine but CR had problems.  Right after  
CrystalReport1.Action = 1 is executed, series of run time error reports popped  
up:
     - CAN NOT CREATE DAO DBEngine
     - Error 20534: Error detected by  database DLL
 
My findings are:
 - On a test machine, after the error occured, if I install VB6 CD, everything  
worked fine (note that VB6 was just installed not executed)
 - Compared the DLLs loaded on the momory, before VB6 was not installed and  
after the VB6 was installed, found that the following 4 DLLs were missing in the  
NON-WORKING case:
 
    DAO350.DLL, MSJET35.DLL, MSVCIRT.DLL, MSVCRT40.DLL
 
But these files were in the system before or after VB6 was installed.
For some reason, these files were loaded if VB6 was installed. But I
don't know why these were not loaded, and how can I fix this without installing  
VB6 on a client machine.
 
Please let me know if you can resolve this issue.
 
 
Thanks,
John