Module的環境設定如下:
test_custom_module.emd的內容
<?xml version="1.0"?>
<moduleIdentity name="test_custom_module" processorArchitecture="x86" version="1.0.0.0" language="neutral" publicKeyToken="0000000000000000" />
<metadata description="Test custom module" displayCategory="\Features\Custom Modules" displayName="test_custom_module" releaseType="Feature Pack" author="David/test" supportedOSArchitectures="x86" minimumOSVersionSupported="6.2.9200.16384">
<moduleStructure />
<dependencies>
<target name="WinEmb-Windows-Media-Player" processorArchitecture="targetOS" version="12.0.9200.16384" language="neutral" publicKeyToken="31bf3856ad364e35" />
</dependencies>
<files>
<root folder="C:\training\Lab\test_custom_module\data" destinationPath="c:\test_custom_module">
<file name="wordview_en-us.exe" />
</root>
<root folder="C:\training\Lab\test_custom_module\data" destinationPath="c:\test_custom_module">
<file name="FlickAnimation.avi" />
</root>
</files>
<installCommands>
<installCommand description="" path="c:\test_custom_module\wordview_en-us.exe" />
<installCommand description="" path="shutdown" arguments="/r" />
</installCommands>
<uninstallCommands>
<uninstallCommand description="" path="del" arguments="c:\test_custom_module\wordview_en-us.exe" />
</uninstallCommands>
</metadata>
<Catalog Path="C:\Windows Embedded Catalog\" xmlns="urn:schemas-microsoft-com:embedded.moduleDesigner" />
</module>