You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
StatusMessage="✓ Shell extension installed successfully. Please restart Windows Explorer to see the context menu (right-click taskbar → Task Manager → Find 'Windows Explorer' → Restart).";
217
+
StatusMessage=
218
+
"✓ Shell extension installed successfully. Please restart Windows Explorer to see the context menu (right-click taskbar → Task Manager → Find 'Windows Explorer' → Restart).";
221
219
}
222
220
else
223
221
{
224
222
IsStatusError=true;
225
-
StatusMessage="⚠ Installation command completed but shell extension is not showing as registered. Try clicking 'Refresh Status'.";
223
+
StatusMessage=
224
+
"⚠ Installation command completed but shell extension is not showing as registered. Try clicking 'Refresh Status'.";
StatusMessage="✓ Shell extension uninstalled successfully. Please restart Windows Explorer to remove the context menu (right-click taskbar → Task Manager → Find 'Windows Explorer' → Restart).";
279
+
StatusMessage=
280
+
"✓ Shell extension uninstalled successfully. Please restart Windows Explorer to remove the context menu (right-click taskbar → Task Manager → Find 'Windows Explorer' → Restart).";
284
281
}
285
282
else
286
283
{
287
284
IsStatusError=true;
288
-
StatusMessage="⚠ Uninstallation command completed but shell extension is still showing as registered. Try clicking 'Refresh Status'.";
285
+
StatusMessage=
286
+
"⚠ Uninstallation command completed but shell extension is still showing as registered. Try clicking 'Refresh Status'.";
thrownewFileNotFoundException($"Shell extension assembly not found. Searched locations around: {AppContext.BaseDirectory}");
23
+
thrownewFileNotFoundException(
24
+
$"Shell extension assembly not found. Searched locations around: {AppContext.BaseDirectory}");
28
25
}
29
26
30
27
// Use regasm to register the shell extension
31
-
varregasmPath=GetRegAsmPath();
28
+
string?regasmPath=GetRegAsmPath();
32
29
if(string.IsNullOrEmpty(regasmPath))
33
30
{
34
31
thrownewFileNotFoundException("RegAsm.exe not found. .NET Framework 4.x must be installed.");
@@ -54,7 +51,8 @@ public bool Register()
54
51
55
52
if(process.ExitCode!=0)
56
53
{
57
-
thrownewInvalidOperationException($"RegAsm.exe failed with exit code {process.ExitCode}. Make sure you accepted the UAC prompt and have administrator privileges.");
54
+
thrownewInvalidOperationException(
55
+
$"RegAsm.exe failed with exit code {process.ExitCode}. Make sure you accepted the UAC prompt and have administrator privileges.");
thrownewFileNotFoundException($"Shell extension assembly not found. Searched locations around: {AppContext.BaseDirectory}");
67
+
thrownewFileNotFoundException(
68
+
$"Shell extension assembly not found. Searched locations around: {AppContext.BaseDirectory}");
70
69
}
71
70
72
71
// Use regasm to unregister the shell extension
73
-
varregasmPath=GetRegAsmPath();
72
+
string?regasmPath=GetRegAsmPath();
74
73
if(string.IsNullOrEmpty(regasmPath))
75
74
{
76
75
thrownewFileNotFoundException("RegAsm.exe not found. .NET Framework 4.x must be installed.");
@@ -96,7 +95,8 @@ public bool Unregister()
96
95
97
96
if(process.ExitCode!=0)
98
97
{
99
-
thrownewInvalidOperationException($"RegAsm.exe failed with exit code {process.ExitCode}. Make sure you accepted the UAC prompt and have administrator privileges.");
98
+
thrownewInvalidOperationException(
99
+
$"RegAsm.exe failed with exit code {process.ExitCode}. Make sure you accepted the UAC prompt and have administrator privileges.");
100
100
}
101
101
102
102
returntrue;
@@ -106,40 +106,48 @@ public bool Unregister()
106
106
publicstring?GetAssemblyPath()
107
107
{
108
108
// Try to find the shell extension DLL in common locations
109
-
varbaseDir=AppContext.BaseDirectory;
109
+
string?baseDir=AppContext.BaseDirectory;
110
110
111
111
// BaseDir for Configuration app during development is typically:
0 commit comments