Attempting to delete ascom profile entries on uninstall
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
@@ -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) { }
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user