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 =
- ;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]
- firework.scr,,,0x10023 ; del-in-use | warn-if-skip | no-skip | no-version-dlg
-
- [Files-Inf]
- firework.inf,,,0x10023 ; del-in-use | warn-if-skip | no-skip | no-version-dlg
-
- [Files-Help]
- firework.hlp,,,0x10023 ; del-in-use | warn-if-skip | no-skip | no-version-dlg
-
- [Files-AutoGen]
- firework.fts,,,0x10023 ; del-in-use | warn-if-skip | no-skip | no-version-dlg
- firework.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 = 11
- Files-Main = 11
- Files-Inf = 17
- Files-Help = 18
- Files-AutoGen = 18
-
- [SourceDisksFiles]
- ; Can use a string for the filenames.
- %THISAPP% = 1
- %THISINF% = 1
- firework.hlp = 1
-
- [SourceDisksNames]
- 1 = "Fireworks Screen Saver for Windows 95", "", 0
-
- [AddRegistry]
- ;----------------------------------------------------------------------------
- ; 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]
- HKLM,%UNINSTALL% %UNINSTALL_KEY%
-
- ;----------------------------------------------------------------------------
- ; These values are entered in the Registry automatically by Fireworks.
- ; 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,"AppEvents\EventLabels\Fireworks Explode"
- HKCU,"AppEvents\EventLabels\Fireworks ExplodeHigh"
- HKCU,"AppEvents\EventLabels\Fireworks ExplodeLow"
- HKCU,"AppEvents\EventLabels\Fireworks Launch"
- HKCU,"AppEvents\Schemes\Apps\Fireworks"
- HKCU,"Software\Perpetual Motion\Fireworks"
- ;----------------------------------------------------------------------------
-
- ;----------------------------------------------------------------------------
- [Strings]
- THISAPP = "firework.scr" ; app being installed
- THISINF = "firework.inf" ; inf being installed
-
- UNINSTALL_KEY = "Fireworks"
- UNINSTALL_DESCR = "Fireworks for Windows 95 (Remove Only)"
-
- ; regstr.h: REGSTR_PATH_UNINSTALL
- UNINSTALL = "Software\Microsoft\Windows\CurrentVersion\Uninstall\"
-
-