Jump to content











Photo
- - - - -

LWBpe Project (Windows PE 3.0 run simultaneously with Linux with the Windows Services for UNIX)


  • Please log in to reply
1 reply to this topic

#1 Marietto

Marietto

    Frequent Member

  • Advanced user
  • 268 posts
  • Location:Italy
  • Interests:Computers,movies,read/write,talking about philosophy and religion.
  •  
    Italy

Posted 29 October 2010 - 10:11 PM

Hello,

today is my birthday and I want to make a "gift" to the member's of boot-land,explaining a new project. I've got the idea when I found this project : http://lbw.sourceforge.net/

From the web page :

LBW is a Linux system call translator for Windows. It allows you to run unmodified Linux applications on top of Windows. It is not virtualisation; only one operating system is running, which is Windows. It is not emulation; Linux applications run directly on the processor, resulting in (theoretically) full native performance. Consider it as being like WINE, but in reverse.
Right now LBW runs on 32-bit Windows XP only.

This seems to be very nice. It says that it will not work with Windows 7,that's why we can work to be able to do it. So,what about to use Windows PE 3.0 ? I've started this project by myself,but it is became too hard to do everything alone. This is what I did right now :

a) Got the ISO image of Windows PE 3.0
b) mounted boot.wim read/write + commit changes with GimageX
c) injected inside boot.wim (into \Windows\System32 folder) :

1) the extracted files of WindowsInstaller-KB893803-v2-x86
2) C:\Windows\System32\wbem folder,taken from a working Windows 7 installation
3) C:\Windows\System32\wbemcomn.dll,taken from a working Windows 7 installation

On the root of the Windows PE 3.0 ISo image,you can create a folder,named Tools and inside it you can copy the extracted files of the Windows Services for UNIX 3.5 (the file name of the executable is SFU35SEL_EN.EXE),because it is required to run LBW.

1) Windows Services for UNIX Version 3.5,taken from here :

http://www.microsoft...a4-02878ff11778

Again,on the root of the Win PE 3.0 iso image,inside the Tools folder,you can copy these files :

2) LBW 0.1 SETUP.EXE,the LBW executable.

3) Linux compressed file system : DEBIAN.TAR.BZ2 ;

If you want to run a full Debian chroot, you will need access to a real Debian 32-bit x86 machine to contruct a filesystem. (For legal reasons I cannot distribute a Debian filesystem with LBW, and cdebootstrap doesn't work yet)

On your Debian system, become root, and then do:

cd /tmp
deboostrap lenny debian
tar cvjf debian.tar.bz2 debian

To install the Windows Services for Unix 3.5,you will need to install Internet Explorer 8.0 on Windows PE 3.0. These are the steps I've taken to do it :

a) Got the Internet Explorer 8 script for win7rescuePE. It is something like this :

[Main]
Title=Internet Explorer 8
Description=Internet Explorer 8 for win7rescuePE
Type=script
Level=3
Version=001
Selected=False
Author=
Date=
Contact=

[variables]
%ProgramTitle%=Internet Explorer 8.0
%ProgramEXE%=iexplore.exe
%ProgramFolder%=Internet Explorer

[Process]
RunFromRam,True
ReadENV
//Add_Shortcut,Desktop,,X:\Program Files\Internet Explorer\iexplore.exe,Internet Explorer,X:\Program Files\Internet Explorer
//
FileCopy,"%BootSRC%\Windows\system32\*.nls","%target_sys%"
//important when File to copy standard used
FileCopy,"%BootSRC%\Windows\system32\stdole2.tlb","%target_sys%"
FileCopy,"%BootSRC%\Windows\system32\stdole32.tlb","%target_sys%"
//
DirMake,%target_win%\AppPatch\%DistLang%
FileCopy,"%InstallSRC%\Windows\AppPatch\AcGenral.dll","%target_win%\AppPatch"
FileCopy,"%InstallSRC%\Windows\AppPatch\AcLayers.dll","%target_win%\AppPatch"
FileCopy,"%InstallSRC%\Windows

and so on...

b) converted this script into 3 parts :

1) batch script to get the necessary Internet Explorer 8.0 files,taking them from a working Windows 7 installation. This is the resulting batch script :

