home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 Secrets / Secrets2.iso / Utility / Clock / Alarm / ALARM.INF < prev    next >
Encoding:
Windows Setup INFormation  |  1997-07-21  |  7.3 KB  |  197 lines

  1. ;----------------------------------------------------------------------------
  2. ;  Documented on MSDN CD in "INF Files" book in Win32 SDK: Setup API.
  3. ;----------------------------------------------------------------------------
  4.  
  5. [Version]
  6. ;Signature="$Windows 95$"
  7. ;----------------------------------------------------------------------------
  8. ;  Of course, the Win95 signature doesn't work, so we have to use Chicago.
  9. ;  Thanks, Microsoft!!
  10. ;----------------------------------------------------------------------------
  11. Signature="$Chicago$"
  12. Provider=Perpetual Motion Software
  13.  
  14. ;----------------------------------------------------------------------------
  15. ;  Sections used by setupx.dll (See 'Install' action for .inf files.)
  16. ;
  17. [DefaultInstall]
  18. CopyFiles = Files-Main, Files-Inf, Files-Help
  19. AddReg    = AddRegistry
  20.  
  21. [DefaultUninstall]
  22. DelFiles  = Files-Main, Files-Inf, Files-Help, Files-AutoGen
  23. DelReg    = DeleteRegistry
  24. ;
  25. ;----------------------------------------------------------------------------
  26.  
  27. [Install]
  28. CopyFiles = Files-Main, Files-Inf, Files-Help
  29. AddReg    = AddRegistry
  30. ;UpdateINIs =
  31.  
  32. [Uninstall]
  33. DelFiles  = Files-Main, Files-Inf, Files-Help, Files-AutoGen
  34. DelReg    = DeleteRegistry
  35.  
  36. ;----------------------------------------------------------------------------
  37. ;  Files to be (un)installed
  38. ;----------------------------------------------------------------------------
  39. ;  COPYFLG_WARN_IF_SKIP       0x00001
  40. ;  COPYFLG_NOSKIP             0x00002
  41. ;  COPYFLG_NOVERSIONCHECK     0x00004
  42. ;  COPYFLG_FORCE_FILE_IN_USE  0x00008
  43. ;  COPYFLG_NO_OVERWRITE       0x00010
  44. ;  COPYFLG_NO_VERSION_DIALOG  0x00020
  45. ;  COPYFLG_REPLACEONLY        0x00040
  46. ;  DELFLG_IN_USE              0x00001 (conflicts with warn-if-skip)
  47. ;  DELFLG_IN_USE1             0x10000 (no conflict)
  48. ;  Cannot use a string for the filenames.
  49. ;
  50. [Files-Main]
  51. alarm.exe,,,0x10023     ; del-in-use | warn-if-skip | no-skip | no-version-dlg
  52. calendar.ocx,,,0x10023  ; del-in-use | warn-if-skip | no-skip | no-version-dlg
  53.  
  54. [Files-Inf]
  55. alarm.inf,,,0x10023     ; del-in-use | warn-if-skip | no-skip | no-version-dlg
  56.  
  57. [Files-Help]
  58. alarm.hlp,,,0x10023     ; del-in-use | warn-if-skip | no-skip | no-version-dlg
  59. alarm.cnt,,,0x10023     ; del-in-use | warn-if-skip | no-skip | no-version-dlg
  60.  
  61. [Files-AutoGen]
  62. alarm.fts,,,0x10023     ; del-in-use | warn-if-skip | no-skip | no-version-dlg
  63. alarm.gid,,,0x10023     ; del-in-use | warn-if-skip | no-skip | no-version-dlg
  64. ;
  65. ;----------------------------------------------------------------------------
  66.  
  67. ;----------------------------------------------------------------------------
  68. ;  Where the files in the various file sections are located
  69. ;----------------------------------------------------------------------------
  70. ;  -1       dir from which the INF was installed
  71. ;  0xffff   dir from which the INF was installed
  72. ;  01       SourceDrive:\path
  73. ;  10       windows dir
  74. ;  11       system dir (95: %10%\system, NT: %10%\system32)
  75. ;  12       drivers dir (NT: %10%\system32\drivers)
  76. ;  17       INF dir
  77. ;  18       help dir
  78. ;  20       fonts dir
  79. ;  21       viewers dir
  80. ;  24       applications dir (seems to be "c:\")
  81. ;  25       shared dir
  82. ;  30       root dir of boot drive
  83. ;  50       %10%\system
  84. ;  51       spool dir
  85. ;  52       spool drivers dir
  86. ;  53       user profile dir
  87. ;  54       path to ntldr or OSLOADER.EXE
  88. ;
  89. [DestinationDirs]
  90. DefaultDestDir = 24, %PATH_APP%
  91. Files-Main     = 24, %PATH_APP%
  92. Files-Inf      = 17
  93. Files-Help     = 18
  94. Files-AutoGen  = 18
  95.  
  96. [SourceDisksFiles]
  97. ;  Can use a string for the filenames.
  98. %THISAPP%    = 1
  99. %THISINF%    = 1
  100. %THISOCX%    = 1
  101. alarm.hlp    = 1
  102. alarm.cnt    = 1
  103.  
  104. [SourceDisksNames]
  105. 1 = "Alarm++ for Windows 95", "", 0
  106.  
  107. [AddRegistry]
  108. ;----------------------------------------------------------------------------
  109. ;  Register Calendar OLE control
  110. ;----------------------------------------------------------------------------
  111. ;  HKCR\CLSID\%CLSID_OCX%\
  112. ;     (Default) = %DESCR_OCX%
  113. ;     \Control\
  114. ;        (Default) = ""
  115. ;     \InProcServer32\
  116. ;        (Default) = "path-to-OCX"
  117. ;     \MiscStatus\
  118. ;        (Default) = "0"
  119. ;        \1\
  120. ;           (Default) = "131473"
  121. ;     \ProgID\
  122. ;        (Default) = %PROGID_OCX%
  123. ;     \ToolboxBitmap32\
  124. ;        (Default) = "path-to-OCX, 1"
  125. ;     \TypeLib\
  126. ;        (Default) = %CLSID_OCX%
  127. ;     \Version\
  128. ;        (Default) = "2.0"
  129. HKCR,CLSID\%CLSID_OCX%,,,%DESCR_OCX%
  130. HKCR,CLSID\%CLSID_OCX%\Control,,,""
  131. HKCR,CLSID\%CLSID_OCX%\InProcServer32,,,"%24%\%PATH_APP%\%THISOCX%"
  132. HKCR,CLSID\%CLSID_OCX%\MiscStatus,,,"0"
  133. HKCR,CLSID\%CLSID_OCX%\MiscStatus\1,,,"131473"
  134. HKCR,CLSID\%CLSID_OCX%\ProgID,,,%PROGID_OCX%
  135. HKCR,CLSID\%CLSID_OCX%\ToolboxBitmap32,,,"%24%\%PATH_APP%\%THISOCX%, 1"
  136. HKCR,CLSID\%CLSID_OCX%\TypeLib,,,%CLSID_TLB%
  137. HKCR,CLSID\%CLSID_OCX%\Version,,,"2.0"
  138. ;
  139. ;  HKCR\%PROGID_OCX%\
  140. ;     (Default) = %DESCR_OCX%
  141. ;     \CLSID\
  142. ;        (Default) = %CLSID_OCX%
  143. HKCR,%PROGID_OCX%,,,%DESCR_OCX%
  144. HKCR,%PROGID_OCX%\CLSID,,,%CLSID_OCX%
  145. ;----------------------------------------------------------------------------
  146.  
  147. ;----------------------------------------------------------------------------
  148. ;  Register Uninstall procedure
  149. ;----------------------------------------------------------------------------
  150. ;  HKLM\%UNINSTALL%\%UNINSTALL_KEY%\
  151. ;     DisplayName = %UNINSTALL_DESCR%
  152. ;     UninstallString = "..."
  153. HKLM,%UNINSTALL% %UNINSTALL_KEY%,DisplayName,,%UNINSTALL_DESCR%
  154. HKLM,%UNINSTALL% %UNINSTALL_KEY%,UninstallString,,"rundll.exe setupx.dll,InstallHinfSection DefaultUninstall 132 %17%\%THISINF%"
  155. ;----------------------------------------------------------------------------
  156.  
  157. [DeleteRegistry]
  158. HKCR,CLSID\%CLSID_OCX%
  159. HKCR,%PROGID_OCX%
  160.  
  161. HKLM,%UNINSTALL% %UNINSTALL_KEY%
  162.  
  163. ;----------------------------------------------------------------------------
  164. ;  These values are entered in the Registry automatically by the app.
  165. ;  So, we have to delete them when we uninstall.
  166. ;----------------------------------------------------------------------------
  167. HKCR,".alm"
  168. HKCR,"Alarm.Document"
  169. ;
  170. HKLM,"Software\Perpetual Motion\Alarm++"
  171. ;
  172. ;  We can't delete these for ALL users, but we can for the current user.
  173. HKCU,"Software\Perpetual Motion\Alarm++"
  174. HKCU,"AppEvents\EventLabels\Alarm Default Sound"
  175. HKCU,"AppEvents\Schemes\Apps\Alarm++"
  176. ;----------------------------------------------------------------------------
  177.  
  178. ;----------------------------------------------------------------------------
  179. [Strings]
  180. THISAPP    = "alarm.exe"                              ; app being installed
  181. THISINF    = "alarm.inf"                              ; inf being installed
  182. ;PATH_APP   = "Program Files\Alarm"                    ; app dir
  183. ;PATH_APP   = "Progra~1\Alarm"                         ; app dir (WRONG!)
  184. PATH_APP   = "Alarm"                                  ; app dir
  185. THISOCX    = "calendar.ocx"                           ; OCX being installed
  186. CLSID_OCX  = "{19187B43-5BA5-11CF-9700-0020AFA349C4}" ; OCX GUID
  187. CLSID_TLB  = "{19187B45-5BA5-11CF-9700-0020AFA349C4}" ; OCX prop sheet GUID
  188. DESCR_OCX  = "Perpetual Motion's Calendar Control"    ; OCX description
  189. PROGID_OCX = "PMSCalendar.CalendarCtrl.1"             ; OCX prog-id
  190.  
  191. UNINSTALL_KEY   = "Alarm++"
  192. UNINSTALL_DESCR = "Alarm++ for Windows 95 (Remove Only)"
  193.  
  194. ;  regstr.h: REGSTR_PATH_UNINSTALL
  195. UNINSTALL = "Software\Microsoft\Windows\CurrentVersion\Uninstall\"
  196.  
  197.