Ask for Password Before Uninstalling Application

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 Gregory
RegistryKey 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



Leave a reply



Submit