$theTitle=wp_title(" - ", false); if($theTitle != "") { ?>
About Virtualization, VDI, SBC, Application Compatibility and anything else I feel like
21 Jun // php the_time('Y') ?>
In my SATA Controller Identification tool I was using the TSaveDialog (Delphi 2010) but I got a report that under Windows PE the dialog is never shown.
There’s no exception and I didn’t really bother to check why it fails. Instead I decided to replace it with the GetSaveFileName API which does work under Windows PE.
Example:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | var sl: TStringList; ofn: OPENFILENAME; Buf: array[0..MAX_PATH] of Char; ZeroMemory(@ofn, SizeOf(ofn)); ofn.lStructSize := SizeOf(ofn); ofn.hWndOwner := Form1.Handle; ofn.lpstrFile := @Buf[0]; ofn.nMaxFile := Length(Buf); ofn.lpstrInitialDir := PChar(GetCurrentDir); ofn.lpstrFilter := 'Any File'#0'*.*'#0'Registry file'#0'*.reg'#0#0; ofn.nFilterIndex := 0; ZeroMemory(@Buf, SizeOf(Buf)); if GetSaveFileName(ofn) then begin // Buf now contains the filename end; |
18 Mar // php the_time('Y') ?>
After compiling the VMWare VMXNET3 Driver for Linux I needed a driver for the Windows PE Image as well.
Compared to what I needed to do for Linux this was a breeze!
First we need the VMWare tools again so I grabbed windows.iso from /vmimages/tools-isomages.
The driver files are in a cab file, VMXNET3.cab, extract this cab file somewhere and open the Altiris PXE Configuration tool.
Select the Windows PE Entry and click Edit:
15 Mar // php the_time('Y') ?>
I was booting a new VMWare Virtual Machine with Windows PE through Altiris for initial deployment but Windows PE halted with a BSOD:
0x0000005D means UNSUPPORTED_PROCESSOR (defined in bugcodes.h) so I expected there was a x86 vs x64 problem.
The VM was configured for a 32 bit OS:
The Altiris Job was configured to use Auto Select:
But instead of the x86 version of Windows PE, Altiris attempts to boot the x64 version and this explains the BSOD: VMWare prevents the CPU from going to x64 mode and thus Windows has no choice but to halt.
Workaround is to change the Automation pre-boot environment in Altiris to x86:
Note that it’s no problem to deploy an x64 OS using the x86 version of Windows PE so I don’t see any real problems with this workaround.