Windows Embedded Blog

Archive for the ‘Windows 7’ Category

New Windows Embedded Tool: Driver Injector

with one comment

I have developed a new tool called Driver Injector for Windows Embedded which makes installing drivers easier and it helps a lot in case there are problem during a driver installation. The tool will automatically search for matching drivers and will inject them to the target system. This can help if you need to install lots of drivers from a driver DVD. In this case Driver injector will do the work for you. Just specify the devices.pmq file (run TAP.exe on your target device to get the device information) and specify the driver search directory – in this scenario it will be the driver DVD. After a few clicks all drivers are included in your image and Windows can install them automatically.

The tool also helps if there is a problem when installing a driver. Windows normally just shows that there was an error installing the driver (Cannot find file specified, The service specified is invalid,..). However it lacks important information. When this is the case just explore the INF file of the driver with Driver Injector. The tool will show you what is missing from your image within a few seconds. All missing files are highlighted. To solve the issue just copy the missing files to your image and install the driver again. This is the easiest and fastest way to solve these kind of errors.

The tool can be downloaded for free on the Elbacom Website: http://www.elbacom.com/embedded/products/tools

Also I have published a detailled how to on the techblog and will add additional howtos for specific usage scenarios within the next days.

Written by Wolfgang Unger

February 3, 2011 at 16:30

Free Keyboard Filter Driver for Windows Embedded Standard 7

leave a comment »

I have created a keyboard filter driver for Windows Embedded Standard 7 (32-bit & 64-bit) which allows you to block unwanted keys and key combinations.
The configuration of these key combinations is done via the command line tool kbfmgr. With it you can block any key and key combination by entering the scancodes of the keys.

The tool is free and can be downloaded on the Elbacom website: www.elbacom.com/embedded/products/tools/kbfd

It also works for Desktop versions of Windows 7.

Written by Wolfgang Unger

December 10, 2010 at 09:27

VMLauncher and Virtual PC RTM (Advanced Integration of XP Mode)

leave a comment »

Today Windows Virtual PC RTM has been released to MSDN subscribers. I just upgraded my RC version to the RTM and tested VMLauncher.
The Result: VMLauncher will also work with the final version of Windows Virtual PC.

You can download the free tool here and find more information about it here.

Written by Wolfgang Unger

October 8, 2009 at 16:02

Posted in Windows 7

BootVHD

leave a comment »

Download (v.0.9)

I wrote a command-line tool which allows you to easily add, remove or update your bootmanager configuration to use VHD files.
The tool will only work if you have a system with only VHD boot (no Win7 system installed directly!)

image

How to use it

The tool uses the following command line arguments:

BootVHD.exe –Install –VHD Win7Emb.vhd

No Argument  Displays all installed VHDs
-Install     Installs the VHD specified with the -VHD switch.")
-Name        Sets the name for the bootentry.")
             Works only together with the -Install switch.")
-Delete      Deletes the VHD specified with the -VHD switch.")
-VHD         Filename of the VHD file.")
             Can be located in the working directory of this program.")
             Can be located in the root directory of the boot partition."
-Default     Sets the specified VHD as the default bootentry.")
             VHD can be specified via the -VHD switch or ")
             use this switch together with the -Install switch.")
-Replace     Replaces the default bootentry with the specified VHD.")
             VHD can be specified via the -VHD switch or ")
             use this switch together with the -Install switch.")

 

Easy Deployment

The tool can be used as well for the easy deployment or update of new image versions in Windows Embedded Standard 2011 (Windows 7 Embedded).
For example if you have installed the Embedded OS in a VHD file (as shown in my previous post) you can easily upgrade your application or the whole image and then put the modified VHD file to an USB drive. The installation is then really easy. All you need to do is run a batchfile.

The BootVHD tool will copy the new VHD over to the bootpartition and can update the bootmanager to boot the new image by default.

Batchsample

BootVHD.exe –Install –VHD NewVersion.vhd –Name “Version 2.0” -default

With this call the NewVersion.vhd gets copied to the boot partition and an bootmanager entry with the name “Version 2.0” is being created.
The new entry is also the default boot entry.

This way you can do an easy deployment of a new version and in case something is wrong with it you can go back to the previous version by just selecting it in the bootmenu.

Download (v.0.9)

Written by Wolfgang Unger

October 7, 2009 at 17:01

Posted in Windows 7

Advanced Integration of Virtual PC 7 / XP Mode

with 8 comments

Free Download: VMlauncher.zip (Version 0.9)

