home *** CD-ROM | disk | FTP | other *** search
/ PC World 2005 December (Special) / PCWorld_2005-12_Special_cd.bin / Windows / trikyxp / trikyxp.exe / scesp4i.exe / setup.inf < prev   
Encoding:
Windows Setup INFormation  |  1998-10-15  |  8.0 KB  |  239 lines

  1. [Version]
  2. Signature="$Windows NT$" 
  3. AdvancedINF=2.5
  4. ExtensionGUID = {d0e72d64-e6ab-11d1-9362-00c04fd92f7b}
  5. Title=%SCETITLE%
  6. LayoutFile=SCEFILES.INF
  7.  
  8. ; Main 
  9. [AppInstall]
  10.     RegCheck    = HKLM,Software\Microsoft\Windows NT\CurrentVersion,,CurrentVersion,>=4.0,%WrongNTVersion%
  11.     RegCheck    = HKLM,Software\Microsoft\Windows NT\CurrentVersion,,CSDVersion,>=Service Pack 4,%WrongNTServicePack%
  12.     UserCheck    = ,Administrators,%LogonAsAdmin%
  13.     Switch         = C,%InstallCmdLineHelp%,\    ;Help for this switch
  14.                 MFCCheck, \        ;Check for MFC42U.DLL
  15.                 InstallCmdLine,\    ;Command Line install
  16.                 CmdLineCheckInstall,\    ;Make sure installion succeded.
  17.                 SecureDirectory,\       ;Secure our directory.
  18.                 PostSecureDirectory,\   ;Delete SCP path item
  19.                 DefFinish        ;Display message to user
  20.  
  21.     Switch         = ,%DefaultInstallHelp%,\    ;Help for this switch.
  22.                 MFCCheck,\        ;Check for MFC42U.DLL
  23.                 CheckForIE,\        ;Checks to make sure IE was installed
  24.                 DefPromptUser,\        ;Prompt user with install message.
  25.                 CheckMMCVer,\        ;Install MMC
  26.                 DefaultInstall,\    ;Copy SCE files and register the DLLS
  27.                 CmdLineCheckInstall,\
  28.                 DefCheckInstallation,\    ;Make sure registration completed successfuly
  29.                 CheckForMMC,\        ;Makes sure MMC was installed
  30.                 SecureDirectory,\       ;Secure our directory.
  31.                 PostSecureDirectory,\   ;Delete SCP path item
  32.                 DefFinish        ;Tell the user we finished successfuly
  33.  
  34. ;Alpha check the version of MFC42U.DLL
  35. [MFCCheck.NTAlpha]
  36.     ; Reverse version check.
  37.     FileCheck    = %11%\MFC42U.DLL,==4.21.0.7022,%IncompatibleFileVersion%,FC_VERTRUE_END
  38.     
  39. ; Install command line only
  40. [InstallCmdLine]
  41.     PreInstallPrompt = %InstallQuestionCmd%
  42.     FileCheck     = %11%\WLDAP32.DLL,>=5.0,%FileNotFound%
  43.     CopyFiles    = CmdLineCopy,InfCopy,SceTemplatesCopy,AcluiHelpCopy
  44.     Addreg        = MMCReg
  45.     PostRunApp    = PostSetupCmdSection
  46.  
  47. ; Make sure command line was installed correctly.
  48. [CmdLineCheckInstall]
  49.     RegCheck    = HKLM,Software\Microsoft\Windows Nt\CurrentVersion\Secedit,,,,%SetupNotComplete%
  50.     FileCheck    =%11%\SceDLL.dll,,%SetupNotCompleteFile%
  51.     FileCheck    =%11%\secedit.exe,,%SetupNotCompleteFile%
  52.  
  53. ; Check for the version of the MMC file, if it's later then do nothing.
  54. [CheckMMCVer]
  55.     FileCheck    =if( %11%\MMC.EXE,>5.00.1713.1 ) == SETUP_NORMAL,END,RUN(InstallMMCOnly)
  56.  
  57. ; Prompt user to install MMC.
  58. [InstallMMCOnly]
  59.     InstallPrompt   = %InstallMMCQ%,,MB_YESNOCANCEL|MB_ICONQUESTION
  60.     InstallPrompt    = %InstallMMCWarn%,,MB_OK|MB_ICONEXCLMATION    
  61.     PostRunApp    = RunMMC
  62.  
  63. ;Make sure IE is installed.
  64. [CheckForIE]
  65.     FileCheck         = %11%\WLDAP32.DLL,,%WrongIEVersion%
  66.     FileCheck        = %11%\SHLWAPI.DLL,,%WrongIEVersion%
  67.     FileCheck        = %11%\URLMON.DLL,,%WrongIEVersion%
  68.     FileCheck        = %11%\WININET.DLL,,%WrongIEVersion%
  69.  
  70. ;Default installation prompt
  71. [DefPromptUser]
  72.     PreInstallPrompt     = %InstallQuestionDef%
  73.  
  74. ;Make sure MMC was installed.
  75. [CheckForMMC]    
  76.     RegCheck         = HKLM,Software\Microsoft\MMC,,,,%MMCNotInstalled%
  77.  
  78. ; i386 Install everything
  79. [DefaultInstall]
  80.     CopyFiles        = CmdLineCopy, SceTemplatesCopy, WinSysCopy, InfCopy, ,AcluiHelpCopy
  81.     RegisterDll        = RegisterDLLSection
  82.     Addreg            = MMCReg
  83.  
  84. ; Alpha install.
  85. ;[DefaultInstall.NTAlpha]
  86. ;    CopyFiles        = CmdLineCopyNTAlpha, SceTemplatesCopy, WinSysCopy, InfCopy, ,AcluiHelpCopy
  87. ;    RegisterDll        = RegisterDLLSection
  88. ;    Addreg            = MMCReg
  89.  
  90. ;Make sure our reg key exists.
  91. [DefCheckInstallation]
  92.     RegCheck        = HKLM,Software\Microsoft\MMC\SnapIns\{803E14A0-B4FB-11D0-A0D0-00A0C90F574B},,,,%SetupNotCompleteMMC%
  93.  
  94. ; Success ful message
  95. [DefFinish]
  96.     PostInstallPrompt    = %FinishMessage%
  97.  
  98. ; Directory Creation area, and where to copy.
  99. [DestinationDirs]
  100.     ; SCE stuff.
  101.     SceDirCopy=25, Security
  102.     SceTemplatesCopy = 25, Security\Templates
  103.     WinSysCopy=11,
  104.     CmdLineCopy=11
  105.     InfCopy=25, Inf
  106.     AclUiHelpCopy=25,help
  107.  
  108.  
  109. ; Install MMC
  110. [RunMMC.NTx86]
  111.     IMMC.EXE
  112.  
  113. [RunMMC.NTAlpha]
  114.     AMMC.EXE
  115.  
  116. ; Secure out directoies and registry keys.
  117. [PostSecureDirectory]
  118.     DelReg = DelRegSecEdit
  119.     PostRunApp = DeleteSetupSAD
  120.  
  121. [SecureDirectory]
  122.     FileCheck = %11%\scedll.dll,,%FileNotFound%
  123.     FileCheck = %11%\secedit.exe,,%FileNotFound%
  124.     PostRunApp = RunSecureDirectory
  125.  
  126. [RunSecureDirectory]
  127.     secedit.exe /configure /areas FILESTORE REGKEYS /cfg .\scesetup.inf /db %25%\security\database\scesetup.sdb /overwrite
  128.     
  129. [DeleteSetupSAD]
  130. del /F /Q %25%\security\database\scesetup.sdb
  131.  
  132. [RegisterDLLSection]
  133. %11%\Scedll.dll
  134. %11%\wsecedit.dll
  135.  
  136. ; If the register section didn't work, then we'll do this instead.
  137. [PostSetupCmdSection]
  138.     regsvr32.exe  %11%\scedll.dll    /s
  139.     regsvr32.exe  %11%\wsecedit.dll    /s
  140.  
  141. [MMCPostSetupCmdSection]
  142.     regsvr32.exe  %11%\mmcndmgr.dll /s
  143.     regsvr32.exe  %11%\hhctrl.ocx /s
  144.     regsvr32.exe  %11%\itss.dll /s
  145.     regsvr32.exe  %11%\itircl.dll /s
  146.  
  147. ; BEGIN Register section
  148.     [MMCreg]
  149.         HKCR,.msc,,2,mscfile
  150.         HKCR,mscfile\shell\open\command,,,"%11%\MMC.EXE ""%%1"""
  151.         HKCR,Clsid\%CLSID_RSHX_NTFS%,,,%DESCRIPTION%
  152.         HKCR,Clsid\%CLSID_RSHX_NTFS%\InProcServer32,,,%MODULENAME%
  153.         HKCR,Clsid\%CLSID_RSHX_NTFS%\InProcServer32,"ThreadingModel",,Apartment
  154.         HKCR,*\%SHEXPS%\%CLSID_RSHX_NTFS%,,,
  155.         HKCR,Drive\%SHEXPS%\%CLSID_RSHX_NTFS%,,,
  156.         HKCR,Directory\%SHEXPS%\%CLSID_RSHX_NTFS%,,,
  157.         HKCR,Clsid\%CLSID_BRIEFCASE%\%SHEXPS%\%CLSID_RSHX_NTFS%,,,
  158.  
  159.     [DelRegSecEdit]
  160.         HKLM,Software\Microsoft\Windows Nt\CurrentVersion\Secedit,DefaultProfile
  161.         HKLM,Software\Microsoft\Windows Nt\CurrentVersion\Secedit,TemplateUsed
  162. ; END Registr section
  163.  
  164. ; BEGIN Copy Files sections
  165.     ; Template files to %windir%\security\templates
  166.     [AclUiHelpCopy]
  167.         Aclui.hlp,,,32
  168.     [SceTemplatesCopy]
  169.         securws4.inf,,,32
  170.         securdc4.inf,,,32
  171.         basicwk4.inf,,,32
  172.         basicsv4.inf,,,32
  173.         basicdc4.inf,,,32
  174.         compws4.inf,,,32
  175.         compdc4.inf,,,32
  176.         hisecws4.inf,,,32
  177.         hisecdc4.inf,,,32
  178.         off97sr1.inf,,,32
  179.  
  180.     ; Win sys copy to %windir%\system32
  181.     [CmdLineCopy]
  182.         ; Sec edit.
  183.         SeCEdit.exe,,,32
  184.         scedll.dll,,,32
  185.         Aclui.dll,,,32
  186.         Rshx32_5.dll,,,32
  187.         ; Jet enjine
  188.         esent.dll,,,32
  189.         esentprf.dll,,,32
  190.         esentutl.exe,,,32
  191.         ; ACL editor dlls.
  192.  
  193.     [CmdLineCopyNTAlpha]
  194.         ; Sec edit.
  195.         SeCEdit.exe,,,32
  196.         scedll.dll,,,32
  197.         ; ACL editor dlls.
  198.         Aclui.dll,,,32
  199.         Rshx32_5.dll,,,32
  200.         ; Jet enjine
  201.         esent.dll,,,32
  202.         esentprf.dll,,,32
  203.         esentutl.exe,,,32
  204.         mfc42u.dll,,,32
  205.  
  206.     [WinSysCopy]
  207.         ; Secedit Executables.
  208.         wsecedit.dll,,,32
  209.  
  210.     [InfCopy]
  211.         SCEregvl.inf,,,32
  212.  
  213. ; String declartions
  214. [Strings]
  215. WrongNTVersion="You must install Microsoft Windows NT 4.0 or greater."
  216. WrongNTServicePack="You must install Microsoft Windows NT 4.0 Service Pack 4."
  217. WrongIEVersion="You must install Microsoft Internet Explorer 3.0 or greater."
  218. LogonAsAdmin="You must be logged on as adminitrator."
  219. SCETITLE="Microsoft Windows NT Security Configuration Manager"
  220. DISKTITLE="Microsoft Windows NT Service Pack 4 CD"
  221. FinishMessage="Setup completed successfully."
  222. InstallCmdLineHelp="Install command line tools only."
  223. InstallMMCOnlyHelp="Install MMC only."
  224. MMCNotInstalled="You must install Microsoft Management."
  225. DefaultInstallHelp="Default installation installs the UI and command line tools."
  226. MODULENAME=rshx32_5.dll
  227. DESCRIPTION=Security Shell Extension
  228. SHEXPS=shellex\PropertySheetHandlers
  229. InstallQuestionDef="Install Microsoft Windows NT Security Configuration Editor - Full install?"
  230. InstallQuestionCmd="Install Microsoft Windows NT Security Configuration Editor - Command line tool only?"
  231. CLSID_RSHX_NTFS={1f2e5c40-9550-11ce-99d2-00aa006e086c}
  232. CLSID_BRIEFCASE={85BBD920-42A0-1069-A2E4-08002B30309D}
  233. InstallMMCQ="Would you like to Install Microsoft Management Console?"
  234. InstallMMCWarn="This portion of setup may request that you reboot your computer.  Please reboot the computer and run setup again if you are asked to do so."
  235. SetupNotCompleteFile="MSSCE did not complete successfully. File '%0' not found."
  236. SetupNotComplete="Setup did not complete successfully!  Please run setup again"
  237. SetupNotCompleteMMC="Microsoft Management console was not found.  Please run setup again and install Microsoft Manage Console."
  238. IncompatibleFileVersion="'%0' is incompatible with Security Configuration Editor.  Please install a compatible version before installing Security Configuration Editor. Setup aborting"
  239.