home *** CD-ROM | disk | FTP | other *** search
/ c't freeware shareware 1997 / CT_SW_97.ISO / mac / Software / entwickl / win95 / vb5ccein.exe / RCDATA / CABINET / Vb5cce.inf < prev    next >
Windows Setup INFormation  |  1997-02-28  |  11KB  |  450 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9.  
  10.  
  11. ; VB 5.0 Control Creation Edition Setup
  12.  
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19.  
  20.  
  21.  
  22. [Version]
  23. AdvancedInf=2.5, "You need a newer version of AdvPack.Dll to run Setup"
  24. Signature="$CHICAGO$"
  25.  
  26. [DefaultInstall]
  27. DelFiles=DelOldVB5CCE.EXE
  28. CopyFiles=AppFiles,OfficeFiles,InfDirFiles,SysDirFiles,FontDirFiles,TemplateProjects,TemplateCtlGroup,Wizards,Samples,SampleAXButton,SampleAXLstPik,SampleAXMarquis,SetupkitSetup1,SetupkitKitfil32,SetupkitKitfil32Sys32
  29. CustomDestination   =   InstallCustomDestination
  30. AddReg              =   AddRegSection, RegLicenseKeys, RenameFiles
  31. RegisterOCXs        =   SelfRegisterSection
  32. UpdateInis          =   InstallProgramGroup,MergeVBADDIN.INI
  33.  
  34. [Uninstall]
  35. ;Don't remove font, only remove some files from the sys directory
  36. CustomDestination   =   UninstallDestination
  37. DelFiles=AppFiles,InfDirFiles,DelSysDirFiles,TemplateProjects,TemplateCtlGroup,Samples,SampleAXButton,SampleAXLstPik,SampleAXMarquis,SetupkitSetup1,SetupkitKitfil32,SetupkitKitfil32Sys32
  38.  
  39.  
  40.  
  41. DelReg              =   DelRegSection
  42. UpdateInis          =   UninstallProgramGroup
  43.  
  44. BeginPrompt         =   BeginPromptSection
  45. EndPrompt           =   EndPromptSection
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. [BeginPromptSection]
  65. Prompt="%BeginPrompt%"
  66. ButtonType=YESNO
  67. Title=%AppName%
  68.  
  69. [EndPromptSection]
  70. Prompt="%EndPrompt%"
  71.  
  72. [DestinationDirs]
  73. ; Here we always use the LDID OEM SFN for custom LDID's so we work on Win95
  74. AppFiles=49000        ; Custom directory chosen by user
  75. OfficeFiles=49300       ; progra~1\common~1\microsof~1\vba
  76. InfDirFiles=17          ; 17 - \Windows\INF directory
  77. SysDirFiles=11        ; 11 - Copies to the system directory
  78. DelSysDirFiles=11
  79. FontDirFiles=20        ; 20 - Copies to \Windows\Fonts directory
  80. WinDirFiles=25          ; 25 - Copies to \Windows directory
  81. TemplateProjects=49000,Template\Projects
  82. TemplateCtlGroup=49000,Template\CtlGroup
  83. Wizards=49000,Wizards
  84. Samples=49000,Samples
  85. SampleAXButton=49000,Samples\AXButton
  86. SampleAXLstPik=49000,Samples\AxLstPik
  87. SampleAXMarquis=49000,Samples\AXMrquee
  88. SetupkitSetup1=49000,SetupKit\Setup1
  89. SetupkitKitfil32=49000,SetupKit\KitFil32
  90. SetupkitKitfil32Sys32=49000,SetupKit\KitFil32\Sys32
  91. DelOldVB5CCE.EXE=49000
  92.  
  93. [InfDirFiles]
  94. vb5cce.inf
  95.  
  96. [SysDirFiles]   ;Copy the following files to the system directory.
  97.  
  98. regsvr32.exe,,,32       ;General files
  99. riched20.dll,,,32       ;Office files
  100. asycfilt.dll,,,32       ;OLE files
  101. comcat.dll,,,32
  102. oleaut32.dll,,,32
  103. stdole2.tlb,,,32
  104. msvcrt40.dll,,,32
  105. msvbvm50.dll,,,32       ;VB Runtime
  106. comdlg32.ocx,,,32       ;For Wizards
  107. comctl32.ocx,,,32       ;For Wizards
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115. msstkprp.dll,,,32       ;For Controls
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126. commtb32.dll,,,32       ;Office file
  127. vb5db.dll,,,32 
  128. scp32.dll,,,32 
  129. tlbinf32.dll,,,32 
  130.  
  131. hlp95en.dll,,,32
  132.  
  133.  
  134.  
  135. ;For Uninstall we only remove these files from the system directory
  136. [DelSysDirFiles]
  137.  
  138.  
  139.  
  140.  
  141.  
  142.  
  143.  
  144. [AppFiles]
  145. vb5cce.exe              ;VB IDE files
  146.  
  147.  
  148.  
  149.  
  150. vb5idecc.dll
  151. vb5.olb
  152. vba5.dll        ;VBA IDE files
  153. link.exe                ;PCode generation files
  154. mspdb41.dll
  155. ccreadme.hlp
  156. ccreadme.cnt
  157. license.txt
  158. redist.txt
  159.  
  160.  
  161.  
  162.  
  163.  
  164.  
  165.  
  166. [DelOldVB5CCE.EXE]
  167. vb5cce.exe
  168.  
  169. [OfficeFiles]
  170. mso97rt.dll,,,32    ;Office files
  171. Mrt7ENU.dll,,,32
  172.  
  173. [FontDirFiles]
  174. tahoma.ttf,,,16         ;Not versioned so don't copy if exists
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182. [TemplateProjects]
  183. CtlGroup.vbg
  184.  
  185. [TemplateCtlGroup]
  186. Form1.frm
  187. Project1.vbp
  188. Project2.vbp
  189. UserCtl1.ctl
  190. UserCtl1.ctx
  191.  
  192. [Wizards]
  193. ctrlwiz.dll
  194. proppgwz.dll
  195.  
  196. [Samples]
  197.  
  198. [SampleAXButton]
  199. AXButton.ctl
  200. AXButton.ctx
  201. AXButton.vbp
  202.  
  203. [SampleAXLstPik]
  204. AXLstPik.ctl
  205. AxLstPik.ctx
  206. AXLstPik.pag
  207. AXLstPik.pgx
  208. AXLstPik.vbp
  209. Test.frm
  210. TestGrp.vbg
  211. Test.vbp
  212.  
  213. [SampleAXMarquis]
  214. AXMrquee.vbg
  215. AXMrquee.vbp
  216. BKGNDCOL.BMP
  217. caps.bmp
  218. frmTest.frm
  219. frmTest.frx
  220. Global.bas
  221. MarqTest.vbp
  222. Marquee.ctl
  223. Marquee.ctx
  224. OCXICON.BMP
  225. proppg.pag
  226. AXMrquee.htm
  227.  
  228. [SetupkitSetup1]
  229. setup1.exe
  230.  
  231. [SetupkitKitfil32]
  232. setup.exe
  233. setupwiz.exe
  234. st5unst.exe
  235. vb5stkit.dll
  236. vbskco32.dll
  237. MakeCab.exe
  238. vb5dep.ini
  239.  
  240.  
  241. [SetupkitKitfil32Sys32]
  242. asycfilt.dll
  243. ctl3d32.dll,ctl3dNT.dll 
  244. oleaut32.dll
  245. olepro32.dll
  246.  
  247. stdole2.tlb
  248. msvcrt40.dll
  249.  
  250.  
  251.  
  252.  
  253. ;End of File copy/delete sections
  254.  
  255. ;Create links in the StartMenu/Programs folder
  256. [InstallProgramGroup]
  257. setup.ini, progman.groups,, "vbfolder="""%ShortAppName%""""
  258. setup.ini, vbfolder,, """%ShortAppName%"",          """"""%49000%\vb5cce.exe"""""",,,,%49000%"
  259. setup.ini, vbfolder,, """%SetupWizardShortcut%"",""""""%49000%\SetupKit\Kitfil32\setupwiz.exe"""""",,,,%49000%"
  260. setup.ini, vbfolder,, """%ReadMeShortcut%"",                  """"""%49000%\ccreadme.hlp"""""",,,,%49000%"
  261.  
  262. [UninstallProgramGroup]
  263. setup.ini, progman.groups,, "vbfolder="""%ShortAppName%""""
  264. setup.ini, vbfolder,, """%ShortAppName%"""
  265. setup.ini, vbfolder,, """%SetupWizardShortcut%"""
  266. setup.ini, vbfolder,, """%ReadMeShortcut%"""
  267.  
  268. [SelfRegisterSection]
  269. %11%\comcat.dll
  270. %11%\oleaut32.dll
  271. %11%\msvbvm50.dll
  272. %11%\comdlg32.ocx
  273. %11%\comctl32.ocx
  274. %11%\msstkprp.dll
  275. %11%\tlbinf32.dll 
  276. %49000%\Wizards\ctrlwiz.dll
  277. %49000%\Wizards\proppgwz.dll
  278.  
  279.  
  280.  
  281.  
  282.  
  283.  
  284.  
  285.  
  286. ; add license keys for ole controls
  287. [RegLicenseKeys]
  288.  
  289.  
  290.  
  291.  
  292.  
  293.  
  294.  
  295.  
  296.  
  297.  
  298. HKCR,"Licenses",,,"Licensing: Copying the keys may be a violation of established copyrights."
  299.  
  300.  
  301. HKCR,"Licenses\4D553650-6ABE-11cf-8ADB-00AA00C00905",,2,"gfjmrfkfifkmkfffrlmmgmhmnlulkmfmqkqj"
  302.  
  303. HKCR,"Licenses\57CBF9E0-6AA7-11cf-8ADB-00AA00C00905",,2,"aahakhchghkhfhaamghhbhbhkbpgfhahlfle"
  304.  
  305. HKCR,"Licenses\06BE90B0-2D30-11d0-9441-00A0C90F26F1",,2,"kjjqnqqqyqjjuqmqwkmqnqmjwkvkojojwowk"
  306.  
  307. [AddRegSection]
  308. ; <root-key>,<sub-key>,<value-name>,<flag>,<value>
  309. ; flags - 0 - ANSI,replace, 1 - HEX,Replace, 2 - ANSI,No Replace, 3 - HEX,No Replace
  310. ; For registry entries we always use the LFN LDID
  311. ; Register custom install directory
  312. HKLM,%AppKey%,InstallDir,0,%49001%
  313. ;Register Office runtime files
  314. HKLM,"Software\Microsoft\Shared Tools\MSO97RT","Path",2,"%49301%\MSO97RT.DLL"
  315. HKLM,"Software\Microsoft\Shared Tools\MSO97RT\Clients","%49001%\vb5cce.exe",0
  316. HKLM,"Software\Microsoft\Shared Tools\%FILE_MSORT_LOC_NOEXT%","Path",2,"%49301%\%FILE_MSORT_LOC%"
  317. HKLM,"Software\Microsoft\Shared Tools\%FILE_MSORT_LOC_NOEXT%\Clients","%49001%\vb5cce.exe",0
  318. ; Register for uninstall
  319. HKLM,%AppUninstallKey%,"DisplayName",,"%AppName%"
  320. HKLM,%AppUninstallKey%,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\vb5cce.inf, Uninstall"
  321. ; App Paths
  322. HKLM,"Software\Microsoft\Windows\CurrentVersion\App Paths\VB5CCE.EXE",,,"%49000%\VB5CCE.EXE"
  323.  
  324.  
  325.  
  326.  
  327. HKCR,"CLSID\{0BE35203-8F91-11CE-9DE3-00AA004BB851}",,2,"Standard Font"
  328. HKCR,"CLSID\{0BE35203-8F91-11CE-9DE3-00AA004BB851}\InprocServer32",,2,"oleaut32.dll"
  329. HKCR,"CLSID\{0BE35204-8F91-11CE-9DE3-00AA004BB851}",,2,"Standard Picture"
  330. HKCR,"CLSID\{0BE35204-8F91-11CE-9DE3-00AA004BB851}\InprocServer32",,2,"oleaut32.dll"
  331.  
  332. [DelRegSection]
  333. ; <reg-root>,<subkey>,<value-name>
  334. ;Remove app key
  335. HKLM,%AppKey%
  336. ;Remove Uninstall key
  337. HKLM,%AppUninstallKey%
  338. ;Remove ourselves from Office runtime file keys
  339. HKLM,"Software\Microsoft\Shared Tools\MSO97RT\Clients","%49001%\vb5cce.exe",0
  340. HKLM,"Software\Microsoft\Shared Tools\%FILE_MSORT_LOC_NOEXT%\Clients","%49001%\vb5cce.exe",0
  341. ; App Paths
  342. HKLM,"Software\Microsoft\Windows\CurrentVersion\App Paths\VB5CCE.EXE",,,"%49000%\VB5CCE.EXE"
  343.  
  344. HKCR,"Licenses\06BE90B0-2D30-11d0-9441-00A0C90F26F1",,2,"kjjqnqqqyqjjuqmqwkmqnqmjwkvkojojwowk"
  345.  
  346.  
  347.  
  348.  
  349.  
  350.  
  351.  
  352.  
  353.  
  354.  
  355.  
  356.  
  357.  
  358.  
  359.  
  360. [MergeVBADDIN.INI]
  361.  
  362. vbaddin.ini,Add-Ins32,, "PropertyPageWizard.Wizard=0"
  363. vbaddin.ini,Add-Ins32,, "ControlWiz.Wizard=0"
  364.  
  365.  
  366.  
  367. ; Query user for a custom app install directory.  This value is persisted in the registry
  368. ; in AddRegSection
  369. [InstallCustomDestination]
  370. ; <LDID OEM SFN>,<LDID ANSI LFN>=<Section Name>,<Flag>
  371. ; flag 5 means don't prompt the user
  372. 49100,49101=ProgramFilesDir,5
  373. 49200,49201=CommonFilesDir,5
  374. 49300,49301=MicrosoftSharedVBADir,5
  375. ; Custom app directory, flag 1 means prompt user
  376. 49000,49001=AppCustomDestination,1
  377.  
  378. [ProgramFilesDir]
  379. HKLM,"Software\Microsoft\Windows\CurrentVersion",'ProgramFilesDir',,"%24%\%DefProgramFilesDir%"
  380.  
  381. [CommonFilesDir]
  382. HKLM,"Software\Microsoft\Windows\CurrentVersion",'CommonFilesDir',,"%49101%\%DefCommonFilesDir%"
  383.  
  384. [MicrosoftSharedVBADir]
  385. ;The reg key is bogus.  This is done simply to compose the custom LDID.
  386. HKLM,"This\Will\Fail",'CommonFilesDir',,"%49201%\%MSSharedVBA%"
  387.  
  388. [AppCustomDestination]
  389. HKLM,"%AppKey%",'InstallDir',%DirectoryPrompt%,"%49101%\%DefaultDir%"
  390.  
  391. ; Get app directory for uninstall from the registry
  392. [UninstallDestination]
  393. ; <LDID OEM SFN>,<LDID ANSI LFN>=<Section Name>,<Flag>
  394. 49000,49001=UninstallDestination49000,5
  395.  
  396. [UninstallDestination49000]
  397. 'HKLM',%AppKey%,'InstallDir','',''
  398.  
  399. [RenameFiles]
  400.  
  401. HKLM,%strRegKey.RenameFiles%\VB5CCE1,,,"%49000%\Template\Projects"
  402. HKLM,%strRegKey.RenameFiles%\VB5CCE1,CtlGroup.vbg,,%FileName.CtlGroup.vbg%
  403.  
  404. HKLM,%strRegKey.RenameFiles%\VB5CCE2,,,"%49000%\Template\CtlGroup"
  405. HKLM,%strRegKey.RenameFiles%\VB5CCE2,Form1.frm,,%FileName.Form1.frm%
  406. HKLM,%strRegKey.RenameFiles%\VB5CCE2,Project1.vbp,,%FileName.Project1.vbp%
  407. HKLM,%strRegKey.RenameFiles%\VB5CCE2,Project2.vbp,,%FileName.Project2.vbp%
  408. HKLM,%strRegKey.RenameFiles%\VB5CCE2,UserCtl1.ctl,,%FileName.UserCtl1.ctl%
  409. HKLM,%strRegKey.RenameFiles%\VB5CCE2,UserCtl1.ctx,,%FileName.UserCtl1.ctx%
  410.  
  411.  
  412. ; Without this section you get an error on Win95 that it
  413. ; can't find the files (even though it just unpacked them!)
  414. [SourceDisksNames]
  415. 1 = %AppName%,,1
  416.  
  417.  
  418.  
  419. [Strings]
  420. AppName             = "Visual Basic 5.0 Control Creation Edition"
  421. ShortAppName        = "Visual Basic 5.0 CCE"
  422. SetupWizardShortcut = "Application Setup Wizard"
  423. ReadMeShortcut      = "ReadMe"
  424. BeginPrompt     =   "Are you sure you want to remove Visual Basic 5.0 CCE?"
  425. EndPrompt       =   "Visual Basic 5.0 CCE successfully removed."
  426. DirectoryPrompt =   "Where would you like to copy the Visual Basic 5.0 CCE files?"
  427. DefProgramFilesDir  = "Program Files"
  428. DefCommonFilesDir   = "Common Files"
  429.  
  430. ; Final installation filenames for CtlGroup.vbg sources (localized)
  431. FileName.CtlGroup.vbg = "CtlGroup.vbg"
  432. FileName.Form1.frm    = "Form1.frm"
  433. FileName.Project1.vbp = "Project1.vbp"
  434. FileName.Project2.vbp = "Project2.vbp"
  435. FileName.UserCtl1.ctl = "UserCtl1.ctl"
  436. FileName.UserCtl1.ctx = "UserCtl1.ctx"
  437.  
  438.  
  439.  
  440. ; Reg keys
  441. AppKey              = "SOFTWARE\Microsoft\VB5CCE"
  442. AppUninstallKey     = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VB5CCE"
  443. WindowsKey          = "SOFTWARE\Microsoft\Windows\CurrentVersion"
  444. strRegKey.RenameFiles = "SOFTWARE\Microsoft\Windows\CurrentVersion\RenameFiles"
  445. ; Directories
  446. DefaultDir  =   "VB5CCE"
  447. MSSharedVBA =   "Microsoft Shared\VBA"
  448. FILE_MSORT_LOC = Mrt7ENU.dll
  449. FILE_MSORT_LOC_NOEXT = Mrt7ENU
  450.