NIKZZZZ 7sh3 помогите пожалуйта разобраться
собираю с помощю конструктора из шапки (Базовый конструктор (26.03.2008) BartPE+ (Nu2Menu\BsExplorer, IE, PnP, MMC, Multimedia) - © 7sh3 ) на основе Windows SP2 VL RUS
со следующими плагинами:
использую модифицированный под отсутствие XPE плагин imdisk. все бы хорошо, но есть нюансы:
1 почему то при размере оперативной памяти виртуальной машины 768 мб размер рамдрайва равен 64
2 не срабатывает увеличение размера рамдрайва (imdiskext.cmd) от чего теряется вся его прелесть
при ручном запуске из консоли комманды из батника, или при запуске батника при помощи shellexecute получаю такой ответ:
[more=imdisk.inf]; PE Builder v3 plug-in INF
; ImDisk 1.0.3.14 by Olof Lagerkvist [http://www.ltr-data.se/opencode.html]
; Based on plugin by cdob [http://www.911cd.net/forums//index.php?s=5ec2e0bb0f4f5eceae5169d4cedf0277&showtopic=19711&st=20]
; AutoRamResizer by nikzzzz
; Modified by 7sh3
[Version]
Signature= "$Windows NT$"
[PEBuilder]
Name="010 [03] ImDisk Virtual Disk Driver + AutoRamResizer by Nikzzzz"
Help="\"
Enable=1
[SourceDisksfiles]
files\imdisk.cpl=2,,1
files\imdisk.exe=2,,1
files\imdisk.sys=4,,1
files\ramstatus.exe=2,,1
files\ramdrive.cmd=2,,1
files\imdiskext.cmd=2,,1
;imdsksvc.exe=2,,1
[Default.AddReg]
0x1, "Control Panel\don't load","imdisk.cpl","No"
;--------------------------------------------------------------------------------------
[Software.AddReg]
;0x1,"Microsoft\Windows\CurrentVersion\RunOnceEx\100","100","||xpeinit.exe -f -m ""Вычисление размера RAM-диска..."" pe_imdisk.cmd %ramdrv% FAT 4 70 30 % RAMDisk"
;0x1,"Microsoft\Windows\CurrentVersion\RunOnceEx\100","100","||xpeinit.exe -f -m ""Вычисление размера RAM-диска..."" pe_imdisk.cmd %ramdrv% NTFS 4 64 70 % RAMDisk /c"
0x1,"Microsoft\Windows\CurrentVersion\RunOnceEx\100","100","||xpeinit.exe -f -m ""Вычисление размера RAM-диска..."" ramdrive.cmd %ramdrv% NTFS 4 70 30 % /c"
; Программы\Администрирование\Виртуальная память
;0x2,"Sherpya\XPEinit\AdminTools","Виртуальная память\Увеличить размер RAM-диска на 64МБ","shellexecute.exe|/h pe_imdiskext.cmd|shell32.dll,166"
;0x2,"Sherpya\XPEinit\AdminTools","Виртуальная память\Панель управления RAM-диском (ImDisk)","imdisk.cpl||shell32.dll,166"
; Программы\Администрирование
;0x2,"Sherpya\XPEinit\AdminTools","ImDisk Virtual Disk Driver","imdisk.cpl||imdisk.cpl,0"
;--------------------------------------------------------------------------------------
; Unmount ImDisk Virtual Disk
0x1,"Classes\Drive\shell\(ImDisk) UnMount...\command","","rundll32.exe imdisk.cpl,RunDLL_RemoveDevice %L"
; Save disk contents as image file (.img .iso)
0x1,"Classes\Drive\shell\(ImDisk) Save...\command","","rundll32.exe imdisk.cpl,RunDLL_SaveImageFile %L"
; Mount as ImDisk Virtual Disk (.iso)
0x1,"Classes\.iso","","isofile"
0x1,"Classes\isofile","","Image File (ISO)"
0x1,"Classes\isofile\DefaultIcon","","shell32.dll,011"
0x1,"Classes\isofile\shell\(ImDisk) Mount...\command","","rundll32.exe imdisk.cpl,RunDLL_MountFile %L"
; Mount as ImDisk Virtual Disk (.img)
0x1,"Classes\.img","","imgfile"
0x1,"Classes\imgfile","","Image File (IMG)"
0x1,"Classes\imgfile\DefaultIcon","","shell32.dll,008"
0x1,"Classes\imgfile\shell\(ImDisk) Mount...\command","","rundll32.exe imdisk.cpl,RunDLL_MountFile %L"
; Mount as ImDisk Virtual Disk (.ima)
0x1,"Classes\.ima","","imafile"
0x1,"Classes\imafile","","Image File (IMA)"
0x1,"Classes\imafile\DefaultIcon","","shell32.dll,007"
0x1,"Classes\imafile\shell\(ImDisk) Mount...\command","","rundll32.exe imdisk.cpl,RunDLL_MountFile %L"
;--------------------------------------------------------------------------------------
[Strings]
RamDiskDriveLetter="B:"
[SetupReg.AddReg]
0x2,"ControlSet001\Control\Session Manager\Environment","temp","%RamDiskDriveLetter%"
0x2,"ControlSet001\Control\Session Manager\Environment","tmp","%RamDiskDriveLetter%"
0x2,"ControlSet001\Control\Session Manager\Environment","ramdrv","%RamDiskDriveLetter%"
;--------------------------------------------------------------------------------------
0x4,"ControlSet001\Services\ImDisk","Type",0x1
0x4,"ControlSet001\Services\ImDisk","Start",0x3
0x4,"ControlSet001\Services\ImDisk","ErrorControl",0x0
0x1,"ControlSet001\Services\ImDisk","ImagePath","system32\drivers\imdisk.sys"
0x1,"ControlSet001\Services\ImDisk","DisplayName","ImDisk Virtual Disk Driver"
0x1,"ControlSet001\Services\ImDisk","Description","Disk emulation driver"
;--------------------------------------------------------------------------------------
; I/O Packet Forwarder Service for the ImDisk Virtual Disk Driver for Windows NT/2000/XP.
; This service redirects I/O requests sent to the ImDisk Virtual Disk Driver
; to another computer through a serial communication interface or by opening a TCP/IP connection.
;--------------------------------------------------------------------------------------
;0x4,"ControlSet001\Services\ImDskSvc","Type",0x10
;0x4,"ControlSet001\Services\ImDskSvc","Start",0x3
;0x4,"ControlSet001\Services\ImDskSvc","ErrorControl",0x0
;0x2,"ControlSet001\Services\ImDskSvc","ImagePath","%SystemRoot%\system32\imdsksvc.exe"
;0x1,"ControlSet001\Services\ImDskSvc","DisplayName","ImDisk Virtual Disk Driver Helper"
;0x1,"ControlSet001\Services\ImDskSvc","ObjectName","LocalSystem"
;0x1,"ControlSet001\Services\ImDskSvc","Description","Helper service for ImDisk Virtual Disk Driver."
;--------------------------------------------------------------------------------------[/more]
[more=ramdrive.cmd]@echo off
:: *----------------------------------------------------------------------------*
:: %1=MountPoint %2=FileSystem %3=MinSize %4=Reserv %5=Size %6=Unit %7=label %8=Pack
:: "MinSize" - The minimum size RamDisk
:: "Reserv" - It is reserved under system
:: "MaxSize=XXX" - The maximum size RamDisk
:: "MaxSize=XXX" - More than MaxSize=128 - not stable in ramboot build with video driver
:: *----------------------------------------------------------------------------*
set MaxSize=256
:: *----------------------------------------------------------------------------*
set FileSystem=%2
set Pack=%8
:: *----------------------------------------------------------------------------*
:: The rigid size
:: *----------------------------------------------------------------------------*
if "%6"=="M" (
set "Size=%5"
goto _1
)
:: *----------------------------------------------------------------------------*
:: Calculation of the size
:: *----------------------------------------------------------------------------*
for /f "usebackq skip=1 tokens=3 delims=: " %%i in (`RamStatus.exe`) do set size=%%i
set /a size=%size%/1024
set /a "size=(%size%-%4)*%5/100"
if %size% lss %3 set size=%3
:_1
:: *----------------------------------------------------------------------------*
:: There is no sense to use NTFS for small disks
:: *----------------------------------------------------------------------------*
:if %size% lss 16 set "FileSystem=fat"
:: *----------------------------------------------------------------------------*
:: Packing is incompatible with FAT
:: *----------------------------------------------------------------------------*
if %size% GTR %MaxSize% set size=%MaxSize%
imdisk.exe -a -t vm -m b: -s %size%M -p "/fs:%FileSystem% /q /y"
:: *----------------------------------------------------------------------------*[/more]
[more=imdiskext.cmd]@echo off
imdisk.exe -e -s 64M -m B:
start nircmd.exe infobox "ђ §¬Ґа RAM-¤ЁбЄ 㢥«ЁзҐ- - 64 MЃ" "ImDisk Extend Size..."
@exit[/more]
[more=файлы в папке]C:\pebuilder\plugin\imdisk\files\;327306;08.06.2010 9:05:24;08.06.2010 23:29:38;~~~~~D
C:\pebuilder\plugin\imdisk\files\imdisk.cpl;81920;08.06.2010 9:05:24;23.11.2009 11:32:19;~~~A~~
C:\pebuilder\plugin\imdisk\files\imdisk.exe;36352;08.06.2010 9:05:24;23.11.2009 11:32:20;~~~A~~
C:\pebuilder\plugin\imdisk\files\imdisk.sys;20224;08.06.2010 9:05:24;22.11.2009 17:15:34;~~~A~~
C:\pebuilder\plugin\imdisk\files\imdiskext.cmd;133;08.06.2010 9:05:24;02.12.2009 23:18:49;~~~A~~
C:\pebuilder\plugin\imdisk\files\imdsksvc.exe;10240;08.06.2010 9:56:23;22.11.2009 16:05:30;~~~A~~
C:\pebuilder\plugin\imdisk\files\memlog.exe;8568;08.06.2010 9:05:24;14.05.2003 17:07:58;~~~A~~
C:\pebuilder\plugin\imdisk\files\ramdrive.cmd;1933;08.06.2010 23:29:28;09.06.2010 0:25:23;~~~A~~
C:\pebuilder\plugin\imdisk\files\ramstatus.exe;45056;08.06.2010 9:56:39;26.03.2008 22:50:00;~~~A~~
C:\pebuilder\plugin\imdisk\files\rawcopy.exe;12288;08.06.2010 9:05:24;09.03.2010 16:32:52;~~~A~~
C:\pebuilder\plugin\imdisk\files\xpeinit.exe;110592;08.06.2010 23:15:27;26.03.2008 22:50:00;~~~A~~[/more]
[more=autorun1-base.cmd]@echo off
title ...
start ie4uinit.exe
rem Монтирование B:\
;start ramdrive.cmd
start /wait regexpander.exe
start /wait regedit.exe /s addreg.reg
;start /wait imdisk.exe -a -t vm -m B:
;start /wait imdisk.exe -e -s 64M -m B:
;start /wait Echo y | format B: /FS:NTFS /u > nul
start /wait nircmd.exe service start eventlog
start /wait shellexecute.exe /h bartpe.exe -cn WinPE -wg WORKGROUP
start /wait shellexecute.exe /h net localgroup Администраторы /add SYSTEM
start /wait nircmd.exe execmd mkdir "%ALLUSERSPROFILE%\Application Data\Microsoft\Network\Connections\Pbk"
start /wait nircmd.exe execmd mkdir "%ALLUSERSPROFILE%\Application Data\Microsoft\Windows NT\NTBackup\catalogs51"
start /wait hwpnp.exe -all +ISAPNP\ +PCI\VEN /d /log+
start /wait shellexecute.exe /h qres.exe /x 800 /y 600 /c:32 /r:60
@exit[/more]