home *** CD-ROM | disk | FTP | other *** search
/ Sparkle Graphics Model 217 / SPCD.iso / DRIVERS / NVIDIA / 7100 / NT40 / nView.Inf < prev    next >
Encoding:
Windows Setup INFormation  |  2002-02-01  |  5.5 KB  |  152 lines

  1. ; - 10/16/01, Rich Clark, NVIDIA
  2. ; - Installs NVIEW files, sets up the autorun section of registry
  3. ;   and sets up uninstaller.
  4. ;    Updated 10/29
  5. ;    Updated 11/1 to assume a driver install (ie reboots between load/unload)
  6.  
  7. ; - Copies files to the Windows, System, and Inf.
  8.  
  9. ; GOALS:
  10. ;    Drop nview.dll, dmcpl.exe, nvTUICpl.cpl, nwiz.exe and nvshell.dll into system32 directory.
  11. ;    Copy over this .inf.
  12. ;    Drop nview profiles into the Windows\nview directory
  13. ;    NO - DONE BY WIZARD NOW Set up the Run application hotkey to always launch nview
  14. ;    Set up any initial registry settings
  15. ;    Set up runonce for nwiz.exe
  16. ;    Set up an uninstall
  17. ;
  18. ;    Change made 11/1 is that the Wizard now places nview in the run key rather than
  19. ;    the .inf.  Note that this requires the user to be logged in with the correct
  20. ;    priviledges when running the wizard.  Hopefully the driver .inf could spawn the
  21. ;    wizard immediately after installing to guaranty admin priviledes.
  22. ;
  23. ; PROBLEMS/ISSUES:
  24. ;    The nview.dll cannot be overwritten or erased while it is loaded.
  25. ;    You can unload nview from a command line.
  26. ;    A second problem, hopefully solved soon, is that unloading nView can cause crashes
  27. ;
  28. ; APPROACHES:
  29. ;    There are basically two approaches.  
  30. ;    (1) If we had an immediate run command from the .inf, we could solve all install
  31. ;    woes by actually running the nview unload prior to installing.  It turns out that
  32. ;    a newer .inf process (advpack.dll) actually allows this functionality!  It is likely
  33. ;    NOT compatible with display driver installs though.
  34. ;    (2) We can remove the file with the DEL_FLG_INUSE flag to tell windows to remove
  35. ;    the file on the next boot.  Of course, this means that the user has to uninstall
  36. ;    AND reboot before reinstalling nview.  As we have no dialogs from the .inf, this
  37. ;    is pretty nasty.
  38. ;
  39. ;    We took path (1) above for in-house nview installs.  It is recommended that
  40. ;    when the driver package is built, functionality required by advpack be replaced
  41. ;    by the setup.exe.
  42. ;
  43. ;    Updated 11/5 to add DELFLG_IN_USE1 to ALL files
  44. ;    updated 11/8 to add /clear flag to wizard launch to clear registry
  45. ;        (hack to fix issue of overinstalls on wizard)...
  46. ;    Updated 11/12 to remove auto-clean on install and update uninstall - got rid of adding links
  47. ;    Updated 11/14 to change reg structure per spec.
  48. ;    Updated 11/15 to add help (changes are initprofile, nwiz/install,hlp)
  49. ;    Updated 11/19 to register shell extension service in the .inf
  50. ;    Updated 12/4 to remove the UpdateInis, change the run key to the standard/common,
  51. ;    add more profiles, and put quotes around registry paths.
  52.  
  53. [Version]
  54. Signature=$CHICAGO$
  55.  
  56. [DestinationDirs]
  57. nViewCopy = 10,nview
  58. nViewSysCopy = 11
  59. nViewINFCopy = 17
  60. nViewHLPCopy = 18
  61.  
  62. [DefaultInstall]
  63. CopyFiles = nViewCopy, nViewSysCopy,nViewINFCopy,nViewHLPCopy
  64. ;DelReg = nViewUnRegisterApp            ;temp to clean up registry before install
  65. AddReg = nViewRegisterApp, nViewRegUninstall
  66. RegisterDlls = NVShellDll
  67.  
  68. [NVShellDll]
  69. 11,,nvshell.dll,1
  70.  
  71. [RemovenView]
  72. DelReg = nViewUnRegisterApp, nViewRegUninstall
  73. DelFiles = nViewCopy, nViewSysCopy
  74.  
  75. [nViewHLPCopy]
  76. NVWCPLEN.HLP
  77.  
  78. [nViewCopy]
  79. Generic.tvp
  80. Advanced.tvp
  81. Finance.tvp
  82. DCC.tvp
  83. CAD.tvp
  84.  
  85.  
  86. [nViewSysCopy]
  87. nview.dll,,,DELFLG_IN_USE1             ;flag to delete next reboot if uninstall
  88. dmcpl.exe,,,DELFLG_IN_USE1
  89. nvshell.dll,,,DELFLG_IN_USE1
  90. nvTUIcpl.cpl,,,DELFLG_IN_USE1
  91. nWiz.exe,,,DELFLG_IN_USE1
  92.  
  93. [nViewINFCopy]
  94. nview.inf
  95.  
  96. [nViewRegisterApp]
  97. ;Have to register and start nview.
  98. ;Wizard does now -> HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run\nView,"nView",,"rundll32.exe nView.dll,nViewLoadHook"
  99. ;add initialization to the registry
  100. ;Changed below 11/14
  101. HKLM,"Software\NVIDIA Corporation\Global\nView","InitProfile",,"generic.tvp"
  102. ;add run once wizard - updated 11/12 below - updated 11/14 below
  103. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,"nwiz",,"nwiz.exe /install"
  104.  
  105.  
  106. [nViewUnRegisterApp]
  107. ;Deletes the registry entry (note that this deletes the entire key): - updated 11/14
  108. HKCU,"Software\NVIDIA Corporation\Global\nView"
  109. HKLM,"Software\NVIDIA Corporation\Global\nView"
  110. ;This second deletion is if the wizard has set up nview to automatically load
  111. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,"nwiz"
  112.  
  113. [nViewRegUninstall]
  114. ;Adds entry to the Add/Remove Programs dialog box in Control Panel 
  115. ;to uninstall the program:
  116. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nView,"DisplayName",,"NVIDIA nView Application"
  117. HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nView,"UninstallString",,"nwiz /uninstall" 
  118. ;updated 11/12 above - HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nView,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\nview.inf,RemovenView" 
  119.  
  120. ;[nViewAddLinks]
  121. ;Adds shortcut to Sample.exe on the Start menu:
  122. ;setup.ini, progman.groups,, "Sample=%SampleFolder%" ;creates folder
  123. ;setup.ini, Sample,, """%SampleDesc%"", %11%\DMCPL.EXE" ;creates link
  124.  
  125. ;[nViewRemoveLinks]
  126. ;Removes shortcut to Sample.exe on the Start menu during uninstall:
  127. ;setup.ini, progman.groups,, "Sample=%SampleFolder%" ;creates folder
  128. ;setup.ini, Sample,, """%SampleDesc%""" ;deletes link 
  129.  
  130. [SourceDisksNames]
  131. 1 = %DiskName%,nView,0
  132.  
  133. [SourceDisksFiles]
  134. DMCPL.exe = 1
  135. nView.dll = 1
  136. nVshell.dll = 1
  137. nView.inf = 1
  138. nvTUICpl.cpl = 1
  139. generic.tvp = 1
  140. NVWCPLEN.HLP = 1
  141. Advanced.tvp = 1
  142. Finance.tvp = 1
  143. DCC.tvp = 1
  144. CAD.tvp = 1
  145.  
  146. [Strings]
  147. PROGRAMF = "PROGRA~1"
  148. SampleFolder = "NVIDIA nView"
  149. SampleDesc = "nView Desktop Management"
  150. DiskName = "nView Application Installation Disk"
  151.  
  152.