@echo off
cls
set BootSRC="C:"
set InstallSRC="C:"
set target_sys="C:\ie8\Windows\System32"
set target_win="C:\ie8\Windows"
set DistLang="it-IT"
set target_prog="C:\ie8\Program Files"
C:
cd \
rd ie8 /s
mkdir c:\ie8\Windows\System32
mkdir c:\ie8\"Program Files"
copy "%BootSRC%\Windows\system32\*.nls" "%target_sys%"
copy "%BootSRC%\Windows\system32\stdole2.tlb" "%target_sys%"
copy "%BootSRC%\Windows\system32\stdole32.tlb" "%target_sys%"
mkdir %target_win%\AppPatch\%DistLang%
copy "%InstallSRC%\Windows\AppPatch\AcGenral.dll" "%target_win%\AppPatch"
copy "%InstallSRC%\Windows\AppPatch\AcLayers.dll" "%target_win%\AppPatch"
copy "%InstallSRC%\Windows\AppPatch\AcRes.dll" "%target_win%\AppPatch"
copy "%InstallSRC%\Windows\AppPatch\AcSpecfc.dll" "%target_win%\AppPatch"
copy "%InstallSRC%\Windows\AppPatch\AcXtrnal.dll" "%target_win%\AppPatch"
copy "%InstallSRC%\Windows\AppPatch\drvmain.sdb" "%target_win%\AppPatch"
copy "%InstallSRC%\Windows\AppPatch\msimain.sdb" "%target_win%\AppPatch"
copy "%InstallSRC%\Windows\AppPatch\pcamain.sdb" "%target_win%\AppPatch"
copy "%InstallSRC%\Windows\AppPatch\sysmain.sdb" "%target_win%\AppPatch"
copy "%InstallSRC%\Windows\AppPatch\%DistLang%\AcRes.dll.mui" "%target_win%\AppPatch\%DistLang%"
mkdir %target_win%\Help\Windows\%DistLang%
copy "%InstallSRC%\Windows\Help\Windows\%DistLang%\browser.h1s" "%target_win%\Help\Windows\%DistLang%"
mkdir "%target_win%\inf\IEM"
Xcopy "%InstallSRC%\Windows\inf\IEM" "%target_win%\inf\IEM" /s
copy "%InstallSRC%\Windows\System32\admparse.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\advpack.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\Apphlpdm.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\corpol.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\ddraw.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\ddrawex.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\dxtmsft.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\dxtrans.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\html.iec" "%target_sys%"
copy "%InstallSRC%\Windows\System32\icardie.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\ie4uinit.exe" "%target_sys%"
copy "%InstallSRC%\Windows\System32\ieakeng.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\ieaksie.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\ieakui.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\ieapfltr.dat" "%target_sys%"
copy "%InstallSRC%\Windows\System32\ieapfltr.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\iedkcs32.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\ieframe.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\iepeers.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\iernonce.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\iertutil.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\iesetup.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\iesysprep.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\ieui.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\ieuinit.inf" "%target_sys%"
copy "%InstallSRC%\Windows\System32\ieUnatt.exe" "%target_sys%"
copy "%InstallSRC%\Windows\System32\iexpress.exe" "%target_sys%"
copy "%InstallSRC%\Windows\System32\imgutil.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\inetcpl.cpl" "%target_sys%"
copy "%InstallSRC%\Windows\System32\inetcomm.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\inseng.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\jscript.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\jsproxy.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\licmgr10.dll" "%target_sys%"
mkdir "%target_sys%\migration"
Xcopy "%InstallSRC%\Windows\System32\migration\*.*" "%target_sys%\migration"
REM copy "%InstallSRC%\Windows\System32\migration\WininetPlugin.dll" "%target_sys%\migration"
copy "%InstallSRC%\Windows\System32\msfeeds.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\msfeedsbs.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\msfeedssync.exe" "%target_sys%"
copy "%InstallSRC%\Windows\System32\mshta.exe" "%target_sys%"
copy "%InstallSRC%\Windows\System32\mshtml.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\mshtml.tlb" "%target_sys%"
copy "%InstallSRC%\Windows\System32\mshtmled.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\mshtmler.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\msls31.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\msrating.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\mstime.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\occache.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\pngfilt.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\RegisterIEPKEYs.exe" "%target_sys%"
copy "%InstallSRC%\Windows\System32\SetIEInstalledDate.exe" "%target_sys%"
copy "%InstallSRC%\Windows\System32\tdc.ocx" "%target_sys%"
copy "%InstallSRC%\Windows\System32\url.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\urlmon.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\vbscript.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\webcheck.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\wextract.exe" "%target_sys%"
copy "%InstallSRC%\Windows\System32\wininet.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\wuapi.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\wudriver.dll" "%target_sys%"
copy "%InstallSRC%\Windows\System32\wups.dll" "%target_sys%"
mkdir %target_sys%\%DistLang%
copy "%InstallSRC%\Windows\System32\%DistLang%\admparse.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\advpack.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\ddraw.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\html.iec.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\icardie.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\ie4uinit.exe.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\ieakeng.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\ieaksie.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\ieakui.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\iedkcs32.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\ieframe.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\iepeers.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\iernonce.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\iesetup.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\ieui.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\ieunatt.exe.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\iexpress.exe.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\inetcpl.cpl.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\inseng.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\jscript.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\licmgr10.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\msfeedsbs.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\mshta.exe.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\mshtml.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\mshtmler.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\msrating.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\occache.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\urlmon.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\vbscript.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\webcheck.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\wextract.exe.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\wininet.dll.mui" "%target_sys%\%DistLang%"
copy "%InstallSRC%\Windows\System32\%DistLang%\wuapi.dll.mui" "%target_sys%\%DistLang%"
mkdir "c:\ie8\program files\Internet Explorer"
Xcopy "%InstallSRC%\Program Files\Internet Explorer\*.*" "c:\ie8\program files\Internet Explorer"
mkdir "c:\ie8\program files\Common Files\microsoft shared\vgx"
copy "%InstallSRC%\Program Files\Common Files\microsoft shared\vgx\VGX.dll" "c:\ie8\program files\Common Files\microsoft shared\vgx"
copy "%InstallSRC%\Windows\System32\CERTENROLL.DLL" "%target_sys%"
copy "%InstallSRC%\Windows\System32\CSCAPI.DLL" "%target_sys%"
copy "%InstallSRC%\Windows\System32\DEVMGR.DLL" "%target_sys%"
copy "%InstallSRC%\Windows\System32\EFSADU.DLL" "%target_sys%"
copy "%InstallSRC%\Windows\System32\HLINK.DLL" "%target_sys%"
copy "%InstallSRC%\Windows\System32\MLANG.DLL" "%target_sys%"
copy "%InstallSRC%\Windows\System32\MMDEVAPI.DLL" "%target_sys%"
copy "%InstallSRC%\Windows\System32\MSOERT2.DLL" "%target_sys%"
copy "%InstallSRC%\Windows\System32\PUIAPI.DLL" "%target_sys%"
copy "%InstallSRC%\Windows\System32\RSTRTMGR.DLL" "%target_sys%"
copy "%InstallSRC%\Windows\System32\OLEDLG.DLL" "%target_sys%"
copy "%InstallSRC%\Windows\System32\VAULTCLI.DLL" "%target_sys%"
pause

