home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 December / WIN95_DEC_1996_2.ISO / htmlmisc / vb5ccein.exe / RCDATA / CABINET / Vb5cce.inf < prev    next >
INI File  |  1996-10-25  |  9KB  |  311 lines

  1. ; VB 5.0 Control Creation Setup
  2.  
  3. [Version]
  4. AdvancedInf=2.5, "You need a newer version of AdvPack.Dll to run Setup"
  5. Signature="$CHICAGO$"
  6.  
  7. [DefaultInstall]
  8. CopyFiles=AppFiles,AppHelpFiles,OfficeFiles,InfDirFiles,SysDirFiles,FontDirFiles,WinDirFiles,TemplateProjects,TemplateCtlGroup,Wizards,Samples,SampleAXButton,SampleAXLstPik,SampleAXMarquis,SetupkitSetup1,SetupkitKitfil32,SetupkitKitfil32Sys32
  9. CustomDestination   =   InstallCustomDestination
  10. AddReg              =   AddRegSection, RegLicenseKeys
  11. RegisterOCXs        =   SelfRegisterSection
  12. UpdateInis          =   InstallProgramGroup
  13.  
  14. [Uninstall]
  15. ;Don't remove font, only remove some files from the sys directory
  16. DelFiles=AppFiles,InfDirFiles,DelSysDirFiles,WinDirFiles,TemplateProjects,TemplateCtlGroup,Wizards,Samples,SampleAXButton,SampleAXLstPik,SampleAXMarquis,SetupkitSetup1,SetupkitKitfil32,SetupkitKitfil32Sys32
  17. CustomDestination   =   UninstallDestination
  18. DelReg              =   DelRegSection
  19. UpdateInis          =   UninstallProgramGroup
  20. UnRegisterOCXs      =   SelfUnregisterSection
  21. BeginPrompt         =   BeginPromptSection
  22. EndPrompt           =   EndPromptSection
  23.  
  24. [BeginPromptSection]
  25. Prompt="%BeginPrompt%"
  26. ButtonType=YESNO
  27. Title=%AppName%
  28.  
  29. [EndPromptSection]
  30. Prompt="%EndPrompt%"
  31.  
  32. [DestinationDirs]
  33. ; Here we always use the LDID OEM SFN for custom LDID's so we work on Win95
  34. AppFiles=49000        ; Custom directory chosen by user
  35. AppHelpFiles=49000
  36. OfficeFiles=49300       ; progra~1\common~1\microsof~1\vba
  37. InfDirFiles=17          ; 17 - \Windows\INF directory
  38. SysDirFiles=11        ; 11 - Copies to the system directory
  39. DelSysDirFiles=11
  40. FontDirFiles=20        ; 20 - Copies to \Windows\Fonts directory
  41. WinDirFiles=25          ; 25 - Copies to \Windows directory
  42. TemplateProjects=49000,Template\Projects
  43. TemplateCtlGroup=49000,Template\CtlGroup
  44. Wizards=49000,Wizards
  45. Samples=49000,Samples
  46. SampleAXButton=49000,Samples\AXButton
  47. SampleAXLstPik=49000,Samples\AxLstPik
  48. SampleAXMarquis=49000,Samples\AXMrquee
  49. SetupkitSetup1=49000,SetupKit\Setup1
  50. SetupkitKitfil32=49000,SetupKit\KitFil32
  51. SetupkitKitfil32Sys32=49000,SetupKit\KitFil32\Sys32
  52.  
  53. [InfDirFiles]
  54. vb5cce.inf
  55.  
  56. [SysDirFiles]   ;Copy the following files to the system directory.
  57. regsvr32.exe,,,32       ;General files
  58. riched20.dll,,,32       ;Office files
  59. asycfilt.dll,,,32       ;OLE files
  60. comcat.dll,,,32
  61. oleaut32.dll,,,32
  62. stdole2.tlb,,,32
  63. msvcrt40.dll,,,32
  64. msvbvm50.dll,,,32       ;VB Runtime
  65. comdlg32.ocx,,,32       ;For Wizards
  66. comctl32.ocx,,,32       ;For Wizards
  67. msstkprp.dll,,,32       ;For Controls
  68. ComDlg32.DEP,,,16       ;For Setup Wizard
  69. ComCtl32.DEP,,,16       ;For Setup Wizard
  70. commtb32.dll,,,32       ;Office file
  71.  
  72. ;For Uninstall we only remove these files from the system directory
  73. [DelSysDirFiles]
  74. ComDlg32.DEP,,,16       ;For Setup Wizard
  75. ComCtl32.DEP,,,16       ;For Setup Wizard
  76.  
  77. [AppFiles]
  78. vb5cce.exe              ;VB IDE files
  79. vb5idecc.dll
  80. vb5db.dll
  81. oles.tlb
  82. vb5.olb
  83. scp32.dll               ;VBA IDE files
  84. vba5.dll
  85. link.exe                ;PCode generation files
  86. mspdb41.dll             
  87. readme.rtf
  88.  
  89. [AppHelpFiles]
  90. pss.hlp
  91. pss.cnt
  92.  
  93. [OfficeFiles]
  94. mso97rt.dll,,,32    ;Office files
  95. mrt7enu.dll,,,32
  96.  
  97. [FontDirFiles]
  98. tahoma.ttf,,,16         ;Not versioned so don't copy if exists
  99.  
  100. ;Currently we also uninstall vbaddin.ini
  101. [WinDirFiles]
  102. vbaddin.ini
  103.  
  104. [TemplateProjects]
  105. CtlGroup.vbg
  106.  
  107. [TemplateCtlGroup]
  108. Form1.frm
  109. Project1.vbp
  110. Project2.vbp
  111. UserCtl1.ctl
  112. UserCtl1.ctx
  113.  
  114. [Wizards]
  115. ctrlwiz.dll
  116. proppgwz.dll
  117. tlbinf32.dll
  118.  
  119. [Samples]
  120. AXMrquee.htm           ;from Marquis sample directory
  121.  
  122. [SampleAXButton]
  123. AXButton.ctl
  124. AXButton.ctx
  125. AXButton.vbp
  126.  
  127. [SampleAXLstPik]
  128. AXLstPik.ctl
  129. AxLstPik.ctx
  130. AXLstPik.pag
  131. AXLstPik.pgx
  132. AXLstPik.vbp
  133. Test.frm
  134. Group1.vbg
  135. Test.vbp
  136.  
  137. [SampleAXMarquis]
  138. AXMrquee.vbg
  139. AXMrquee.vbp
  140. BKGNDCOL.BMP
  141. caps.bmp
  142. frmTest.frm
  143. frmTest.frx
  144. Global.bas
  145. MarqTest.vbp
  146. Marquee.ctl
  147. Marquee.ctx
  148. OCXICON.BMP
  149. proppg.pag
  150.  
  151. [SetupkitSetup1]
  152. setup1.exe
  153. setup1.vbp
  154.  
  155. [SetupkitKitfil32]
  156. setup.exe
  157. setupwiz.exe
  158. st5unst.exe
  159. vb5stkit.dll
  160. vbskco32.dll
  161. diantz.exe
  162. vb5dep.ini
  163.  
  164. [SetupkitKitfil32Sys32]
  165. asycfilt.dll
  166. ctl3d32.dll
  167. oleaut32.dll
  168. olepro32.dll
  169. riched32.dll
  170. stdole2.tlb
  171. msvcrt40.dll
  172. ;End of File copy/delete sections
  173.  
  174. ;Create links in the StartMenu/Programs folder
  175. [InstallProgramGroup]
  176. setup.ini, progman.groups,, "vbfolder="""%ShortAppName%""""
  177. setup.ini, vbfolder,, """%ShortAppName%"",          """"""%49000%\vb5cce.exe"""""",,,,%49000%"
  178. setup.ini, vbfolder,, """Application Setup Wizard"",""""""%49000%\SetupKit\Kitfil32\setupwiz.exe"""""",,,,%49000%"
  179. setup.ini, vbfolder,, """ReadMe"",                  """"""%49000%\readme.rtf"""""",,,,%49000%"
  180. winhelp.ini, Files,, "PSS.HLP=%49001%"
  181.  
  182. [UninstallProgramGroup]
  183. setup.ini, progman.groups,, "vbfolder="""%ShortAppName%""""
  184. setup.ini, vbfolder,, """%ShortAppName%"""
  185. setup.ini, vbfolder,, """Application Setup Wizard"""
  186. setup.ini, vbfolder,, """ReadMe"""
  187.  
  188. [SelfRegisterSection]
  189. %11%\comcat.dll
  190. %11%\oleaut32.dll
  191. %11%\msvbvm50.dll
  192. %11%\comdlg32.ocx
  193. %11%\comctl32.ocx
  194. %11%\msstkprp.dll
  195. %49000%\Wizards\tlbinf32.dll
  196. %49000%\Wizards\ctrlwiz.dll
  197. %49000%\Wizards\proppgwz.dll
  198.  
  199. [SelfUnRegisterSection]
  200. %49000%\Wizards\tlbinf32.dll
  201. %49000%\Wizards\ctrlwiz.dll
  202. %49000%\Wizards\proppgwz.dll
  203.  
  204. ; add license keys for ole controls
  205. [RegLicenseKeys]
  206. HKCR,"Licenses",,2,"Licensing: Copying the keys may be a violation of established copyrights."
  207. ;CmdDialog
  208. HKCR,"Licenses\4D553650-6ABE-11cf-8ADB-00AA00C00905",,2,"gfjmrfkfifkmkfffrlmmgmhmnlulkmfmqkqj"
  209. ;ComCtl
  210. HKCR,"Licenses\57CBF9E0-6AA7-11cf-8ADB-00AA00C00905",,2,"aahakhchghkhfhaamghhbhbhkbpgfhahlfle"
  211.  
  212. [AddRegSection]
  213. ; <root-key>,<sub-key>,<value-name>,<flag>,<value>
  214. ; flags - 0 - ANSI,replace, 1 - HEX,Replace, 2 - ANSI,No Replace, 3 - HEX,No Replace
  215. ; For registry entries we always use the LFN LDID
  216. ; Register custom install directory
  217. HKLM,%AppKey%,InstallDir,0,%49001%
  218. ;Register Office runtime files
  219. HKLM,"Software\Microsoft\Shared Tools\MSO97RT","Path",2,"%49301%\MSO97RT.DLL"
  220. HKLM,"Software\Microsoft\Shared Tools\MSO97RT\Clients","%49001%\vb5cce.exe",0
  221. HKLM,"Software\Microsoft\Shared Tools\MRT7ENU","Path",2,"%49301%\MRT7ENU.DLL"
  222. HKLM,"Software\Microsoft\Shared Tools\MRT7ENU\Clients","%49001%\vb5cce.exe",0
  223. ; Register for uninstall
  224. HKLM,%AppUninstallKey%,"DisplayName",,"%AppName%"
  225. HKLM,%AppUninstallKey%,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\vb5cce.inf, Uninstall"
  226.  
  227. [DelRegSection]
  228. ; <reg-root>,<subkey>,<value-name>
  229. ;Remove app key
  230. HKLM,%AppKey%
  231. ;Remove Uninstall key
  232. HKLM,%AppUninstallKey%
  233. ;Remove ourselves from Office runtime file keys
  234. HKLM,"Software\Microsoft\Shared Tools\MSO97RT\Clients","%49001%\vb5cce.exe",0
  235. HKLM,"Software\Microsoft\Shared Tools\MRT7ENU\Clients","%49001%\vb5cce.exe",0
  236.  
  237. ; Query user for a custom app install directory.  This value is persisted in the registry
  238. ; in AddRegSection
  239. [InstallCustomDestination]
  240. ; <LDID OEM SFN>,<LDID ANSI LFN>=<Section Name>,<Flag>
  241. ; flag 5 means don't prompt the user
  242. 49100,49101=ProgramFilesDir,5
  243. 49200,49201=CommonFilesDir,5
  244. 49300,49301=MicrosoftSharedVBADir,5
  245. ; Custom app directory, flag 1 means prompt user
  246. 49000,49001=AppCustomDestination,1
  247.  
  248. [ProgramFilesDir]
  249. HKLM,"Software\Microsoft\Windows\CurrentVersion",'ProgramFilesDir',,"%24%\Program Files"
  250.  
  251. [CommonFilesDir]
  252. HKLM,"Software\Microsoft\Windows\CurrentVersion",'CommonFilesDir',,"%24%\Common Files"
  253.  
  254. [MicrosoftSharedVBADir]
  255. ;The reg key is bogus.  This is done simply to compose the custom LDID.
  256. HKLM,"This\Will\Fail",'CommonFilesDir',,"%49201%\%MSSharedVBA%"
  257.  
  258. [AppCustomDestination]
  259. HKLM,"%AppKey%",'InstallDir',%DirectoryPrompt%,"%49101%\%DefaultDir%"
  260.  
  261. ; Get app directory for uninstall from the registry
  262. [UninstallDestination]
  263. ; <LDID OEM SFN>,<LDID ANSI LFN>=<Section Name>,<Flag>
  264. 49000,49001=UninstallDestination49000,5
  265.  
  266. [UninstallDestination49000]
  267. 'HKLM',%AppKey%,'InstallDir','',''
  268.  
  269. ; Without this section you get an error on Win95 that it
  270. ; can't find the files (even though it just unpacked them!)
  271. [SourceDisksNames]
  272. 1 = %AppName%,,1
  273.  
  274. [Strings]
  275. AppName             = "Visual Basic 5.0 Control Creation Edition"
  276. ShortAppName        = "Visual Basic 5.0 CCE"
  277. ; Reg keys
  278. AppKey              = "SOFTWARE\Microsoft\VB5CCE"
  279. AppUninstallKey     = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\VB5CCE"
  280. WindowsKey          = "SOFTWARE\Microsoft\Windows\CurrentVersion"
  281. ; Prompts
  282. BeginPrompt     =   "Are you sure you want to remove Visual Basic 5.0 CCE?"
  283. EndPrompt       =   "Visual Basic 5.0 CCE successfully removed."
  284. DirectoryPrompt =   "Where would you like to copy the Visual Basic 5.0 CCE files?"
  285. ; Directories
  286. DefaultDir  =   "VB5CCE"
  287. MSSharedVBA =   "Microsoft Shared\VBA"
  288.  
  289. ; I don't think this section is necessary
  290. [SourceDisksFiles]
  291. regsvr32.exe=1
  292. riched20.dll=1
  293. asycfilt.dll=1
  294. comcat.dll=1
  295. oleaut32.dll=1
  296. stdole2.tlb=1
  297. msvcrt40.dll=1
  298. msvbvm50.dll=1
  299. vb5cce.exe=1
  300. vb5ide.dll=1
  301. vb5db.dll=1
  302. oles.tlb=1
  303. vb5.olb=1
  304. scp32.dll=1
  305. vba5.dll=1
  306. mso97rt.dll=1
  307. mrt7enu.dll=1
  308. link.exe=1
  309. mspdb41.dll=1
  310. tahoma.ttf=1
  311.