About Terminal Server, Citrix, Delphi and other stuff
21 Jun
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
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
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.
Active Directory Altiris Automation Manager bug Citrix Dell Delphi Exchange Exchange2003 Exchange2010 Hack Hewlett-Packard HP iOS Jailbreak Java LinkedIn Linux Lync McAfee MSI MySQL Navigation Objects Office Outlook Passat Password PowerPoint PowerShell RES RNS315 RNS510 SasLibEx Terminal Server ThinApp TSAdminEx VBS VCDS Vista VMWare Volkswagen Windows PE Wordpress XenApp
WP Cumulus Flash tag cloud by Roy Tanck requires Flash Player 9 or better.