VMLauncher allows you to open any file or folder from your local host system in a specified Virtual Machine.
This improves the integration of Windows Virtual PC.
There is no need anymore to open the Virtual Machine in Desktop Mode to install a new application!
You can open any program, file or folder directly from your Windows 7 Desktop.
Just right click on the application, file or folder and select the “Open in Virtual Machine” and it will open in the selected Virtual Machine but will run directly on your Windows 7 Desktop.
 image

Example: You want to install a new program in XP Mode (Virtual Machine).
Just right click onto the Setup file and select "Open in XP Mode".
The setup will start directly in the XP Mode Virtual Machine but will run on the Windows 7 Desktop.

 

For example you can create your own Sandbox OS.
Just enable Undo Disk on your XP Mode PC and you can install any software right from the Windows 7 Context Menu.
If you get tired of the software just clear the undo disk.

image

Requirements – Host System

  • Windows 7
  • Windows Virtual PC 7 RC
  • .NET Framework 3.5 SP1

Requirements – Guest System

  • Integration Features installed
  • Integration Features activated
  • Visual Basic 6.0 Runtime
  • MSXML 3.0

Installation – Host System

  • Extract the files to any folder with write permission on your pc
  • Run the VMLauncher.exe

Installation – Guest System

  • Copy the VMLauncher.exe from the Client folder to any folder in the Virtual Machine
  • Run the VMLauncher.exe in the Virtual Machine
  • Answer the appearing messagebox with yes to install the software

How to use

  • Open the VMLauncher.exe on the host system
  • Check the Virtual Machines in the list on the left side which should appear in the context menu
  • Click Apply to update the context menu

Now you can right click on any file in Windows Explorer and select "Open in xxxxxx" and the file will open in the selected Virtual Machine.

Function description

Refresh
This will refresh the list of available Virtual Machines. All VMs with VMLauncher.exe from the Client folder installed will appear in this list.

Create Launchfile

This allows you to create a custom launch file. With the custom launch file you can start any application in a specific Virtual Machine.
To create a launch file
– select the Virtual Machine in which the program should from the list above
– enter the full application path into the input dialog (e.g. C:Program FilesInternet Exploreriexplore.exe)
– save the launch file where you can easily access it (e.g. your Desktop or Startmenu)
To run the program in the VM just double click the Launchfile.

Keep Launchfiles
This will keep all the launchfiles created through “Open in xxxxx” in the application folder.
Normally a launchfile gets deleted after it has been executed.
This function is indended for debug reasons only.
Custom created launchfiles (created with the Create Launchfile button) will never be deleted!

Show VMs in folder context menus
This will add the "Open in xxxxxx" context menu entries for the selected VMs also in the context menus of folders.
With this function enabled you can right click any folder and select "Open in xxxx" to open it with the VM’s Windows Explorer.

Always Mount Network Drive
If this option is enabled VMLauncher will always connect a network drive to the host system and open the file through the mounted path. You should use this function if some setup applications do not work (see Mount Network Drive for these filetypes)

Mount Network Drive for these filetypes
VMLauncher will mount a network drive to the host if one of the specified filetypes should be opened in a VM.
For example .msi files will create an error if they are launched through a RDP share (e.g. \tsclientCsetup.msi).
If you add .msi to the list of filetypes the msi file will be launched from the mounted drive and run normally without any error (e.g. R:setup.msi)

Discard & Close
Closes the configuration window without saving the changes

Apply
This will apply the changes and leave the window open
An UAC window will appear – you need to allow it to make the changes

Save & Close
This will apply the changes and close the configuration window
An UAC window will appear – you need to allow it to make the changes

Uninstall – Host System

  • Run VMLauncher.exe
  • Uncheck all VMs from the list and click Save & Close
  • Delete the program

Uninstall – Guest System

  • Run the VMLauncher.exe with the argument UNINSTALL

VMLauncher.exe UNINSTALL

  • Click Yes
  • Delete VMLauncher.exe

Free Download: VMlauncher.zip (Version 0.9)

Written by Wolfgang Unger

August 23, 2009 at 17:02

Posted in Windows 7

Creating an encrypted file container using VHD files and BitLocker To Go

with 3 comments

With Windows 7 you can create encrypted container files without using any third-party tools.

For example you can create a file named importantdata.vhd which contains sensitive data which can only be opened with the correct password or with your smartcard.

These are the steps to create an encrypted container file:

  • Open Disk Management MMC (Start – diskmgmt.msc – Return)
  • Click Action – Create VHD
    image
  • Enter a filename for the VHD file and specify a size
    image
  • Right click on the newly created Disk in the list below and click “Initialize Disk”
    image
  • Click OK
    image
  • Right click on the unallocated space and select “New Simple Volume…”
    image
  • Follow and finish the wizard to format the volume

 

  • Open BitLocker Drive Encyption Control Panel (Start – Bitlocker – Return)
    image
  • Click “Turn On BitLocker” right next to the newly created volume on the VHD file in the BitLocker To Go section
    image
  • Select “Use a password to unlock the drive” and specifiy a password. Alternatively you can also use a smartcard here.
    image
  • Save or print and store your password key to a secure space
    image
  • Click “Start Encrypting”
    image
  • BitLocker is now encrypting the VHD file
    image

You have now created an encrypted VHD container file which you can attach to your pc or another Win7 pc via the Disk Management console.
image

Detach the encrypted VHD file

  • Open Disk Management MMC (Start – diskmgmt.msc – Return)
  • Right click onto the VHD Disk and select “Detach VHD”
    image
  • Click OK
    image

Attach the encrypted VHD file

  • Open Disk Management MMC (Start – diskmgmt.msc – Return)
  • Click Action – “Attach VHD”
    image
  • Select the VHD file and click OK
    image
  • The BitLocker window will now open to prompt you for the password
    image 
    Enter the password and click “Unlock”

Easier and more convenient way to attach and detach the VHD

An easier way to attach and detach the VHD is to create a batch file which you can run by just double clicking it.
You will need to create 4 files for it.

Attach VHD

Attach_diskpart.txt

select vdisk file="c:importantdata.vhd"
attach vdisk

Attach.bat

diskpart /s "<fullpath to>Attach_diskpart.txt"

Now you can create a shortcut to the Attach.bat file in the Startmenu which you can just click to attach the file.

Detach VHD

Detach_diskpart.txt

select vdisk file="c:importantdata.vhd"
detach vdisk

Detach.bat

diskpart /s "<fullpath to>Detach_diskpart.txt"

Now you can create a shortcut to the Detach.bat file in the Startmenu which you can just click to detach the file.

Written by Wolfgang Unger

August 9, 2009 at 16:11

Posted in Windows 7

Windows 7 – XP Mode on Acer Aspire 7720G

with 11 comments

Yesterday I was installing Windows 7 on my Acer Aspire 7720G which is my primary working machine – even though I had Windows 7 RC and Beta running at my home pc since the versions were available.

One big set back was when I installed the current Virtual PC RC onto my notebook – I wasn’t able to create a machine because Acer disabled the Intel VT in the bios and there is no way to change this in the BIOS.

After some research in the web I found a great blog entry on marcan’s blog – special thanks to him for this great tutorial! – on how to enable Intel VT in the BIOS by dumping, modifying and reflashing it.

I also found the modified script file to enable VT for my notebook from MaxL in the comments of the blog – also many thanks for this great script which made it work also for me!

DISCLAIMER / WARNING:
This howto only applies to the Acer Aspire 7720G – your BIOS might be different and you can break your notebook by following these instructions!!
In any case I do not take any responsibility if your notebook does no longer work!!
Follow the howto at your own risk!!

These are the steps how to modify your BIOS:

  • download and install Python for Windows (http://www.python.org/)
  • download the newest BIOS version 1.45 from the Acer website
  • download the vtenable.py file from MaxL
  • update the BIOS to the newest version 1.45
  • extract the BIOS flash tool executable
  • open platform.ini in the flash tool folder
  • in the FDFile section enter a filename for the BackupName e.g. dump.fd

[FDFile]
FileName=
BackupName=dump.fd

  • save the platform.ini file
  • run the InsydeFlash tool and cancel it when it asks to update the BIOS
  • the tool has now created a dump of your BIOS named dump.fd
  • open a command prompt and run 

C:pythonpython.exe C:BIOSdump.fd C:BIOSpatched.fd

This will enable VT in the BIOS settings. The BIOS itself will not be touched only the BIOS settings are updated.
Note: You should not revert the BIOS to the default settings later on as it will disable VT again!

Now it is time to flash back the patched BIOS:

  • Undo the changed in the platform.ini of the extracted flash tool (remove the dump.fd filename) and save it again
  • copy the filename of the original BIOS version into the clipboard (should be CL50145A.fd)
  • delete the original BIOS file (CL50145A.fd)
  • delete the dump.fd file
  • rename patched.fd to filename in the clipboard (e.g. CL50145A.fd)
  • Run InsydeFlash

After that you should be able to run XP Mode and other virtual machines on your notebook.

 

If you are searching for other Acer models please have a look directly on marcan’s blog – there are several very helpful posts over there.

Special thanks again to marcan and MaxL!

Written by Wolfgang Unger

August 9, 2009 at 13:06

Posted in Windows 7