home *** CD-ROM | disk | FTP | other *** search
- ;----------------------------------------------------------------------------
- ; Documented on MSDN CD in "INF Files" book in Win32 SDK: Setup API.
- ;----------------------------------------------------------------------------
-
- [Version]
- ;Signature="$Windows 95$"
- ;----------------------------------------------------------------------------
- ; Of course, the Win95 signature doesn't work, so we have to use Chicago.
- ; Thanks, Microsoft!!
- ;----------------------------------------------------------------------------
- Signature="$Chicago$"
- Provider=Perpetual Motion Software
-
- ;----------------------------------------------------------------------------
- ; Sections used by setupx.dll (See 'Install' action for .inf files.)
- ;
- [DefaultInstall]
- CopyFiles = Files-Main, Files-Inf, Files-Help
- AddReg = AddRegistry
-
- [DefaultUninstall]
- DelFiles = Files-Main, Files-Inf, Files-Help, Files-AutoGen
- DelReg = DeleteRegistry
- ;
- ;----------------------------------------------------------------------------
-
- [Install]
- CopyFiles = Files-Main, Files-Inf, Files-Help
- AddReg = AddRegistry
- ;UpdateINIs =
-
- [Uninstall]
- DelFiles = Files-Main, Files-Inf, Files-Help, Files-AutoGen
- DelReg = DeleteRegistry
-
- ;----------------------------------------------------------------------------
- ; Files to be (un)installed
- ;----------------------------------------------------------------------------
- ; COPYFLG_WARN_IF_SKIP 0x00001
- ; COPYFLG_NOSKIP 0x00002
- ; COPYFLG_NOVERSIONCHECK 0x00004
- ; COPYFLG_FORCE_FILE_IN_USE 0x00008
- ; COPYFLG_NO_OVERWRITE 0x00010
- ; COPYFLG_NO_VERSION_DIALOG 0x00020
- ; COPYFLG_REPLACEONLY 0x00040
- ; DELFLG_IN_USE 0x00001 (conflicts with warn-if-skip)
- ; DELFLG_IN_USE1 0x10000 (no conflict)
- ; Cannot use a string for the filenames.
- ;
- [Files-Main]
- alarm.exe,,,0x10023 ; del-in-use | warn-if-skip | no-skip | no-version-dlg
- calendar.ocx,,,0x10023 ; del-in-use | warn-if-skip | no-skip | no-version-dlg
-
- [Files-Inf]
- alarm.inf,,,0x10023 ; del-in-use | warn-if-skip | no-skip | no-version-dlg
-
- [Files-Help]
- alarm.hlp,,,0x10023 ; del-in-use | warn-if-skip | no-skip | no-version-dlg
- alarm.cnt,,,0x10023 ; del-in-use | warn-if-skip | no-skip | no-version-dlg
-
- [Files-AutoGen]
- alarm.fts,,,0x10023 ; del-in-use | warn-if-skip | no-skip | no-version-dlg
- alarm.gid,,,0x10023 ; del-in-use | warn-if-skip | no-skip | no-version-dlg
- ;
- ;----------------------------------------------------------------------------
-
- ;----------------------------------------------------------------------------
- ; Where the files in the various file sections are located
- ;----------------------------------------------------------------------------
- ; -1 dir from which the INF was installed
- ; 0xffff dir from which the INF was installed
- ; 01 SourceDrive:\path
- ; 10 windows dir
- ; 11 system dir (95: %10%\system, NT: %10%\system32)
- ; 12 drivers dir (NT: %10%\system32\drivers)
- ; 17 INF dir
- ; 18 help dir
- ; 20 fonts dir
- ; 21 viewers dir
- ; 24 applications dir (seems to be "c:\")
- ; 25 shared dir
- ; 30 root dir of boot drive
- ; 50 %10%\system
- ; 51 spool dir
- ; 52 spool drivers dir
- ; 53 user profile dir
- ; 54 path to ntldr or OSLOADER.EXE
- ;
- [DestinationDirs]
- DefaultDestDir = 24, %PATH_APP%
- Files-Main = 24, %PATH_APP%
- Files-Inf = 17
- Files-Help = 18
- Files-AutoGen = 18
-
- [SourceDisksFiles]
- ; Can use a string for the filenames.
- %THISAPP% = 1
- %THISINF% = 1
- %THISOCX% = 1
- alarm.hlp = 1
- alarm.cnt = 1
-
- [SourceDisksNames]
- 1 = "Alarm++ for Windows 95", "", 0
-
- [AddRegistry]
- ;----------------------------------------------------------------------------
- ; Register Calendar OLE control
- ;----------------------------------------------------------------------------
- ; HKCR\CLSID\%CLSID_OCX%\
- ; (Default) = %DESCR_OCX%
- ; \Control\
- ; (Default) = ""
- ; \InProcServer32\
- ; (Default) = "path-to-OCX"
- ; \MiscStatus\
- ; (Default) = "0"
- ; \1\
- ; (Default) = "131473"
- ; \ProgID\
- ; (Default) = %PROGID_OCX%
- ; \ToolboxBitmap32\
- ; (Default) = "path-to-OCX, 1"
- ; \TypeLib\
- ; (Default) = %CLSID_OCX%
- ; \Version\
- ; (Default) = "2.0"
- HKCR,CLSID\%CLSID_OCX%,,,%DESCR_OCX%
- HKCR,CLSID\%CLSID_OCX%\Control,,,""
- HKCR,CLSID\%CLSID_OCX%\InProcServer32,,,"%24%\%PATH_APP%\%THISOCX%"
- HKCR,CLSID\%CLSID_OCX%\MiscStatus,,,"0"
- HKCR,CLSID\%CLSID_OCX%\MiscStatus\1,,,"131473"
- HKCR,CLSID\%CLSID_OCX%\ProgID,,,%PROGID_OCX%
- HKCR,CLSID\%CLSID_OCX%\ToolboxBitmap32,,,"%24%\%PATH_APP%\%THISOCX%, 1"
- HKCR,CLSID\%CLSID_OCX%\TypeLib,,,%CLSID_TLB%
- HKCR,CLSID\%CLSID_OCX%\Version,,,"2.0"
- ;
- ; HKCR\%PROGID_OCX%\
- ; (Default) = %DESCR_OCX%
- ; \CLSID\
- ; (Default) = %CLSID_OCX%
- HKCR,%PROGID_OCX%,,,%DESCR_OCX%
- HKCR,%PROGID_OCX%\CLSID,,,%CLSID_OCX%
- ;----------------------------------------------------------------------------
-
- ;----------------------------------------------------------------------------
- ; Register Uninstall procedure
- ;----------------------------------------------------------------------------
- ; HKLM\%UNINSTALL%\%UNINSTALL_KEY%\
- ; DisplayName = %UNINSTALL_DESCR%
- ; UninstallString = "..."
- HKLM,%UNINSTALL% %UNINSTALL_KEY%,DisplayName,,%UNINSTALL_DESCR%
- HKLM,%UNINSTALL% %UNINSTALL_KEY%,UninstallString,,"rundll.exe setupx.dll,InstallHinfSection DefaultUninstall 132 %17%\%THISINF%"
- ;----------------------------------------------------------------------------
-
- [DeleteRegistry]
- HKCR,CLSID\%CLSID_OCX%
- HKCR,%PROGID_OCX%
-
- HKLM,%UNINSTALL% %UNINSTALL_KEY%
-
- ;----------------------------------------------------------------------------
- ; These values are entered in the Registry automatically by the app.
- ; So, we have to delete them when we uninstall.
- ;----------------------------------------------------------------------------
- HKCR,".alm"
- HKCR,"Alarm.Document"
- ;
- HKLM,"Software\Perpetual Motion\Alarm++"
- ;
- ; We can't delete these for ALL users, but we can for the current user.
- HKCU,"Software\Perpetual Motion\Alarm++"
- HKCU,"AppEvents\EventLabels\Alarm Default Sound"
- HKCU,"AppEvents\Schemes\Apps\Alarm++"
- ;----------------------------------------------------------------------------
-
- ;----------------------------------------------------------------------------
- [Strings]
- THISAPP = "alarm.exe" ; app being installed
- THISINF = "alarm.inf" ; inf being installed
- ;PATH_APP = "Program Files\Alarm" ; app dir
- ;PATH_APP = "Progra~1\Alarm" ; app dir (WRONG!)
- PATH_APP = "Alarm" ; app dir
- THISOCX = "calendar.ocx" ; OCX being installed
- CLSID_OCX = "{19187B43-5BA5-11CF-9700-0020AFA349C4}" ; OCX GUID
- CLSID_TLB = "{19187B45-5BA5-11CF-9700-0020AFA349C4}" ; OCX prop sheet GUID
- DESCR_OCX = "Perpetual Motion's Calendar Control" ; OCX description
- PROGID_OCX = "PMSCalendar.CalendarCtrl.1" ; OCX prog-id
-
- UNINSTALL_KEY = "Alarm++"
- UNINSTALL_DESCR = "Alarm++ for Windows 95 (Remove Only)"
-
- ; regstr.h: REGSTR_PATH_UNINSTALL
- UNINSTALL = "Software\Microsoft\Windows\CurrentVersion\Uninstall\"
-
-