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.
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.
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"
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"
This should serve as a suitable template for other file types.