;*******************************************************************
;* dpd.inf  
;*
;* Description: Dekart Private Disk 2.10
;*
;* (C) Copyright 2001 - 2006 Dekart.
;*
;*******************************************************************
[Version]
Signature	= "$CHICAGO$"
Provider	= %Provider%
AdvancedINF	= 2.5, "You need a newer version of advpack.dll."

;*****************************************************

[DefaultInstall]
RequiredEngine		= Setupapi
CustomDestination	= CustDestDir
CopyFiles		= CopyFiles, Copy_versnum, Copy_about
AddReg			= RegAdd, RegAdd_register
DelReg			= RegDelOldDrivers
UpdateInis		= CreateStartMenuFolder
RunPreSetupCommands	= Install_Certificate
SmartReboot		= N

[DefaultInstall.NT]
RequiredEngine		= Setupapi
CustomDestination	= CustDestDir
CopyFiles		= CopyFiles, Copy_versnum, Copy_about
AddReg			= RegAdd, RegAdd_register
DelReg			= RegDelOldDrivers
UpdateInis		= CreateStartMenuFolder
RunPreSetupCommands	= Install_Certificate
RunPostSetupCommands	= Install_Drivers, Install_regsvr32
SmartReboot		= N

;*****************************************************

[DefaultUpdate]
RequiredEngine		= Setupapi
CustomDestination	= CustDestDir
AddReg			= RegAdd
DelReg			= RegDelOldDrivers
DelFiles		= DeleteOld
CopyFiles		= CopyFiles, Copy_versnum, Copy_about
UpdateInis		= CreateStartMenuFolder
RunPreSetupCommands	= Install_Certificate
SmartReboot		= N

[DefaultUpdate.NT]
RequiredEngine		= Setupapi
CustomDestination	= CustDestDir
AddReg			= RegAdd
DelReg			= RegDelOldDrivers
DelFiles		= DeleteOld
CopyFiles		= CopyFiles, Copy_versnum, Copy_about
UpdateInis		= CreateStartMenuFolder
RunPreSetupCommands	= Install_Certificate
RunPostSetupCommands	= Install_Drivers, Install_regsvr32
SmartReboot		= N

;*****************************************************

[DefaultUninstall]
RequiredEngine		= Setupapi
BeginPrompt		= BeginPromptSection
EndPrompt		= EndPromptSection
CustomDestination	= CustDestDir
RunPreSetupCommands	= Remove_regsvr32
UpdateInis		= RemoveStartMenuFolder
DelFiles		= CopyFiles, AutoGenFiles, DesktopFiles
DelReg			= RegRemove
DelDirs			= DelDirs
SmartReboot		= N

[CustDestDir]
49100=SoftProgFilesDir,5
50100=DesktopDir,5

[SoftProgFilesDir]
,,,,"%App_ProgramFolder%"

[DesktopDir]
,,,,"%PathDesktopDir%" 

[DesktopFiles] 
"Dekart Private Disk.lnk",,,0x00010020

[DestinationDirs]
AutoGenFiles        = 49100
CopyFiles           = 49100 
DeleteOld           = 49100
Copy_versnum        = 11
Copy_about          = 11
DesktopFiles        = 50100

[CopyFiles]
PrvDisk.exe,,,0x00010020
PrvDisk.chm,,,0x00010020
pd_lang.dll,,,0x00010020
pdapi.dll,,,0x00010020
dkhook.dll,,,0x00010020
prvdisk.vxd,,,0x00010020
pdrjndl.vxd,,,0x00010020
pdfilter.vxd,,,0x00010020
prvdisk.sys,,,0x00010020
pdrjndl.sys,,,0x00010020
pdfilter.sys,,,0x00010020
prvdiskamd64.sys,,,0x00010020
pdrjndlamd64.sys,,,0x00010020
pdfilteramd64.sys,,,0x00010020
prvdiskia64.sys,,,0x00010020
pdrjndlia64.sys,,,0x00010020
pdfilteria64.sys,,,0x00010020
dpd.inf,,,0x00010020
readme.txt,,,0x00010020
Changes.txt,,,0x00010020
compress.dll,,,0x00010020
licence.txt,,,0x00010020
FileFinder.dll,,,0x00010020
PDFileMove.exe,,,0x00010020
PrivateDisk.dll,,,0x00010020
unicows.dll,,,0x00010020
Wiper.dll,,,0x00010020
pdfilemove.chm,,,0x00010020

[Copy_versnum]
versnum.dll,,,0x00010020 

[Copy_about]
dkar.dll,,,0x00010020 

