home *** CD-ROM | disk | FTP | other *** search
/ Windows 95 Secrets / Secrets2.iso / Utility / Registry / RegView / REGVIEW.INF < prev    next >
Encoding:
Windows Setup INFormation  |  1997-07-21  |  5.2 KB  |  139 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
  19. AddReg    = AddRegistry
  20.  
  21. [DefaultUninstall]
  22. DelFiles  = Files-Main, Files-Inf
  23. DelReg    = DeleteRegistry
  24. ;
  25. ;----------------------------------------------------------------------------
  26.  
  27. [Install]
  28. CopyFiles = Files-Main, Files-Inf
  29. AddReg    = AddRegistry
  30. ;UpdateINIs =
  31.  
  32. [Uninstall]
  33. DelFiles  = Files-Main, Files-Inf
  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. regview.exe,,,0x10023   ; del-in-use | warn-if-skip | no-skip | no-version-dlg
  52.  
  53. [Files-Inf]
  54. regview.inf,,,0x10023   ; del-in-use | warn-if-skip | no-skip | no-version-dlg
  55. ;
  56. ;----------------------------------------------------------------------------
  57.  
  58. ;----------------------------------------------------------------------------
  59. ;  Where the files in the various file sections are located
  60. ;----------------------------------------------------------------------------
  61. ;  -1       dir from which the INF was installed
  62. ;  0xffff   dir from which the INF was installed
  63. ;  01       SourceDrive:\path
  64. ;  10       windows dir
  65. ;  11       system dir (95: %10%\system, NT: %10%\system32)
  66. ;  12       drivers dir (NT: %10%\system32\drivers)
  67. ;  17       INF dir
  68. ;  18       help dir
  69. ;  20       fonts dir
  70. ;  21       viewers dir
  71. ;  24       applications dir (seems to be "c:\")
  72. ;  25       shared dir
  73. ;  30       root dir of boot drive
  74. ;  50       %10%\system
  75. ;  51       spool dir
  76. ;  52       spool drivers dir
  77. ;  53       user profile dir
  78. ;  54       path to ntldr or OSLOADER.EXE
  79. ;
  80. [DestinationDirs]
  81. DefaultDestDir = 10
  82. Files-Main     = 10
  83. Files-Inf      = 17
  84.  
  85. [SourceDisksFiles]
  86. ;  Can use a string for the filenames.
  87. %THISAPP%    = 1
  88. %THISINF%    = 1
  89.  
  90. [SourceDisksNames]
  91. 1 = "Registration Entries Viewer for Windows 95", "", 0
  92.  
  93. [AddRegistry]
  94. ;----------------------------------------------------------------------------
  95. ;  Register View command for .reg (regfile) files
  96. ;----------------------------------------------------------------------------
  97. ;  HKCR\regfile\Shell\View\
  98. ;     (Default) = "&View"
  99. ;     \command\
  100. ;        (Default) = "path-to-exe %1"
  101. HKCR,regfile\shell\view,,,"&View"
  102. HKCR,regfile\shell\view\command,,,"%10%\%THISAPP% %%1"
  103. ;----------------------------------------------------------------------------
  104.  
  105. ;----------------------------------------------------------------------------
  106. ;  Register Uninstall procedure
  107. ;----------------------------------------------------------------------------
  108. ;  HKLM\%UNINSTALL%\%UNINSTALL_KEY%\
  109. ;     DisplayName = %UNINSTALL_DESCR%
  110. ;     UninstallString = "..."
  111. HKLM,%UNINSTALL% %UNINSTALL_KEY%,DisplayName,,%UNINSTALL_DESCR%
  112. HKLM,%UNINSTALL% %UNINSTALL_KEY%,UninstallString,,"rundll.exe setupx.dll,InstallHinfSection DefaultUninstall 132 %17%\%THISINF%"
  113. ;----------------------------------------------------------------------------
  114.  
  115. [DeleteRegistry]
  116. HKCR,regfile\shell\view
  117.  
  118. HKLM,%UNINSTALL% %UNINSTALL_KEY%
  119.  
  120. ;----------------------------------------------------------------------------
  121. ;  These values are entered in the Registry automatically by the app.
  122. ;  So, we have to delete them when we uninstall.
  123. ;----------------------------------------------------------------------------
  124. ;  We can't delete these for ALL users, but we can for the current user.
  125. HKCU,"Software\Perpetual Motion\Registration Entries Viewer"
  126. ;----------------------------------------------------------------------------
  127.  
  128. ;----------------------------------------------------------------------------
  129. [Strings]
  130. THISAPP    = "regview.exe"                            ; app being installed
  131. THISINF    = "regview.inf"                            ; inf being installed
  132.  
  133. UNINSTALL_KEY   = "Registration Viewer"
  134. UNINSTALL_DESCR = "Registration Viewer for Windows 95 (Remove Only)"
  135.  
  136. ;  regstr.h: REGSTR_PATH_UNINSTALL
  137. UNINSTALL = "Software\Microsoft\Windows\CurrentVersion\Uninstall\"
  138.  
  139.