MAKEMSI quickly and reliably creates MSI files in a non-programmatic way
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
[Bottom][Contents][Prev]: ExeCa[Next]: ExtnAction
Have your say! Join the MAKEMSI discussion list or view archive! Suggest improvements. No question too simple or too complex.
\->Source Code->Commands->Extn

The "Extn" Command

This command is used to define a file extension and associate it with a "ProgId" and one or more actions that can be performed on the extension.

This command can not be nested and is required before the "ExtnAction" command can be used.

This command takes these parameters:

Main Extn/ExtnAction Related Options

Please see the "options for commands" section of the manual.

#define? EXTN_DEFAULT_PROGID_PREFIX     ProgId4.
#define? DEFAULT_EXTN_HKEY              CLASSES_ROOT
#define? EXTN_ACTION_COMMAND_TYPE       STRING      ;;or EXPSTRING (to expand environment variables etc)?

EXAMPLE

Also see the "TryMeExtnAction.MM" example.

<$Component "TestExtnMacro" Create="Y" Directory_="INSTALLDIR">
   <$Extn ".TestExtn" KEYPATH="Y" Description="Test Extension">
       <$ExtnAction Key="Open" Description="EDIT FILE" Command=^notepad.exe "%1"^>
   <$/Extn>
<$/Component>


Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.Please email me any feedback, additional information or corrections.
See this page online (look for updates)

[Top][Contents][Prev]: ExeCa[Next]: ExtnAction


MAKEMSI© is (C)opyright Dennis Bareis 2003-2008 (All rights reserved).
Friday October 13 2017 at 2:08pm
Visit MAKEMSI's Home Page
Microsoft awarded me an MVP (Most Valuable Professional award) in 2004, 2005, 2006, 2007, 2008 & 2009 for the Windows SDK (Windows Installer) area.