[AutoGenFiles]
PrvDisk.ini,,,0x00010020
PrvDisk.FTS,,,0x00010020
PrvDisk.GID,,,0x00010020
PrvDisk.srt,,,0x00010020
PrvDisk.hlp,,,0x00010020
PrvDisk.cnt,,,0x00010020
pdapi.ini,,,0x00010020
PDFileMove.ini,,,0x00010020

[DeleteOld]
compress.dll,,,0x00010020
PrvDisk.hlp,,,0x00010020
PrvDisk.cnt,,,0x00010020

[SourceDisksNames]
55="","",1

[SourceDisksFiles]
dpd.inf             = 55
PrvDisk.exe         = 55
PrvDisk.chm         = 55
pd_lang.dll         = 55
prvdisk.vxd         = 55
pdrjndl.vxd         = 55
pdfilter.vxd        = 55
prvdisk.sys         = 55
pdrjndl.sys         = 55
pdfilter.sys        = 55
prvdiskamd64.sys    = 55
pdrjndlamd64.sys    = 55
pdfilteramd64.sys   = 55
prvdiskia64.sys     = 55
pdrjndlia64.sys     = 55
pdfilteria64.sys    = 55
pdapi.dll           = 55
dkhook.dll          = 55
readme.txt          = 55
Changes.txt         = 55
compress.dll        = 55
versnum.dll         = 55
licence.txt         = 55
dkar.dll            = 55
FileFinder.dll      = 55
PDFileMove.exe      = 55
PrivateDisk.dll     = 55
unicows.dll         = 55
Wiper.dll           = 55
pdfilemove.chm      = 55

[CreateStartMenuFolder]
setup.ini, progman.groups,, "folder=%App_StartMenuFolder%" ;creates folder
setup.ini, folder,, "%AppLink%, %49100%\PrvDisk.exe,,,,"%49100%""
setup.ini, folder,, "%AppLinkFB%, %49100%\PDFileMove.exe,,,,"%49100%""
setup.ini, folder,, "%HelpLink%, %49100%\PrvDisk.chm,,,,"%49100%""
setup.ini, folder,, "%HelpLinkFB%, %49100%\pdfilemove.chm,,,,"%49100%""
setup.ini, folder,, "%ReadmeLink%, %49100%\readme.txt,,,,"%49100%""
setup.ini, folder,, "%UninstallLink%, ""RunDll32 advpack.dll,LaunchINFSection %App_ProgramFolder%\dpd.inf, DefaultUninstall"",%11%\SHELL32.DLL,31,,"%11%""

[RegAdd]
HKLM,%SMWCV%\Uninstall\%Soft_Name%,DisplayName,,"%Ctrl_Soft_Name%"
HKLM,%SMWCV%\Uninstall\%Soft_Name%,UninstallString,,"RunDll32 advpack.dll,LaunchINFSection %App_ProgramFolder%\dpd.inf, DefaultUninstall"
HKLM,Software\Dekart\%Reg_Soft_Name%,ApplicationPath,,"%49100%\PrvDisk.exe" 
HKCU,Software\Dekart\%Reg_Soft_Name%,ApplicationPath,,"%49100%\PrvDisk.exe" 

[RegAdd_register]
HKLM,Software\Dekart\%Reg_Soft_Name%,UserName,,"%User_Name%"
HKLM,Software\Dekart\%Reg_Soft_Name%,Organization,,"%Org_Name%"
HKLM,Software\Dekart\%Reg_Soft_Name%,SerialNumber,,"%Ser_Num%" 
HKCU,Software\Dekart\%Reg_Soft_Name%,UserName,,"%User_Name%"
HKCU,Software\Dekart\%Reg_Soft_Name%,Organization,,"%Org_Name%"
HKCU,Software\Dekart\%Reg_Soft_Name%,SerialNumber,,"%Ser_Num%" 

[RegDelOldDrivers]
HKLM,SYSTEM\CurrentControlSet\Services\PrvDisk
HKLM,SYSTEM\CurrentControlSet\Services\pdrjndl
HKLM,SYSTEM\CurrentControlSet\Services\pdfilter
HKLM,SYSTEM\CurrentControlSet\Services\PrvDiskamd64
HKLM,SYSTEM\CurrentControlSet\Services\pdrjndlamd64
HKLM,SYSTEM\CurrentControlSet\Services\pdfilteramd64
HKLM,SYSTEM\CurrentControlSet\Services\PrvDiskia64
HKLM,SYSTEM\CurrentControlSet\Services\pdrjndlia64
HKLM,SYSTEM\CurrentControlSet\Services\pdfilteria64

[Install_Certificate]
addcert.exe Dekart_Authority.cer ROOT

[Install_Drivers]
"%App_ProgramFolder%"\PrvDisk.exe /installdrivers

[Install_regsvr32]
%11%\regsvr32.exe /s "%App_ProgramFolder%"\PrivateDisk.dll
%11%\regsvr32.exe /s "%App_ProgramFolder%"\FileFinder.dll
%11%\regsvr32.exe /s "%App_ProgramFolder%"\Wiper.dll

;*****************************************************

[RemoveStartMenuFolder]
setup.ini, progman.groups,, "folder=%App_StartMenuFolder%" 
setup.ini, folder,, """%AppLink%"""
setup.ini, folder,, """%AppLinkFB%"""
setup.ini, folder,, """%HelpLink%"""
setup.ini, folder,, """%HelpLinkFB%"""
setup.ini, folder,, """%ReadmeLink%"""
setup.ini, folder,, """%UninstallLink%"""

[Remove_regsvr32]
%11%\regsvr32.exe /s /u "%App_ProgramFolder%"\PrivateDisk.dll
%11%\regsvr32.exe /s /u "%App_ProgramFolder%"\FileFinder.dll
%11%\regsvr32.exe /s /u "%App_ProgramFolder%"\Wiper.dll

[RegRemove]
HKLM,%SMWCV%\Uninstall\%Soft_Name%
HKLM,Software\Dekart\%Reg_Soft_Name%
HKCU,Software\Dekart\%Reg_Soft_Name%
HKCR,.dpd
HKCR,DPD.Document
HKLM,SYSTEM\CurrentControlSet\Services\PrvDisk
HKLM,SYSTEM\CurrentControlSet\Services\pdrjndl
HKLM,SYSTEM\CurrentControlSet\Services\pdfilter
HKLM,SYSTEM\CurrentControlSet\Services\PrvDiskia64
HKLM,SYSTEM\CurrentControlSet\Services\pdrjndlia64
HKLM,SYSTEM\CurrentControlSet\Services\pdfilteria64
HKLM,SYSTEM\CurrentControlSet\Services\PrvDiskamd64
HKLM,SYSTEM\CurrentControlSet\Services\pdrjndlamd64
HKLM,SYSTEM\CurrentControlSet\Services\pdfilteramd64

[DelDirs]
"%49100%"

[BeginPromptSection]
Prompt      = "%BeginPrompt%"
ButtonType  = YESNO
Title       = %App_Name%

[EndPromptSection]
Prompt      = "%EndPrompt%"

;*****************************************************

[Strings]
Provider	="Dekart"
Soft_Name	="Dekart Private Disk"        
Reg_Soft_Name	="Private Disk"
Ctrl_Soft_Name	="Dekart Private Disk 2.10"
Run_Name	="Dekart Private Disk"
AppLink		="Private Disk"
AppLinkFB	="PD File Move"
HelpLink	="Private Disk Help"	
HelpLinkFB	="PD File Move Help"	
ReadmeLink	="Readme"	
UninstallLink	="Uninstall"
BeginPrompt	="Are you sure that you want to remove Dekart Private Disk 2.10? Please close it before proceeding."
EndPrompt	="Dekart Private Disk 2.10 was successfully removed."
SMWCV		="Software\Microsoft\Windows\CurrentVersion"
CPdesktop	="Control Panel\desktop\WindowMetrics"

; Dekart InstalShield strings

App_Name		="Dekart Private Disk 2.10"   
App_StartMenuFolder	="..\..\..\Windows\Start Menu\Programs\Dekart\Private Disk"
App_ProgramFolder	="C:\PROGRA~1\Dekart\PRIVAT~1"
User_Name		="ZHUHUAFU"
Ser_Num			="1CK4XJ03A283HXZI406F9ESSW2R3WGG8VDAXQ3QLVUH"
Org_Name		=""
ShortCutFileName	="Dekart Private Disk.lnk"
PathAndFileName		="prvdisk.exe"
Arguments		=""
PathDesktopDir		="C:\"
Old_App_StartMenuFolder="..\..\..\Windows\Start Menu\Programs\"

[Dekart_Install_INI]
Requirement1_WND	= Dekart Private Disk,
Requirement1_TXT	= 1,Dekart Private Disk 
;check_serial		= "PrvDisk.exe"

comp_logo               = "comp.bmp"  
run_readme              = "readme.txt"
run_application         = "prvdisk.exe" 
image                   = "logo.bmp"
image_x                 = 20
image_y                 = 20
text_x                  = 150
text_y                  = 20
files                   = 3550
license_form            = 1
registration_form       = 1
select_location_form    = 1
select_group_form       = 1
only_admin_install      = 1
reboot			= 1
inf1                    = dpd.inf
