我在Visual Studio 2015中开发了一个Windows应用程序。在安装过程中,我注册了一个存储在数据库中的用户密码。我想要密码卸载。
在卸载过程中是否可以提示用户输入密码?
我面临的最大挑战是保护我的应用程序免于无密码卸载和/或完全卸载。
答案 0 :(得分:0)
这对我有用。应用程序未显示在控制面板中。谢谢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();