From f464f308ee807c418df7df7361cfb2068a7fdc84 Mon Sep 17 00:00:00 2001 From: burninrubber0 Date: Sat, 2 May 2026 19:46:07 -0400 Subject: [PATCH 1/2] Delete BundleManager.csproj.DotSettings --- BundleManager/BundleManager.csproj.DotSettings | 2 -- 1 file changed, 2 deletions(-) delete mode 100644 BundleManager/BundleManager.csproj.DotSettings diff --git a/BundleManager/BundleManager.csproj.DotSettings b/BundleManager/BundleManager.csproj.DotSettings deleted file mode 100644 index 6e7fff8..0000000 --- a/BundleManager/BundleManager.csproj.DotSettings +++ /dev/null @@ -1,2 +0,0 @@ - - No \ No newline at end of file From 8680d8f8537712781cf649918f6ac9065a870ad6 Mon Sep 17 00:00:00 2001 From: burninrubber0 Date: Sat, 2 May 2026 20:21:21 -0400 Subject: [PATCH 2/2] Warn if running non-elevated --- BundleManager/Program.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/BundleManager/Program.cs b/BundleManager/Program.cs index d1f38ff..837a956 100644 --- a/BundleManager/Program.cs +++ b/BundleManager/Program.cs @@ -4,6 +4,7 @@ using System.Globalization; using System.IO; using System.Numerics; +using System.Security.Principal; using System.Windows.Forms; using Microsoft.Win32; @@ -39,6 +40,8 @@ public static void Main(string[] args) fileModeForm = new MainForm(); folderModeForm = new FileView(); + CheckElevation(); + if (args.Length == 0) { bool? preferFolderMode = null; @@ -111,7 +114,22 @@ public static void Main(string[] args) } } } + } + public static void CheckElevation() + { + using (WindowsIdentity identity = WindowsIdentity.GetCurrent()) + { + WindowsPrincipal principal = new(identity); + if (!principal.IsInRole(WindowsBuiltInRole.Administrator)) + { + MessageBox.Show("Bundle Manager is running with standard permissions.\n" + + "Saving may fail in write-protected locations.", + "Running non-elevated", + MessageBoxButtons.OK, + MessageBoxIcon.Warning); + } + } } public static void SavePreferredMode(bool useFolderMode)