On some apps i have trial and full shown in the tokenesextracter. I implemented licences before tokenextracter was there (hex editing)
Now its pretty easy. I more talking about the beginning. - Tokens.dat in hex and so on. Day by day it become more and more easy by your great work!
If license is show in tokenextractor it doesn't mean it is actually seen as installed by WSService. TokenExtractor is brute force. It do not use WSClient API to enumerate licenses - it parses tokens.dat directly without knowledge of its format. It looks for valid XMLs and extract them. Also I dont know how WSLicenseUninstallLicense behave if multiple licenses for the same ProductID are installed. It take GUID of ProductID then I assume it removes all licenses with given ProductID. All or may be just first ? You could install multiple licenses with earlier version of wsll. Now it is impossible - wsll and TokensExtractor first call WSLicenseUninstallLicense. WSClient API is totally undocumented. I discovered needed functions prototypes using IDA and debugger.
Ah ok. - Than my token is just messed but no problem. It's VM. It was kind of weird. - Application was running (full) reboot it was broken (with the X in App/Startscreen) I just reinstalled the lic and instantly it worked. I import with DISM as I haven't foudn skiplicense option in PS. With DISM I have to reboot to appear the application on the Screen is it in PS the same?! - Is there a skiplicense switch?
Did you install WSServiceCrk 1.2.3 ? Critical bug was there (I mean 1.2.2). As far as I know DISM only provision packages to be deployed for every user. When a user logs on some policy mechanisms are invoked. They force deployment.. Powershell triggers deployment manually. After deployment WSService is notified. It checks license, LOB SKU and make decision enable or disable the package. Reboot is not reqd. Powershell do nothing about licenses. WinStore licenses are undocumented proprietary entity supposed to be issued and handled only by windows store internal machinery.
Hm not sure which version ... Always before you did token extracter and once the current version 1.2.3. No updated first post if a critical bug is in there. Huh ok. @ DISM / PS.
Updated to ver 1.2.4. TokenExtractor can now dig for appx url from windowsupdate.log. Fiddler needed no more. TokenExtractor can now import license from a file without need of using wsll.exe. Updated redistribution docs.
Like I already posted here - there'are only 3 basic choices of dependencies. All possible deps are in appx_deps folder. The one needed for particular deployment is in the error message.
Awesome work With every update its gets better and better; not to mention ease of use. A well deserved Thank You from my test bench-- -=FM45=- quick Q -- I am getting server denied when I try to download an .appx from MS - am I missing something?
You must start downloading as soon as windowsupdate starts downloading URL is available only for the short period of time
Yesterday i tested notepadRT and it worked with WinJS supplied with my package. May be you forgot to put winjs....appx into your folder ? These dependency files were copied from SDK coming with visual studio 2012 and they are actual to the moment - all packages I tested were working with those deps. 27.07.2012 09:30 941 725 Microsoft.VCLibs.x64.11.00.appx 27.07.2012 09:26 934 014 Microsoft.VCLibs.x86.11.00.appx 26.07.2012 22:30 869 378 Microsoft.WinJS.1.0.appx are you able to install tetrablox in redistribution/sample ?
i am able to install tetrablox you have give. Ihad downloaded notepadrt using fiddler.I got a cab file and appx file.Any thing else i have to do for instlling this appx file.Note that i didn't used store to installl this app. help.If u add option to remove lisence from tokken.dat it will be very helpfull
I got it working Note every apps is not depended to the version provided by you,some need newer js runtime some need older beta rutimes.Anyway i got the runtime and thanks
Confirmed -- just installed Angry Birds trial then used your tool and was able to grab the .appx from MS. Didn't realize there was a short time window, but all is good--Tanx back to testing -=FM45=-
Tokens.dat cannot be edited directly. Some sort of checksumming is applied. The only way I know how to delete the license is to call wsclient!WSLicenseUninstallLicense However it does not physically wipe region of file where license xml is stored - it just mark somewhere this license as deleted and wsservice no more takes it into account. TokenExtractor will still see this license until it is physically overwriten in the file. I can easily add call to uninstall license in TokenExtractor if you wish.
Dependencies are listed in AppxManifest.xml in the root of appx. Appx is just a zip archive like jar. There're parameters specifying minimum and maximum version of required component. Of course microsoft will update versions of support libraries and you'll need to obtain version compatible with your app. <PackageDependency Name="Microsoft.WinJS.1.0" MinVersion="1.0.8514.0" />