Friday, March 24, 2006

WorldWind in your right-click menu

If you read the Advanced WorldWind plugin file support post you might be wondering how to get an ‘Open with WorldWind’ entry in explorer’s right-click menu. First you have to find out the full name of the file type you’re handling. You can do this by looking at the (Default) value in HKEY_CLASSES_ROOT\.(Some Extension). Then replace ‘Google Earth.kmlfile’ with the name you found in the example below. Of course you also have to adjust the path to point to your WorldWind installation (this has to be 1.3.4!). This is of course only a solution for developers and should be done automatically by an installer for the average user.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Google Earth.kmlfile\shell\Open with WorldWind]

[HKEY_CLASSES_ROOT\Google Earth.kmlfile\shell\Open with WorldWind\command]
@="D:\\Dev\\WorldWind\\bin\\Debug\\WorldWind.exe \"%1\""

[HKEY_CLASSES_ROOT\Google Earth.kmzfile\shell\Open with WorldWind]

[HKEY_CLASSES_ROOT\Google Earth.kmzfile\shell\Open with WorldWind\command]
@="D:\\Dev\\WorldWind\\bin\\Debug\\WorldWind.exe \"%1\""

No comments: