Situation

I have a Compact 7 image with some .png files. Whilst other image files default to being opened in IE (iesample.exe), .PNG one don’t. I can manually open them in IE.

Discussion:

To be able to  open a document file in FileExplorer by double-clicking it ( or choose Open from eth menu)
the document type needs to be associated with an application. The file type is identified via its file extension.
This requires some registry entries to associate the file extension/ file type with the command to run in the Windows Shell.

Solution.

To make IE the default program to open .png image documents ad the following to OSDesign.reg and build the OS:

   1:  [HKEY_CLASSES_ROOT\.png]
   2:  @="pngfile"
   3:  "Content Type"="image/png"
   4:   
   5:  [HKEY_CLASSES_ROOT\pngfile]
   6:  @="Bit Image"
   7:   
   8:  [HKEY_CLASSES_ROOT\pngfile\DefaultIcon]
   9:  @="iesample.exe,-108"
  10:   
  11:  [HKEY_CLASSES_ROOT\pngfile\Shell\Open\Command]
  12:  @="iesample.exe %1"
  • Once the OS is running you will be able to double-click on .png files in FileExplorer to open them in IE.
  • Note that these files will display the IE icon in FileExplorer.
  • Using the Remote Registry tool to check that these registry setting are on tehe device.
    Also open the image file (NK.bin) in Platform Builder(VS) and also check that they are there.

This should serve as a suitable template for other file types.