|
4#
楼主 |
发表于 2011-4-19 10:23:12
|
只看该作者
回复 #2 olc 的帖子
以下是使用记事本打开usboot phase-ii.isc查看到的EWF安装部分的脚本文件
[InstallEwfFilter_Select]
output,, ""
output,, " Select options for step XIV: *"
output,, ""
output,, " Installation of the Microsoft EWF filter"
output,, ""
output,, " (optional -> virtually protects partitions from write operations if enabled by caching writes) "
output,, " ( in RAM [inform yourself about side effects!] - may help to extend the lifetime ) "
output,, " ( of flash devices especially when formatted with NTFS - needs 'ewf.sys' and ) "
output,, " ( 'ewfmgr.exe' from XP embedded SP2 (or newer) in folder 'ewf' ) "
output,, ""
output,, ""
if, $_osVersion, 0, containsNot, "3", "5"
output,, " This is only supported on 32-bit versions of Windows XP / 2003"
output,, ""
set, $installEwfFilter_choice,, "s"
else
getDirectoryContents, $ewfSys, name, files, 0, "ewf.sys", "ewf"
if, $ewfSys, 0, contains, "?°"
output,, " Choose the desired action by pressing the corresponding key:"
output,, ""
output,, " <space> install the Microsoft EWF filter"
output,, " <s> skip this step"
output,, ""
output,, ""
waitForKey, $installEwfFilter_choice, 0, " s"
else
output,, " Found no 'ewf.sys' in folder 'ewf'"
output,, ""
set, $installEwfFilter_choice,, "s"
endif
endif
if, $installEwfFilter_choice, 0, contains, "s"
output,, " ...skipping step"
elseif, $installEwfFilter_choice, 0, contains, " "
output,, " Microsoft EWF filter will be installed"
endif
output,, ""
getDateTime, $dateTime
output,, $dateTime
output,, "================================================================================================"
return
[InstallEwfFilter_Process]
output,, ""
output,, " Processing step XIV: *"
output,, ""
output,, " Installation of the Microsoft EWF filter"
output,, ""
output,, ""
if, $installEwfFilter_choice, 0, contains, "s"
output,, " ...skipping step"
elseif, $installEwfFilter_choice, 0, contains, " "
output,, " Installing Microsoft EWF filter -->"
output,, ""
createRegistryKeys, "System\CurrentControlSet\Services", "EWF"
setRegistryValue, "System\CurrentControlSet\Services\EWF", "DisplayName", "REG_SZ", ""
installDrivers, complete, ".\ewf\ewf.inf||EWF|||||.|"
getRegistryValue, $ewfState, "System\CurrentControlSet\Services\EWF", "DisplayName", "REG_SZ"
if, $ewfState, 0, containsNot, ""
output,, " EWF filter successfully installed"
set, $_rebootRequired,, "true"
else
output,, " Couldn't install the EWF filter"
call, NoSuccess
endif
endif
output,, ""
getDateTime, $dateTime
output,, $dateTime
output,, "================================================================================================"
return
;~3 |
|