Testing with a Trial License

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 values from the package

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.

  1. Download the game’s package from the Marketplace in your Sandbox
  2. Get the full package’s name by running the XDK command prompt and finding the name
    xbapp list  
    
  3. Get the Package’s ProductID, ContentID, and EKBIDs values:
    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  
    
  4. Uninstall the package from the console with the XDK command prompt
    xbapp uninstall [Package Name]  
    

Create, install, and change the new package to use the trial license

  1. Build the test version of your game using the /lt, /ContentID [ContentID] and /ProductID [ProductID] flags with the values obtained above
    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  
    
  2. Deploy the package to the console
    xbapp install [Package Name]  
    
  3. Update the EKBIDs registry value with the EKBIDs recorded from the propped package
    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]  
    
  4. Run the title

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.