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
- AddReg = AddRegistry
-
- [DefaultUninstall]
- DelFiles = Files-Main, Files-Inf
- DelReg = DeleteRegistry
- ;
- ;----------------------------------------------------------------------------
-
- [Install]
- CopyFiles = Files-Main, Files-Inf
- AddReg = AddRegistry
- ;UpdateINIs =
-
- [Uninstall]
- DelFiles = Files-Main, Files-Inf
- 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]
- regview.exe,,,0x10023 ; del-in-use | warn-if-skip | no-skip | no-version-dlg
-
- [Files-Inf]
- regview.inf,,,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 = 10
- Files-Main = 10
- Files-Inf = 17
-
- [SourceDisksFiles]
- ; Can use a string for the filenames.
- %THISAPP% = 1
- %THISINF% = 1
-
- [SourceDisksNames]
- 1 = "Registration Entries Viewer for Windows 95", "", 0
-
- [AddRegistry]
- ;----------------------------------------------------------------------------
- ; Register View command for .reg (regfile) files
- ;----------------------------------------------------------------------------
- ; HKCR\regfile\Shell\View\
- ; (Default) = "&View"
- ; \command\
- ; (Default) = "path-to-exe %1"
- HKCR,regfile\shell\view,,,"&View"
- HKCR,regfile\shell\view\command,,,"%10%\%THISAPP% %%1"
- ;----------------------------------------------------------------------------
-
- ;----------------------------------------------------------------------------
- ; 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,regfile\shell\view
-
- HKLM,%UNINSTALL% %UNINSTALL_KEY%
-
- ;----------------------------------------------------------------------------
- ; These values are entered in the Registry automatically by the app.
- ; So, we have to delete them when we uninstall.
- ;----------------------------------------------------------------------------
- ; We can't delete these for ALL users, but we can for the current user.
- HKCU,"Software\Perpetual Motion\Registration Entries Viewer"
- ;----------------------------------------------------------------------------
-
- ;----------------------------------------------------------------------------
- [Strings]
- THISAPP = "regview.exe" ; app being installed
- THISINF = "regview.inf" ; inf being installed
-
- UNINSTALL_KEY = "Registration Viewer"
- UNINSTALL_DESCR = "Registration Viewer for Windows 95 (Remove Only)"
-
- ; regstr.h: REGSTR_PATH_UNINSTALL
- UNINSTALL = "Software\Microsoft\Windows\CurrentVersion\Uninstall\"
-
-