How do I prompt a user for password when uninstalling an application or make the app uninstallable?
This works from me. Application not showing in the control panel. Thank you Siyabonga GregoryRegistryKey key = null; key = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\{63EF3DE1-F37C-4B1B-BBBD-26910690C7CF}", true); key.DeleteValue("ModifyPath", true); key.DeleteValue("UnInstallString", true); key.DeleteValue("Version", true); key.DeleteValue("VersionMajor", true); key.DeleteValue("VersionMinor", true); key.DeleteValue("WindowsInstaller", true); key.Close();
Password request when uninstalling the application
No, I don't think you can achieve this as you can't perform code at the moment your app is uninstalling.
Uninstalling the application is more like a system level action and you don't have permission to customize it.
Refer:
Perform a task on uninstall in android
AND
How can an app detect that it's going to be uninstalled?
Related Topics
How to Use Mkfifo Using Android's Ndk
Outofmemory Exception When Loading Bitmap from External Storage
Cannot Call Getsupportfragmentmanager() from Activity
How to Find the Android Version Name Programmatically
Why Is My Field 'Null' After Injection? How to Inject My Object
How to Filter the Data in Realm Adapter
How to Handle One-Shot Operations in Jetpack Compose
Progress Bar While Loading Image Using Glide
How to Provide Different Android App Icons for Different Gradle Buildtypes
Android Getting an Image from Gallery Comes Rotated
Android Getorientation Azimuth Gets Polluted When Phone Is Tilted
Center Align Title in Action Bar Using Styles in Android
The Specified Child Already Has a Parent. You Must Call Removeview() on the Child's Parent First
Android - Margins Specified in Custom Style Not Taking Effect
Android Spinner Error:Android.View.Windowmanager$Badtokenexception: Unable to Add Window
Best Way to Save Large Amount of Data Locally in Unity3D Android