2) Now you need to import the Internet Explorer 8 reg keys from a working Windows 7 installation to Windows PE 3.0. I've attached 21 registry files,created by converting the rest of the Internet Explorer 8 script for win7rescuePE into registry entries.

3) On the root of the Windows PE 3.0 iso image,you need to copy this batch file,to make the whole procedure automatized.

@echo off
set tagsource=\sources
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagsource%" set cddrive=%%i:
set tagdest=\"autoexec.bat"
for %%i in (c d e f g h i j k l m n o p q r s t u v w x y z) do if exist "%%i:%tagdest%" set drivedest=%%i:
echo %cddrive%
echo %drivedest%
%cddrive%
cd \TOOLS\IE8
regedit.exe /c /s 0.reg
regedit.exe /c /s 1.reg
regedit.exe /c /s 2.reg
regedit.exe /c /s 3.reg
regedit.exe /c /s 4.reg
regedit.exe /c /s 5.reg
regedit.exe /c /s 6.reg
regedit.exe /c /s 7.reg
regedit.exe /c /s 8.reg
regedit.exe /c /s 9.reg
regedit.exe /c /s 10.reg
regedit.exe /c /s 11.reg
regedit.exe /c /s 12.reg
regedit.exe /c /s 13.reg
regedit.exe /c /s 14.reg
regedit.exe /c /s 15.reg
regedit.exe /c /s 16.reg
regedit.exe /c /s 17.reg
regedit.exe /c /s 18.reg
regedit.exe /c /s 19.reg
regedit.exe /c /s 20.reg
regedit.exe /c /s 21.reg
MSIExec /RegServer
Net Start MSIServer

You need to use these last two lines because you have to start the setup procedure of the Windows Services for Unix.

4) Go to \Tools and run SFU35SEL_EN\Setup.exe,to start the installation of the Windows Services for Unix 3.5

Here I'm stuck,cause this error :

Module C:\SFU\admin\mapper.dll failed to register : HRESULT -2147024714.

Attached Files

  • Attached File  reg.rar   55.39KB   328 downloads


#2 Sha0

Sha0

    WinVBlock Dev

  • Developer
  • 1682 posts
  • Location:reboot.pro Forums
  • Interests:Booting
  •  
    Canada

Posted 30 October 2010 - 12:39 AM

... ... ...
Module C:\SFU\admin\mapper.dll failed to register : HRESULT -2147024714.

Thanks for sharing an interesting idea.

I believe that error code is:
The operating system cannot run %1.
Nope. I was wrong. I don't have an error code for that on my XP computer. Sorry.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users