Attempting to delete ascom profile entries on uninstall

This commit is contained in:
2019-09-28 13:24:31 +01:00
parent 9c689f1179
commit fc68a788ac
2 changed files with 2 additions and 6 deletions
+1 -1
View File
@@ -35,7 +35,7 @@
<![CDATA[(NOT Installed)]]> <![CDATA[(NOT Installed)]]>
</Custom> </Custom>
<Custom Action="UnRegisterEXE" After='RegisterEXE'> <Custom Action="UnRegisterEXE" After='RegisterEXE'>
<![CDATA[(REMOVE ~= "ALL")]]> <![CDATA[(REMOVE ~= "ALL" AND NOT UPGRADINGPRODUCTCODE)]]>
</Custom> </Custom>
</InstallExecuteSequence> </InstallExecuteSequence>
</Fragment> </Fragment>
+1 -5
View File
@@ -487,11 +487,7 @@ namespace ASCOM.Meade.net
// //
// ASCOM // ASCOM
// //
using (var p = new Profile()) Registry.LocalMachine.DeleteSubKey(String.Format("SOFTWARE\\ASCOM\\{0} Drivers\\{1}", deviceType, progid), false);
{
p.DeviceType = deviceType;
p.Unregister(progid);
}
} }
catch (Exception) { } catch (Exception) { }
} }