ancientcontra
Posts: 11
Score: 0 Joined: 9/13/2005 Status: offline
|
The problem is that i need to know how to run the inf files from within the cab file, as well as call the other cab files inf files cryviewer.inf calls atl.ing calls mfc42.inf I need an msi that has all of the possible dependent files and knows how to regester them with clsid's using wise package studio and I also have visual studio installer (vb6) I understand i can use regsrv32.dll to run the inf files in an msi context. can anyone tell me how to run these inf files from within an MSI created with wise packge studio ?? [version] ; version signature (same for both NT and Win95) do not remove signature="$CHICAGO$" AdvancedINF=2.0 [Add.Code] swebrs.dll=swebrs.dll sviewhlp.dll=sviewhlp.dll CRViewer.dll=CRViewer.dll reportparameterdialog.dll=reportparameterdialog.dll crsmarttag.dll=crsmarttag.dll atl.dll=atl.dll mfc42.dll=mfc42.dll msvcrt.dll=msvcrt.dll olepro32.dll=olepro32.dll cselexpt.ocx=cselexpt.ocx ; These are the necessary supporting DLLs for MFC 4.2 ActiveX Controls ; thiscab is a keyword which, in this case, means that Spindial.ocx ; can be found in the same .cab file as this .inf file ; file-win32-x86 is an x86 platform specific identifier ; See the ActiveX SDK - ActiveX Controls - Internet Component Download - ; Packaging component code for automatic download [swebrs.dll] file-win32-x86=thiscab ; *** add your controls CLSID here *** CLSID={F2CA2115-C8D2-11D1-BEBD-00A0C95A6A5C} ; Add your ocx's file version here. FileVersion=8,6,1,758 RegisterServer=yes [sviewhlp.dll] file-win32-x86=thiscab ; *** add your controls CLSID here *** CLSID={BD10A9C1-07CC-11D2-BEFF-00A0C95A6A5C} ; Add your ocx's file version here. FileVersion=8,6,1,758 RegisterServer=yes [CRViewer.dll] file-win32-x86=thiscab ; *** add your controls CLSID here *** CLSID={C4847596-972C-11D0-9567-00A0C9273C2A} ; Add your ocx's file version here. FileVersion=8,6,1,758 RegisterServer=yes [reportparameterdialog.dll] file-win32-x86=thiscab ; *** add your controls CLSID here *** CLSID={B9BE4CB0-3A20-11D3-A5F0-00A0C9A40F1D} ; Add your ocx's file version here. FileVersion=8,5,0,1314 RegisterServer=yes [crsmarttag.dll] file-win32-x86=thiscab ; *** add your controls CLSID here *** CLSID={34C28AD5-A1A6-4674-A5A6-D0ADDAC476A5} ; Add your ocx's file version here. FileVersion=8,6,1,758 RegisterServer=yes [atl.dll] ; This is the version of atl.dll that shipped with VS 6.0 SP3 ; If a newer version is available, update the version number here FileVersion=3,0,8168,0 ; This is an example of conditional hook. The hook only gets processed ; if atl.dll of the specified version is absent on client machine. hook=ATLinstaller [ATLinstaller] file-win32-x86=http://activex.microsoft.com/controls/vc/atl.cab ; The atl.cab file actually contains a self extracting executable. ; In this case we specify a run= command run=%EXTRACT_DIR%\atl.exe [msvcrt.dll] ; This is an example of conditional hook. The hook only gets processed ; if msvcrt.dll of the specified version is absent on client machine. FileVersion=4,20,0,6164 hook=mfc42installer [mfc42.dll] FileVersion=4,2,0,6256 hook=mfc42installer [olepro32.dll] FileVersion=4,2,0,6068 hook=mfc42installer [mfc42installer] file-win32-x86=http://activex.microsoft.com/controls/vc/mfc42.cab ; If dependent DLLs are packaged directly into the above cabinet file ; along with an .inf file, specify that .inf file to run as follows: ;InfFile=mfc42.inf ; The mfc42.cab file actually contains a self extracting executable. ; In this case we specify a run= command. run=%EXTRACT_DIR%\mfc42.exe [cselexpt.ocx] file-win32-x86=thiscab ; *** add your controls CLSID here *** CLSID={5C9EA134-127A-11D1-BFB4-00A0C936E6F9} ; Add your ocx's file version here. FileVersion=8,6,1,221 RegisterServer=yes ; ====================== end of crviewer.inf ===================== ;==========================atl.inf============================== ;This file controls the installation of the ansi version of atl.dll. [version] ; version signature (same for NT and Win95) do not remove signature="$CHICAGO$" AdvancedINF=2.0 [SourceDisksNames] ;This section specifies that all sources are in the "default" location 1="default",,1 [SourceDisksFiles] atl.dll=1 ;install section for WinNT [DefaultInstall.NT] Copyfiles=atldllfilesNT RegisterOCXs=atldllregister ;install section for Win95 [DefaultInstall] Copyfiles=atldllfiles RegisterOCXs=atldllregister [DestinationDirs] ; Destination directory for CopyFiles Sections. atldllfiles=11 atldllfilesNT=11 [atldllfilesNT] atl.dll,atlw.dll,,32 [atldllfiles] atl.dll,atla.dll,,32 [atldllregister] %11%\atl.dll ;==========================atl.inf============================== ; ========================= Mfc42.inf ========================= ; This file will control the download of the MFC 4.2 DLLs ; that MFC controls depend on. [version] ; version signature (same for both Nt and Win95) do not remove signature="$CHICAGO$" AdvancedINF=2.0 [SourceDisksNames] ; This section specifies that all sources are in the "default" location. 1="default",,1 [DefaultInstall] ; Default section to process and copy all files under the section ; mfcdllsx.files and Register DLLs under the section mfcdllsx.register. CopyFiles=mfcdllsx.files RegisterOCXs=mfcdllsx.register [DestinationDirs] ; Destination Directories for CopyFiles Sections. ; 11 indicates LDID_SYS - system directory mfcdllsx.files=11 [mfcdllsx.files] ; ,,,32 - Suppress version conflict dialog and don't overwrite newer ; DLLs msvcrt.dll,,,32 mfc42.dll,,,32 olepro32.dll,,,32 [mfcdllsx.register] ; msvcrt.dll is not self registering %11%\mfc42.dll %11%\olepro32.dll
|