diff options
| author | WitherOrNot | 2025-03-03 00:02:36 +0000 |
|---|---|---|
| committer | WitherOrNot | 2025-03-03 00:02:36 +0000 |
| commit | f2ad15e5a25c9cc2cdf0d198927be0562f466156 (patch) | |
| tree | fa2dda646e5cecf3e5dab1ebe3aa071a0545d0c1 /LibTSforge/Modifiers/KeyChangeLockDelete.cs | |
| parent | 6d759899d85939c95f2b97c8e041d7b4865208f9 (diff) | |
| download | TSforge-f2ad15e5a25c9cc2cdf0d198927be0562f466156.zip | |
fix vista kms4k, add reset support
Diffstat (limited to 'LibTSforge/Modifiers/KeyChangeLockDelete.cs')
| -rw-r--r-- | LibTSforge/Modifiers/KeyChangeLockDelete.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/LibTSforge/Modifiers/KeyChangeLockDelete.cs b/LibTSforge/Modifiers/KeyChangeLockDelete.cs index 5150a41..3883d3c 100644 --- a/LibTSforge/Modifiers/KeyChangeLockDelete.cs +++ b/LibTSforge/Modifiers/KeyChangeLockDelete.cs @@ -5,11 +5,14 @@ namespace LibTSforge.Modifiers using LibTSforge.PhysicalStore; using LibTSforge.SPP; using LibTSforge; + using System; public static class KeyChangeLockDelete { public static void Delete(PSVersion version, bool production) { + if (version == PSVersion.Vista) throw new NotSupportedException("This feature is not supported on Windows Vista/Server 2008."); + SPPUtils.KillSPP(version); Logger.WriteLine("Writing TrustedStore data..."); using (IPhysicalStore store = SPPUtils.GetStore(version, production)) |
