Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

154 lines
4.6 KiB

  1. ; ****************************************************************
  2. ; This is any IExpress install script for PADMIN.EXE
  3. ; It does the following
  4. ; * Copy Files
  5. ; * Add Registry Keys
  6. ; * Register OCXs, Dlls
  7. ; * Add links to the program
  8. ; ****************************************************************
  9. [Version]
  10. Signature=$CHICAGO$
  11. AdvancedINF=2.5,"You need a new version of advpack.dll"
  12. [DefaultInstall]
  13. CustomDestination = CustomDestinationSection
  14. DelFiles=PBA_Old_NTOP_Files
  15. AddReg=PBAReg
  16. CopyFiles=PBACopy,PBASysCopy,PBAINFCopy,PBADataCopy
  17. ;RegisterOCXs=RegisterOCXSection
  18. UpdateInis=AddLink
  19. DelReg=TempPBAReg
  20. [Uninstall]
  21. Cleanup=1
  22. SmartReboot=N
  23. BeginPrompt=BeginRemovePromptSection
  24. EndPrompt=EndRemovePromptSection
  25. CustomDestination=CustomDestinationSection
  26. ;UnRegisterOCXs=RegisterOCXSection
  27. DelFiles=PBACopy,PBAINFCopy
  28. DelReg=PBAReg
  29. UpdateInis=RemoveLink
  30. [CustomDestinationSection]
  31. ; the 5 is a combination of flags 1 and 4. Flag 4 tells not to prompt the user
  32. ; for a directory. Flag 1 tells Iexpress that I am interested in a value, not a
  33. ; key. We use the program files dir as a default just in case.
  34. 49300,49302 = ProgramFilesDir, 5
  35. 49500 = CustomLDIDSection, 5
  36. 49600 = CommonFilesDir, 5
  37. 49700 = DAOFilesDir, 5
  38. [ProgramFilesDir]
  39. HKLM,"Software\Microsoft\Windows\CurrentVersion",'ProgramFilesDir',,"%24%\Program Files"
  40. [CustomLDIDSection]
  41. HKLM,"SOFTWARE\Microsoft\Shared Tools\DAO\Clients",'PBAPath',,""
  42. "","","","","%49302%\PBA"
  43. [CommonFilesDir]
  44. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion",'CommonFilesDir',,""
  45. [DAOFilesDir]
  46. "","","","","%49600%\Microsoft Shared\Dao"
  47. ; 49500 = the Program files dir
  48. ; 11 = the system directory
  49. [DestinationDirs]
  50. PBACopy=49500
  51. PBADataCopy=49500
  52. PBASysCopy=11
  53. PBAINFCopy=17
  54. PBA_Old_NTOP_Files=49500
  55. ; note that 49500 = c:\program files\PBA
  56. [AddLink]
  57. setup.ini, progman.groups,, ""group0="%PBAFolder%"""
  58. setup.ini, group0,, """%LinkName%"",""""""%49500%\PBADMIN.EXE"""""",,,,,,"%LinkDesc%"
  59. [RemoveLink]
  60. setup.ini, progman.groups,, ""group0="%PBAFolder%"""
  61. setup.ini, group0,, """%LinkName%""" ;deletes previous link
  62. [BeginRemovePromptSection]
  63. Prompt="%BeginRemovePrompt%"
  64. ButtonType=YESNO
  65. Title=%AppName%
  66. [EndRemovePromptSection]
  67. Prompt="%EndRemovePrompt%"
  68. [RegisterOCXSection]
  69. %11%\comctl32.ocx
  70. %11%\comdlg32.ocx
  71. %11%\msinet.ocx
  72. %11%\tabctl32.ocx
  73. %49700%\dao360.dll
  74. ; the 32's are a flag to tell Iexpress not to show the version dialog and just not
  75. ; copy over newer files
  76. [PBACopy]
  77. base.ddf, , , 32
  78. country.txt, , , 32
  79. pbadmin.exe, , , 32
  80. pbadmin.hlp, , , 32
  81. dta.bat, , , 32
  82. dta.ddf, , , 32
  83. empty_pb.mdb, , , 32
  84. full.bat, , , 32
  85. full.ddf, , , 32
  86. hhwrap.dll, , , 32
  87. [PBADataCopy]
  88. pbserver.mdb, , , 16
  89. [PBASysCopy]
  90. comctl32.ocx, , , 32
  91. comdlg32.ocx, , , 32
  92. msinet.ocx, , , 32
  93. tabctl32.ocx, , , 32
  94. [PBAINFCopy]
  95. PBASetup.inf, , , 32
  96. PBASetup.exe, , , 32
  97. ; Delete these files from NTOP setup
  98. [PBA_Old_NTOP_Files]
  99. diantz.exe
  100. hhctrl.ocx
  101. [PBAReg]
  102. HKLM,"Software\Microsoft\Windows\CurrentVersion\App Paths\PBADMIN.EXE"
  103. HKLM,"Software\Microsoft\Windows\CurrentVersion\App Paths\PBADMIN.EXE", "", "", "%49500%\PBADMIN.EXE"
  104. HKLM,"Software\Microsoft\Windows\CurrentVersion\App Paths\PBADMIN.EXE", "Path", "", "%49500%"
  105. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PBA","DisplayName",,"Phone Book Administrator"
  106. ;HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PBA","UninstallString",,"RunDll32 advpack.dll,LaunchINFSection %17%\pbasetup.inf, Uninstall"
  107. HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\PBA","UninstallString",,"%17%\pbasetup.exe /u %17%\pbasetup.inf"
  108. HKLM, "Software\Microsoft\Shared Tools\DAO\clients","%49500%\PBADMIN.EXE",,
  109. [TempPBAReg]
  110. HKLM,"SOFTWARE\Microsoft\Shared Tools\DAO\Clients","PBAPath"
  111. [SourceDisksNames]
  112. 1 = , , 0
  113. [Strings]
  114. ; ===================================================
  115. ; Following strings are localizable
  116. ; ===================================================
  117. ; Name of the group under Start(menu), Programs
  118. PBAFolder= "Administrative Tools"
  119. ; Name of the link pointing to PBA.exe under Start(menu), Programs, Administrative Tools
  120. LinkName = "Phone Book Administrator"
  121. LinkDesc = "Creates and maintains phone books for use with Connection Manager and Connection Point Services."
  122. ; Name of the application we are installing
  123. AppName= "Phone Book Administrator"
  124. ; Prompt when the user decides to remove the application from his/her computer
  125. BeginRemovePrompt= "Are you sure that you want to remove Phone Book Administrator?"
  126. EndRemovePrompt= "Phone Book Administrator was successfully removed."