home *** CD-ROM | disk | FTP | other *** search
/ Chip Hitware 7 A / CHIP_HITWARE_7A.iso / Multimedia / Notify / ntfy_cd.inf < prev    next >
Windows Setup INFormation  |  1997-09-08  |  4KB  |  110 lines

  1. ; Author: Mats Ljungqvist (mlt@cyberdude.com)
  2.  
  3. [Version]
  4. Signature="$CHICAGO$"
  5.  
  6. ; W h a t  t o  i n s t a l l
  7. [DefaultInstall]
  8. CopyFiles=copy.prog, copy.inf
  9. UpdateInis=Shortcut.Add
  10. AddReg=Reg.Add, Reg.Uninstall95.Add, Reg.Run
  11. Uninstall=DefaultUninstall
  12.  
  13. [DefaultInstall.ntx86]
  14. CopyFiles=copy.prog, copy.inf
  15. UpdateInis=Shortcut.Add
  16. AddReg=Reg.Add, Reg.UninstallNT.Add, Reg.Run
  17. Uninstall=DefaultUninstall.ntx86
  18.  
  19. ; W h a t  t o  r e m o v e
  20. [DefaultUninstall]
  21. DelFiles = copy.prog, copy.inf
  22. UpdateInis = Shortcut.Remove
  23. AddReg = Reg.Restore
  24. DelReg = Reg.Remove, Reg.Uninstall95.Remove, Reg.UninstallNT.Remove
  25.  
  26. ; W h e r e   t h e   f i l e s   c o m e   f r o m
  27. [SourceDisksNames]
  28. 1="Notify CD Player","",1
  29.  
  30. [SourceDisksFiles]
  31. ntfy_cd.exe=1
  32. ntfy_cd.Inf=1
  33. ntfy_cd.txt=1
  34.  
  35. ; F i l e   c o p y i n g   s e c t i o n s (where the go to).
  36. [DestinationDirs]
  37. copy.prog=24,%PROGRAM_FOLDER%
  38. copy.inf=17
  39.  
  40. ; w h a t   f i l e s   a r e   c o p i e d   w h e r e
  41. [copy.prog]
  42. ntfy_cd.exe
  43. ntfy_cd.txt
  44.  
  45. [copy.inf]
  46. ntfy_cd.inf
  47.  
  48.  
  49. ; A d d  S h o r t c u t
  50. [Shortcut.Add]
  51. setup.ini, progman.groups,,"group1=%PROGMAN_FOLDER%"
  52. setup.ini, group1,,"""%PROGMAN_DESC%"",""""""%24%\%PROGRAM_FOLDER%\ntfy_cd.exe"""""",,,,""%24%\%PROGRAM_FOLDER%"""
  53.  
  54. ; R e m o v e  S h o r t c u t
  55. [Shortcut.Remove]
  56. setup.ini, progman.groups,,"group1=%PROGMAN_FOLDER%"
  57. setup.ini, group1,,"""%PROGMAN_DESC%""
  58.  
  59. ; R e g i s t r y  A d d
  60. [Reg.Add]
  61. HKCR,AudioCD,,,"AudioCD"
  62. HKCR,AudioCD,"EditFlags",1,02,00,00,00
  63. HKCR,AudioCD\DefaultIcon,,,"%11%\shell32.dll,40"
  64. HKCR,AudioCD\shell,,,"play"
  65. HKCR,AudioCD\shell\play,,,"&Play"
  66. HKCR,AudioCD\shell\play\command,,,"%24%\%PROGRAM_FOLDER%\ntfy_cd.exe /play %1"
  67. HKCR,cdafile,,,"CD Audio Track"
  68. HKCR,cdafile\DefaultIcon,,,"%11%\cdplayer.exe,1"
  69. HKCR,cdafile\shell,,,"play"
  70. HKCR,cdafile\shell\play,,,"&Play"
  71. HKCR,cdafile\shell\play\command,,,"%24%\%PROGRAM_FOLDER%\ntfy_cd.exe -play %1"
  72.  
  73. [Reg.Uninstall95.Add]
  74. HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\NotifyCDPlayer,DisplayName,,"%REMOVE_DESC%"
  75. HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\NotifyCDPlayer,UninstallString,,"%10%\rundll.exe setupx.dll,InstallHinfSection DefaultUninstall 4 %17%\ntfy_cd.inf"
  76.  
  77. [Reg.UninstallNT.Add]
  78. HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\NotifyCDPlayer,DisplayName,,"%REMOVE_DESC%"
  79. HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\NotifyCDPlayer,UninstallString,,"%11%\rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 4 %17%\ntfy_cd.inf"
  80.  
  81. ; R e g i s t r y  R e m o v e
  82. [Reg.Remove]
  83. HKCR,AudioCD\shell\play\command,,,"%24%\%PROGRAM_FOLDER%\ntfy_cd.exe /play %1"
  84. HKCR,cdafile\shell\play\command,,,"%24%\%PROGRAM_FOLDER%\ntfy_cd.exe -play %1"
  85. HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\NotifyCDPlayer,,,
  86.  
  87. [Reg.Uninstall95.Remove]
  88. HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\NotifyCDPlayer,DisplayName,,"%REMOVE_DESC%"
  89. HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\NotifyCDPlayer,UninstallString,,"%10%\rundll.exe setupx.dll,InstallHinfSection DefaultUninstall 4 %17%\ntfy_cd.inf"
  90.  
  91. [Reg.UninstallNT.Remove]
  92. HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\NotifyCDPlayer,DisplayName,,"%REMOVE_DESC%"
  93. HKLM,Software\Microsoft\Windows\CurrentVersion\Uninstall\NotifyCDPlayer,UninstallString,,"%11%\rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 4 %17%\ntfy_cd.inf"
  94.  
  95. ; R e g i s t r y  R e s t o r e
  96. [Reg.Restore]
  97. HKCR,AudioCD\shell\play\command,,,"%11%\cdplayer.exe /play %1"
  98. HKCR,cdafile\shell\play\command,,,"%11%\cdplayer.exe -play %1"
  99.  
  100. ; R u n   o n c e   i n s t a l l e d
  101. [Reg.Run]
  102. HKLM,Software\Microsoft\Windows\CurrentVersion\RunOnce,NotifyCDPlayer,,"%24%\%PROGRAM_FOLDER%\ntfy_cd.exe -SETUP"
  103.  
  104. ; L o c a l i s e d   s t u f f 
  105. [Strings]
  106. PROGRAM_FOLDER    = "Progra~1\NotifyCD"
  107. PROGMAN_FOLDER    = "Access~1\Multimedia"
  108. PROGMAN_DESC      = "Notify CD Player"               ; Shortcut name
  109. REMOVE_DESC       = "Notify CD Player"
  110.