diff --git a/CHANGELOG.md b/CHANGELOG.md index 912c326..6f6cdeb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Änderungsprotokoll +## 1.0.1 – 2026-09-23 + +### Behoben + +- Der Start direkt von der Abschlussseite des Installers übernimmt nun die bereits erhöhten Installer-Rechte und scheitert nicht mehr mit Windows-Fehler 740. + ## 1.0.0 – 2026-09-23 ### Neu diff --git a/installer/SyncVito.iss b/installer/SyncVito.iss index 654e3b6..56a176d 100644 --- a/installer/SyncVito.iss +++ b/installer/SyncVito.iss @@ -53,5 +53,5 @@ Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}" Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon [Run] -Filename: "{app}\{#MyAppExeName}"; Description: "{#MyAppName} starten"; Flags: nowait postinstall skipifsilent -Filename: "{app}\{#MyAppExeName}"; Parameters: "--updated"; Flags: nowait skipifnotsilent +Filename: "{app}\{#MyAppExeName}"; Description: "{#MyAppName} starten"; Flags: nowait postinstall skipifsilent runascurrentuser +Filename: "{app}\{#MyAppExeName}"; Parameters: "--updated"; Flags: nowait skipifnotsilent runascurrentuser diff --git a/pyproject.toml b/pyproject.toml index 5d1fb08..96b78c2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "syncvito" -version = "1.0.0" +version = "1.0.1" description = "Windows-Desktopwerkzeug für lokale und NAS-Synchronisation" readme = "README.md" requires-python = ">=3.11" diff --git a/tests/test_installer.py b/tests/test_installer.py new file mode 100644 index 0000000..0ad1097 --- /dev/null +++ b/tests/test_installer.py @@ -0,0 +1,11 @@ +from pathlib import Path + + +def test_installer_launches_admin_application_with_elevated_setup_token() -> None: + script = Path("installer/SyncVito.iss").read_text(encoding="utf-8") + run_entries = [line for line in script.splitlines() if line.startswith("Filename:")] + + assert len(run_entries) == 2 + assert all("runascurrentuser" in entry for entry in run_entries) + assert "postinstall" in run_entries[0] + assert 'Parameters: "--updated"' in run_entries[1] diff --git a/version.txt b/version.txt index 3eefcb9..7dea76e 100644 --- a/version.txt +++ b/version.txt @@ -1 +1 @@ -1.0.0 +1.0.1