;
; NDS Provider ADSI Installation Script
;

; Signature must = $Chicago$ for setup to work on W95 and WNT

[Version]
Signature=$Chicago$
Layoutfile=nwlayout.inf


[DefaultInstall]
CopyFiles = InfFiles, ProgramFiles
AddReg = AddADS, AddNamespace, AddProvider, AddUninstall, AddUninstall.95
DelReg = DelNWCOMPAT


; if we are on Windows NT we default to this install section

[DefaultInstall.NT]
;CopyFiles = InfFiles, ProgramFiles
AddReg = AddADS.NT, AddNamespace, AddProvider, AddUninstall, AddUninstall.NT
DelReg = DelNWCOMPAT

[Uninstall]
DelFiles = ProgramFiles, InfFiles
DelReg = DelADS, DelNamespace, DelProvider, DelUninstall

[Uninstall.NT]
DelFiles = ProgramFiles, InfFiles
DelReg = DelADS.NT, DelNamespace, DelProvider, DelUninstall

;
; Destination Directories
;

[DestinationDirs]
InfFiles     = 17
ProgramFiles = 11
SDKFiles = 11


;
; File Sections
;
; Note: W95 will not accept %InfFile% or %DllFile% in the file sections

[InfFiles]
adsnnds.inf,,,%COPYFLAGS%

[ProgramFiles]
adsnnds.dll,,,%COPYFLGS%


;
; Registry Settings
;

[AddADS]
HKLM,Software\Microsoft\ADs\Providers\%Provider%,,,"%Namespace%"
HKLM,"NETWORK\Novell\System Config\Install\Apps\ADSNNDS"

[AddADS.NT]
HKLM,Software\Microsoft\ADs\Providers\%Provider%,,,"%Namespace%"

[AddNamespace]
HKCR,%Namespace%\Clsid,,,"{55e7d66a-cd46-11d0-a9a3-00a0c9324511}"
HKCR,CLSID\{55e7d66a-cd46-11d0-a9a3-00a0c9324511},,,"%Namespace% Namespace Object"
HKCR,CLSID\{55e7d66a-cd46-11d0-a9a3-00a0c9324511}\InprocServer32,,,"%DllFile%"
HKCR,CLSID\{55e7d66a-cd46-11d0-a9a3-00a0c9324511}\InprocServer32,ThreadingModel,,Both
HKCR,CLSID\{55e7d66a-cd46-11d0-a9a3-00a0c9324511}\ProgID,,,"%Namespace%"
HKCR,CLSID\{55e7d66a-cd46-11d0-a9a3-00a0c9324511}\TypeLib,,,"{97D25DB0-0363-11CF-ABC4-02608C9E7553}"
HKCR,CLSID\{55e7d66a-cd46-11d0-a9a3-00a0c9324511}\Version,,,"1.0"

[AddProvider]
HKCR,%Provider%\Clsid,,,"{55e7d66b-cd46-11d0-a9a3-00a0c9324511}"
HKCR,CLSID\{55e7d66b-cd46-11d0-a9a3-00a0c9324511},,,"%Provider% Provider Object"
HKCR,CLSID\{55e7d66b-cd46-11d0-a9a3-00a0c9324511}\InprocServer32,,,"%DllFile%"
HKCR,CLSID\{55e7d66b-cd46-11d0-a9a3-00a0c9324511}\InprocServer32,ThreadingModel,,Both
HKCR,CLSID\{55e7d66b-cd46-11d0-a9a3-00a0c9324511}\ProgID,,,"%Provider%"
HKCR,CLSID\{55e7d66b-cd46-11d0-a9a3-00a0c9324511}\TypeLib,,,"{97D25DB0-0363-11CF-ABC4-02608C9E7553}"
HKCR,CLSID\{55e7d66b-cd46-11d0-a9a3-00a0c9324511}\Version,,,"1.0"


[DelADS]
HKLM,Software\Microsoft\ADs\Providers\%Provider%
HKLM,"NETWORK\Novell\System Config\Install\Apps\ADSNNDS"

[DelADS.NT]
HKLM,Software\Microsoft\ADs\Providers\%Provider%

[DelNamespace]
HKCR,%Namespace%
HKCR,CLSID\{55e7d66a-cd46-11d0-a9a3-00a0c9324511}

[DelProvider]
HKCR,%Provider%
HKCR,CLSID\{55e7d66b-cd46-11d0-a9a3-00a0c9324511}

[DelNWCOMPAT]
HKLM,Software\Microsoft\ADs\Providers\NWCOMPAT
HKCR,NWCOMPATNamespace
HKCR,CLSID\{0fb32cc0-4b62-11cf-ae2c-00aa006ebfb9}
HKCR,NWCOMPAT
HKCR,CLSID\{0df68130-4b62-11cf-ae2c-00aa006ebfb9}


;
; "Add/Remove Programs" Control Panel Registry Settings
;

[AddUninstall]
HKLM,%UninstKey%,"DisplayName",,%DispName%

[AddUninstall.95]
HKLM,%UninstKey%,"UninstallString",,"RunDll setupx.dll,InstallHinfSection Uninstall 4 %InfFile%"

[AddUninstall.NT]
HKLM,%UninstKey%,"UninstallString",,"RunDll32 syssetup.dll,SetupInfObjectInstallAction Uninstall.NT 4 %InfFile%"

[DelUninstall]
HKLM,%UninstKey%



;
; Strings
;

[Strings]
UninstKey = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\NDS Provider"

DispName = "Novell NDS Provider - ADSI"
DiskName = "Novell NDS Provider Installation"

ADSNNDS.DeviceDesc       = "Novell NDS Provider - ADSI"
ADSNNDS_HELP             = "Novell's NDS Provider for Active Directory Service Interfaces enables an ADSI client application to communicate with NDS."


InfFile = "adsnnds.inf"
DllFile = "adsnnds.dll"

Provider  = "NDS"
Namespace = "NDSNamespace"

COPYFLGS       = 0x00000006 ; COPYFLG_NOSKIP + COPYFLG_NOVERSIONCHECK

