Step1、To
create a custom shell component
1、In Component Designer, from the File
menu, choose New to create a new .sld file.
2、Create a Shell component
- Expand the platform node, right-click on Components, and then choose Add Component.
- In the details pane, type or choose the following properties for your shell component:
·
Name
·
Description
·
Prototype.
To select the prototype component, choose Browse.
In the Select Prototype Component dialog box, search for Shell
prototype component, and then choose OK.
3、Configure the Shell component
- In the details pane, choose Advanced.
- In the Advanced Properties dialog box, choose Add.
- In the Extended Property dialog box, provide the following information, then Choose OKà Choose OK.
Name: cmiShellPath
Format: String
Value: Name and path of your
shell application. Use predefined system environment variables.
For example, %SystemRoot%\System32\mspaint_test.exe
4、To add your shell component to a dependency group
- In the SLD browser, under your component, right-click Group Memberships, and then choose Add Group Membership.
- In the Add Component Group Memberships dialog box, expand the Dependencies node, and choose the Shell group, and then choose OK.
5、To add your shell component to a category
Note:You can find your shell component on which category of component
on Target Designer Tool.
- in the SLD browser, under your component, right-click Group Memberships, and then choose Add Group Membership.
- In the Add Component Group Memberships dialog box, expand the Categories node, navigate to Software\System\User Interface\Shells, and then choose OK, or Apply and close the dialog box.
6、To
add your customize shell application file
- Run Add Repository
- Enter the name to Repository properties.
- Add repository to component properties
- Add your UI files for shell
Deatination :Effective path for your shell application on target device
7、Save the .sld file as “My Test Shell.sld”. Note. The
SLD file must save in one folder same as the AP files.
8、To
import the SLD file into the database manager.
沒有留言:
張貼留言