feat(autoupdate): detect install type

This commit is contained in:
2026-03-10 17:13:42 +01:00
parent 1366481931
commit 41b3725faa
6 changed files with 151 additions and 39 deletions

View File

@@ -7,6 +7,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using CarManagerV3.Util;
namespace CarManagerV3.Forms
{
@@ -42,6 +43,8 @@ namespace CarManagerV3.Forms
read: () => Properties.Settings.Default.AllowPrerelease,
write: v => Properties.Settings.Default.AllowPrerelease = v);
lblEnv.Text = lblEnv.Text.Replace("%E%", InstallModeDetector.IsInstalledViaMsi() ? "Installed via MSI" : "Running in portable mode");
}
private void SettingsForm_Load(object sender, EventArgs e)