and can someone explain this to me from here: http://discuss.mediacentersandbox.com/forums/thread/2618.aspx
i want to put this in my start menu strip, but i used the windows media center presentation layer application template, so what GUID's that were generated by the template go where?
Charlie:
Here is how to edit Setup.wxs and Registration.xml to have your MSI create a Custom Start Menu strip. Pay careful attention to the GUIDs here -- they must line up in order for this to work properly. XML in blue is what you will need to add...
1) Create the Component for the Start Menu strip.
<DirectoryRef Id="APPROOTDIRECTORY">
<Component Id="Application1.dll" Guid="[ComponentGUID1]" DiskId="1">
<File Id="Application1.dll" Name="Application1.dll" KeyPath="yes" Source="..\bin\$(var.BuildType)\Application1.dll" Checksum="yes" Vital="yes" Assembly=".net"/>
</Component>
<Component Id="CustomStartMenuStrip" Guid="[ComponentGUID2]" DiskId="1">
<!-- Define the custom menu strip. -->
<RegistryKey Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Start Menu\Applications\[ApplicationGUID]">
<RegistryValue Name="Title" Value="Custom Start Menu" Type="string" />
<RegistryValue Name="Category" Value="MyCompany\Application1" Type="string" />
<RegistryValue Name="OnStartMenu" Type="string" Value="True" />
<RegistryValue Name="TimeStamp" Type="integer" Value="214505904" />
</RegistryKey>
<!-- Define the order of the tiles on the custom menu strip with a timestamp. -->
<RegistryValue Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Extensibility\Categories\MyCompany\Application1\[EntryPointGUID2]" Name="TimeStamp" Value="214505905" Type="integer" />
<RegistryValue Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Extensibility\Categories\MyCompany\Application1\[EntryPointGUID3]" Name="TimeStamp" Value="214505906" Type="integer" />
<RegistryValue Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Extensibility\Categories\MyCompany\Application1\[EntryPointGUID4]" Name="TimeStamp" Value="214505907" Type="integer" />
<RegistryValue Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Extensibility\Categories\MyCompany\Application1\[EntryPointGUID5]" Name="TimeStamp" Value="214505908" Type="integer" />
<RegistryValue Root="HKLM" Key="SOFTWARE\Microsoft\Windows\CurrentVersion\Media Center\Extensibility\Categories\MyCompany\Application1\[EntryPointGUID6]" Name="TimeStamp" Value="214505909" Type="integer" />
</Component>
<Component Id="Registration.xml" Guid="[ComponentGUID3]" DiskId="1">
<File Id="Registration.xml" Name="Registration.xml" Source="..\Registration.xml" Checksum="no" />
</Component>
<Component Id="Application.png" Guid="[ComponentGUID4]" DiskId="1">
<File Id="Application.png" Name="Application.png" Source="..\Images\Application.png" Checksum="no" />
</Component>
</DirectoryRef>
2) Add the component to the Feature.
<Feature Id="APPROOTFEATURE" Title="Application1" Level="1">
<ComponentRef Id="Application1.dll" />
<ComponentRef Id="CustomStartMenuStrip" />
<ComponentRef Id="Registration.xml" />
<ComponentRef Id="Application.png" />
</Feature>
3) Create up to five tiles on the custom Start Menu strip using Registration.xml. Keep in mind that each entrypoint should be to a different location in the application.
<application title="Application1" id="[ApplicationGUID]">
<entrypoint id="[EntryPointGUID1]"
addin="Application1.MyAddIn, Application1,Culture=Neutral,Version=1.0.0.0,PublicKeyToken=public_key_token"
title="Application1"
description="Application1 Description"
ImageUrl=".\Application.png">
<category category="More Programs"/>
</entrypoint>
<entrypoint id="[EntryPointGUID2]"
addin="Application1.MyAddIn, Application1,Culture=Neutral,Version=1.0.0.0,PublicKeyToken=public_key_token"
title="title.start.app.1.1"
description="description.start.app.1.1"
imageURL = ".\Application.png">
<category category="MyCompany\Application1"/>
</entrypoint>
<entrypoint id="[EntryPointGUID3]"
addin="Application1.MyAddIn, Application1,Culture=Neutral,Version=1.0.0.0,PublicKeyToken=public_key_token"
title="title.start.app.1.1"
description="description.start.app.1.2"
imageURL = ".\Application.png">
<category category="MyCompany\Application1"/>
</entrypoint>
<entrypoint id="[EntryPointGUID4]"
addin="Application1.MyAddIn, Application1,Culture=Neutral,Version=1.0.0.0,PublicKeyToken=public_key_token"
title="title.start.app.1.1"
description="description.start.app.1.3"
imageURL = ".\Application.png">
<category category="MyCompany\Application1"/>
</entrypoint>
<entrypoint id="[EntryPointGUID5]"
addin="Application1.MyAddIn, Application1,Culture=Neutral,Version=1.0.0.0,PublicKeyToken=public_key_token"
title="title.start.app.1.1"
description="description.start.app.1.4"
imageURL = ".\Application.png">
<category category="MyCompany\Application1"/>
</entrypoint>
<entrypoint id="[EntryPointGUID6]"
addin="Application1.MyAddIn, Application1,Culture=Neutral,Version=1.0.0.0,PublicKeyToken=public_key_token"
title="title.start.app.1.1"
description="description.start.app.1.5"
imageURL = ".\Application.png">
<category category="MyCompany\Application1"/>
</entrypoint>
</application>
mcml nub