2014年6月6日 星期五

WES2009 LAB -Componentizing an Application as a Custom Shell with Auto logon(1)

Step1To create a custom shell component
1、In Component Designer, from the File menu, choose New to create a new .sld file.


2Create 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


3Configure 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

4To 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.


5To add your shell component to a category
NoteYou 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.


6To 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
Target nameto browser your application file on your development PC(for example,D:\MyShell\mspaint_test.exe).
Deatination Effective path for your shell application on target device

7Save the .sld file as “My Test Shell.sld”. Note. The SLD file must save in one folder same as the AP files.

 8To import the SLD file into the database manager.


沒有留言:

張貼留言