Is there any way to get ID of my application in app store without hardcode? I need to use this value it self, so this way http://forums.create.msdn.com/forums/p/88847/533072.aspx will not help.
Open Run, enter shell:Appsfolder, and select OK. A File Explorer window opens. Press Alt > View > Choose details. In the Choose Details window, select AppUserModelId, and then select OK.
Application ID means an application identifier used to tag specific routing applications within the Customer'sRouting Plan.
Launch PowerShell as the admin. To view information about an app that you know by name or partially by name, use Get-AppxPackage *<app_name> . You can also use wildcard characters if you do not know the entire name of the app.
The Class ID, or CLSID, is a serial number that represents a unique ID for any application component in Windows. In practice, this means all registry entries for an application component can usually be found under the registry key HKEY_CLASSES_ROOT\CLSID\{CLSID value}.
try this :
var appId = Windows.ApplicationModel.Store.CurrentApp.AppId;
it's documentation here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With