How to prevent deployment of WP8.x apps in SD Cards?


Sometime for some security reason, developer might want to restrict his/her Windows Phone application to be deployed in SD cards. There might be different reasons too. So, how can you prevent your user to deploy the app in the SD card of their device?

 

Let’s discuss the No-Code way to prevent this deployment. Remember that, it is only applicable for Windows Phone 8.0 or higher apps.

 

For any reason, if you want to prevent the user deploying your app in SD card instead of the Windows Phone device storage, you can do so in your Windows Phone 8.x projects. As shown below, just open the WMAppManifest.xml file and navigate to the “Packaging” tab. There you will find a checkbox labelled “Prevent deployment to SD cards”. Just check this box to disable deployment of that app in SD card. In case you want to re-enable it, just uncheck this.

 

 

How to prevent deployment of Windows Phone 8.x apps to SD cards? (www.kunal-chowdhury.com)

 

That’s it. Now just build the app and upload it to the Windows Phone Store. Once certified and published, the user of this app will not be able to install it in the SD card.

 

I hope that the post will be helpful. Don’t forget to read my other posts available in this blog. Subscribe to the RSS feed and/or Email newsletter to get the article updates delivered directly in your inbox. Connect with me on various social networking sites like Facebook, Twitter etc. to get updates on technical/non-technical front. Happy coding.

 


If you have come this far, it means that you liked what you are reading. Why not reach little more and connect with me directly on Twitter , Facebook , Google+ and LinkedIn . I would love to hear your thoughts and opinions on my articles directly. Also, don't forget to share your views and/or feedback in the comment section below.

0 comments


 
© 2008-2016 Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers | Designed by Kunal Chowdhury
Back to top