home *** CD-ROM | disk | FTP | other *** search
- ; - 10/16/01, Rich Clark, NVIDIA
- ; - Installs NVIEW files, sets up the autorun section of registry
- ; and sets up uninstaller.
- ; Updated 10/29
- ; Updated 11/1 to assume a driver install (ie reboots between load/unload)
-
- ; - Copies files to the Windows, System, and Inf.
-
- ; GOALS:
- ; Drop nview.dll, dmcpl.exe, nvTUICpl.cpl, nwiz.exe and nvshell.dll into system32 directory.
- ; Copy over this .inf.
- ; Drop nview profiles into the Windows\nview directory
- ; NO - DONE BY WIZARD NOW Set up the Run application hotkey to always launch nview
- ; Set up any initial registry settings
- ; Set up runonce for nwiz.exe
- ; Set up an uninstall
- ;
- ; Change made 11/1 is that the Wizard now places nview in the run key rather than
- ; the .inf. Note that this requires the user to be logged in with the correct
- ; priviledges when running the wizard. Hopefully the driver .inf could spawn the
- ; wizard immediately after installing to guaranty admin priviledes.
- ;
- ; PROBLEMS/ISSUES:
- ; The nview.dll cannot be overwritten or erased while it is loaded.
- ; You can unload nview from a command line.
- ; A second problem, hopefully solved soon, is that unloading nView can cause crashes
- ;
- ; APPROACHES:
- ; There are basically two approaches.
- ; (1) If we had an immediate run command from the .inf, we could solve all install
- ; woes by actually running the nview unload prior to installing. It turns out that
- ; a newer .inf process (advpack.dll) actually allows this functionality! It is likely
- ; NOT compatible with display driver installs though.
- ; (2) We can remove the file with the DEL_FLG_INUSE flag to tell windows to remove
- ; the file on the next boot. Of course, this means that the user has to uninstall
- ; AND reboot before reinstalling nview. As we have no dialogs from the .inf, this
- ; is pretty nasty.
- ;
- ; We took path (1) above for in-house nview installs. It is recommended that
- ; when the driver package is built, functionality required by advpack be replaced
- ; by the setup.exe.
- ;
- ; Updated 11/5 to add DELFLG_IN_USE1 to ALL files
- ; updated 11/8 to add /clear flag to wizard launch to clear registry
- ; (hack to fix issue of overinstalls on wizard)...
- ; Updated 11/12 to remove auto-clean on install and update uninstall - got rid of adding links
- ; Updated 11/14 to change reg structure per spec.
- ; Updated 11/15 to add help (changes are initprofile, nwiz/install,hlp)
- ; Updated 11/19 to register shell extension service in the .inf
- ; Updated 12/4 to remove the UpdateInis, change the run key to the standard/common,
- ; add more profiles, and put quotes around registry paths.
-
- [Version]
- Signature=$CHICAGO$
-
- [DestinationDirs]
- nViewCopy = 10,nview
- nViewSysCopy = 11
- nViewINFCopy = 17
- nViewHLPCopy = 18
-
- [DefaultInstall]
- CopyFiles = nViewCopy, nViewSysCopy,nViewINFCopy,nViewHLPCopy
- ;DelReg = nViewUnRegisterApp ;temp to clean up registry before install
- AddReg = nViewRegisterApp, nViewRegUninstall
- RegisterDlls = NVShellDll
-
- [NVShellDll]
- 11,,nvshell.dll,1
-
- [RemovenView]
- DelReg = nViewUnRegisterApp, nViewRegUninstall
- DelFiles = nViewCopy, nViewSysCopy
-
- [nViewHLPCopy]
- NVWCPLEN.HLP
-
- [nViewCopy]
- Generic.tvp
- Advanced.tvp
- Finance.tvp
- DCC.tvp
- CAD.tvp
-
-
- [nViewSysCopy]
- nview.dll,,,DELFLG_IN_USE1 ;flag to delete next reboot if uninstall
- dmcpl.exe,,,DELFLG_IN_USE1
- nvshell.dll,,,DELFLG_IN_USE1
- nvTUIcpl.cpl,,,DELFLG_IN_USE1
- nWiz.exe,,,DELFLG_IN_USE1
-
- [nViewINFCopy]
- nview.inf
-
- [nViewRegisterApp]
- ;Have to register and start nview.
- ;Wizard does now -> HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run\nView,"nView",,"rundll32.exe nView.dll,nViewLoadHook"
- ;add initialization to the registry
- ;Changed below 11/14
- HKLM,"Software\NVIDIA Corporation\Global\nView","InitProfile",,"generic.tvp"
- ;add run once wizard - updated 11/12 below - updated 11/14 below
- HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,"nwiz",,"nwiz.exe /install"
-
-
- [nViewUnRegisterApp]
- ;Deletes the registry entry (note that this deletes the entire key): - updated 11/14
- HKCU,"Software\NVIDIA Corporation\Global\nView"
- HKLM,"Software\NVIDIA Corporation\Global\nView"
- ;This second deletion is if the wizard has set up nview to automatically load
- HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Run,"nwiz"
-
- [nViewRegUninstall]
- ;Adds entry to the Add/Remove Programs dialog box in Control Panel
- ;to uninstall the program:
- HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nView,"DisplayName",,"NVIDIA nView Application"
- HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nView,"UninstallString",,"nwiz /uninstall"
- ;updated 11/12 above - HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\nView,"UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\nview.inf,RemovenView"
-
- ;[nViewAddLinks]
- ;Adds shortcut to Sample.exe on the Start menu:
- ;setup.ini, progman.groups,, "Sample=%SampleFolder%" ;creates folder
- ;setup.ini, Sample,, """%SampleDesc%"", %11%\DMCPL.EXE" ;creates link
-
- ;[nViewRemoveLinks]
- ;Removes shortcut to Sample.exe on the Start menu during uninstall:
- ;setup.ini, progman.groups,, "Sample=%SampleFolder%" ;creates folder
- ;setup.ini, Sample,, """%SampleDesc%""" ;deletes link
-
- [SourceDisksNames]
- 1 = %DiskName%,nView,0
-
- [SourceDisksFiles]
- DMCPL.exe = 1
- nView.dll = 1
- nVshell.dll = 1
- nView.inf = 1
- nvTUICpl.cpl = 1
- generic.tvp = 1
- NVWCPLEN.HLP = 1
- Advanced.tvp = 1
- Finance.tvp = 1
- DCC.tvp = 1
- CAD.tvp = 1
-
- [Strings]
- PROGRAMF = "PROGRA~1"
- SampleFolder = "NVIDIA nView"
- SampleDesc = "nView Desktop Management"
- DiskName = "nView Application Installation Disk"
-
-