简体   繁体   中英

Application deployed via windows store

I am considering deploying my application via the windows store apart from the traditional website download (via an msi).

I created the appx package with the Desktop App Converter tool.

The application does some updates checks, and when being deployed via the windows store I would like to disable such checks.

The question is how to detect if the application was deployed via normal msi or via the windows store.

To add to nikos' comment, GetCurrentPackageFamilyName will return an error APPMODEL_ERROR_NO_PACKAGE if it's run outside the UWP context (ie the MSI scenario you mention).

Note that this API is dependent on Windows 8 or greater, which will preclude the app from running on Windows 7. Your can work around this by dynamically loading the API. More info here.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM