In System Center 2012 R2 Configuration Manager, to display a dialog box in the Configuration Manager console, you create a Configuration Manager ShowDialog Action action. To define the ShowDialog action, you create an XML file that describes a ActionDescription element.
The following procedure creates the action XML for showing a dialog box. You must complete the procedures in the How to Create a Configuration Manager Dialog Box and How to Create Form XML for a Configuration Manager Dialog Box topics before you complete this procedure.
|The dialog identifier <DialogId> must match the file name, without the XML extension, of the form XML you created in How to Create Form XML for a Configuration Manager Dialog Box.|
To create an action for a dialog box
If it is open, close the Configuration Manager console.
In Notepad, create an XML file that contains the following XML:
<ActionDescription Class="ShowDialog" DisplayName="Show my Dialog Box" MnemonicDisplayName="Mnemonic" Description="Description"> <ShowOn> <string>DefaultContextualTab</string> <!-- RIBBON --> <string>ContextMenu</string> <!-- Context Menu --> </ShowOn> <DialogId>ConfigMgrDialogControl</DialogId> </ActionDescription>
Save the XML file in the folder, %ProgramFiles%\AdminUI\XmlStorage\Extensions\Actions\32815086-cce9-42de-95a4-0941da31114e. The GUID value identifies packages in the results pane. The file name can be anything with an .xml extension. Be sure to save the file as type All Files.
Start the Configuration Manager console, and in the console tree Packages node, right-click a package in the results pane, and then click Show my Dialog Box. A dialog box appears.