home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1998 April A / Pcwk4a98.iso / Lotus / Beanmach / DATA1.CAB / Application_Files / bin / master.inf < prev    next >
INI File  |  1997-11-05  |  6KB  |  163 lines

  1. ; Template for master.inf
  2. ; Copyright 1996, Microsoft Corporation
  3. ; Version 1.1, 26 July 1996
  4.  
  5. ; This inf file controls the user's installation of your Java
  6. ; classes. It is important to get all of this correct.
  7. ; This is separated into sections; be sure to make the 
  8. ; necessary changes in each one.
  9.  
  10. [hook1]
  11.  
  12. ; In this line, replace CabFileName.cab with the CAB file name
  13. ; you chose when filling in the template for ClassPck.ddf,
  14. ; at .Set CabinetNameTemplate=
  15.  
  16. run=extrac32.exe /e /a /y /l %49000% CabFileName.cab
  17.  
  18. [hook2]
  19.  
  20. ; Change the name of master.inf to the name you are assigning this
  21. ; file. Leave the second line alone.
  22.  
  23. InfFile=master.inf
  24. InfSection=RegistryData
  25.  
  26.  
  27. [Strings]
  28. ; Running uuidgen in the SDK generates the ClassId you need to fill 
  29. ; in here. This classId also goes in the OBJECT tag.
  30. ; Don't forget the set braces!
  31.  
  32. ClassId="{99999999-9999-9999-9999-999999999999}"
  33.  
  34. ; Put the name by which your packages should be referred to 
  35. ; (i.e. "Bob's Text Viewer") here.
  36.  
  37. PackageName="name"
  38.  
  39. [AddRegSection]
  40.  
  41. ; Leave this line.
  42. HKLM,"SOFTWARE\Classes\CLSID\%ClassId%",,,"%PackageName%"
  43.  
  44. ; Replace <aa...> with the version number (like 1,0,0,1) of this
  45. ; version of your library. This is so that when you want to update
  46. ; your libraries, you can change the version rather then the classId
  47. ; and the problems that go with that. If the version number here
  48. ; and in the OBJECT tag match the version already stored on the
  49. ; user's machine, it will not download the classes again, which
  50. ; also saves time and energy.
  51.  
  52. HKLM,"SOFTWARE\Classes\CLSID\%ClassId%\InstalledVersion",,,"aa,bb,cc,dd"
  53.  
  54. ; Here, replace <filename> with the name of one of the class files in
  55. ; your package, including the virtual path (specified in classpck.ddf)
  56. ; to that file. This will make sure that the classes exist on the
  57. ; user's system; if they don't, they will be downloaded, regardless
  58. ; of version numbers.
  59.  
  60. HKLM,"Software\Classes\CLSID\%ClassId%\InstalledVersion","Path",,"%49000%\<filename>"
  61.  
  62. ; Leave these keys alone.
  63.  
  64. HKLM,"SOFTWARE\Classes\CLSID\%ClassId%\InProcServer32",,,"%11%\MSJAVA.DLL"
  65. HKLM,"SOFTWARE\Classes\CLSID\%ClassId%\InProcServer32","NoJavaClass",,""
  66. HKLM,"SOFTWARE\Classes\CLSID\%ClassId%\InProcServer32","ThreadingModel",,"Both"
  67.  
  68.  
  69. ; Under most circumstances, you should leave the next two keys alone.
  70. ; Only change them if
  71. ; 1) You have not expanded the classes into their subdirectories on
  72. ; the user's machine, but have instead stored them in an uncompressed
  73. ; .ZIP file; in that case, change the appropriate value
  74. ; to "%49000%\<ZipFileName>".
  75. ;
  76. ; 2) You have decided to install the files onto another, hard-coded
  77. ; directory of your choice. This is not recommended, for you will
  78. ; clutter up the user's directories and have to make other changes.
  79. ; If you do so, though, change the appropriate value to the absolute
  80. ; pathname to that directory, and change it in the run= line above.
  81. ; Also note that the "visible in scope" problem explained in the README
  82. ; for .ZIP files also applies here.
  83. ;
  84. ; If you use one of these, you will use exactly one.
  85. ; The difference between Lib and TrustLib is described in the README.
  86.  
  87. HKLM,"SOFTWARE\Classes\CLSID\%ClassId%\InProcServer32","Lib",,"%49000%"
  88. ;HKLM,"SOFTWARE\Classes\CLSID\%ClassId%\InProcServer32","TrustLib",,"%49000%"
  89.  
  90.  
  91. ; ***************************************************************
  92. ; THE NEXT SECTION IS TO BE CHANGED IF YOU WANT TO INSTALL
  93. ; NATIVE CODE (DLLS, ETC.) ON THE USER'S MACHINE. PLEASE BE
  94. ; RESPONSIBLE ABOUT THIS USE.
  95. ; ***************************************************************
  96.  
  97. ; This template assumes you are installing all items into the
  98. ; <windir>\system directory, and that they are all in 8.3 form. 
  99. ; If you need something more complex, update the INF appropriately. 
  100.  
  101. ; Leave these three lines.
  102. [RegistryData]
  103. AddReg=AddRegSection
  104. CustomDestination=MyCustomDestination
  105.  
  106. ;; If you are installing native code, you will want to uncomment all
  107. ;; the lines in the remainder of this section, except for the ones 
  108. ;; that are descriptive (and have two semicolons).
  109.  
  110. ; CopyFiles=OtherFiles
  111.  
  112. ;[DestinationDirs]
  113. ;OtherFiles=11
  114.  
  115. ;[OtherFiles]
  116. ;; List the name of each file (delimited by returns) here.
  117. ;; Just list the local name--no need for paths, etc. Example:
  118. ;; foo1.dll,,,32
  119. ;; foo2.dll,,,32
  120.  
  121. ;[SourceDisksFiles]
  122. ;; For each name listed in the above section, you will want to put
  123. ;; <filename>=1 on this list. So it would look like
  124. ;; foo1.dll=1
  125. ;; foo2.dll=1
  126.  
  127. ;[SourceDisksNames]
  128. ;1=%PackageName%,"",0
  129.  
  130.  
  131. ; **************************************************************
  132. ; END OF NATIVE CODE SECTION
  133. ; **************************************************************
  134.  
  135. [PackageDestination49000]
  136.  
  137. ; This value should only change if you have decided to place your
  138. ; classes in the TrustedClasspath. In that case, you
  139. ; will change "LibsDirectory" to "TrustedLibsDirectory".
  140. ; The reasons to do this are explained in the README.
  141.  
  142. "HKLM","Software\Microsoft\Java VM","LibsDirectory","",""
  143.  
  144. ; *************************************************
  145. ; THE REMAINDER OF THIS FILE SHOULD NOT BE CHANGED.
  146. ; *************************************************
  147.  
  148. [Setup Hooks]                
  149. hook1=hook1
  150. hook2=hook2
  151.  
  152. [Version]
  153. signature="$CHICAGO$"
  154. AdvancedINF=2.0
  155.  
  156.  
  157. [DefaultInstall]
  158. CustomDestination=MyCustomDestination
  159. AddReg=AddRegSection
  160.  
  161. [MyCustomDestination]
  162. 49000=PackageDestination49000,23
  163.