internal bool UninstallInternal()
 {
     if (File.Exists(_publicKeyTokenFile))
     {
         File.Delete(_publicKeyTokenFile);
     }
     GacUtil util = new GacUtil();
     if (!util.GacUnInstall("ASP.BrowserCapsFactory, Version=4.0.0.0, Culture=neutral"))
     {
         return false;
     }
     return true;
 }
コード例 #2
0
        internal bool UninstallInternal() {
            // Remove existing strong name public token file
            if (File.Exists(_publicKeyTokenFile)) {
                File.Delete(_publicKeyTokenFile);
            }

            // Removing existing copy from GAC
            GacUtil gacutil = new GacUtil();
            bool assemblyRemoved = gacutil.GacUnInstall("ASP.BrowserCapsFactory, Version=" + ThisAssembly.Version + ", Culture=neutral");
            if (!assemblyRemoved) {
                return false;
            }

            return true;
        }