To test your game with a trial license you will first need to submit and prop the initial version of your game to the Marketplace in your sandbox. After that you can configure the Trial License availability for your main game package. Once you have done this and are able to download your game and run it with a real trial license, you can follow the steps below to configure a locally created and deployed package to use the trial license from the marketplace.
Get the ProductID, ContentID, EKBIDs , and package name values from the package on the Marketplace. This should only have to be done once as these values should remain constant.
xbapp list
xbrun /o reg query \"hku\S-1-5-21-2702878673-795188819-444038987-501_XBOX\software\classes\local settings\software\microsoft\windows\currentversion\appmodel\repository\packages[Package Name]\XboxLive\” /s
xbapp uninstall [Package Name]
makepkg pack /f chunks.xml /d ..\Durango\Layout\Image\Loose /pd ./packaged /lt /contentID 8054d603-2bfb-4f8c-845f-1b45af79df73 /productID 613925c8-e7f9-4ed4-bfc4-9187695284dd
xbapp install [Package Name]
xbrun /o reg delete \"hku\S-1-5-21-2702878673-795188819-444038987-501_XBOX\software\classes\local settings\software\microsoft\windows\currentversion\appmodel\repository\packages[Package Name]\XboxLive\" /f /v EKBIDs
xbrun /o reg add \"hku\S-1-5-21-2702878673-795188819-444038987-501_XBOX\software\classes\local settings\software\microsoft\windows\currentversion\appmodel\repository\packages[Package Name]\XboxLive\" /f /v EKBIDs /t REG_MULTI_SZ /d [EKBIDs value]
You can then attach the VS debugger to the running process. When you reboot the console, the registry will be reset and you will have to run the steps of setting the EKBIDs key again.