mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-04-29 10:12:38 +02:00
windows: Detect Dangerzone 0.8.1 during install
Detect Dangerzone 0.8.1 versions during install, so that we can prompt users to manually uninstall it. Refs #929
This commit is contained in:
parent
c99c424f87
commit
634b171b97
1 changed files with 10 additions and 2 deletions
|
@ -193,7 +193,7 @@ def main():
|
||||||
Path="C:\\Program Files (x86)\\Dangerzone",
|
Path="C:\\Program Files (x86)\\Dangerzone",
|
||||||
)
|
)
|
||||||
ET.SubElement(directory_search_el, "FileSearch", Name="dangerzone.exe")
|
ET.SubElement(directory_search_el, "FileSearch", Name="dangerzone.exe")
|
||||||
registry_search_el = ET.SubElement(package_el, "Property", Id="DANGERZONE080FOUND")
|
registry_search_el = ET.SubElement(package_el, "Property", Id="DANGERZONE08FOUND")
|
||||||
ET.SubElement(
|
ET.SubElement(
|
||||||
registry_search_el,
|
registry_search_el,
|
||||||
"RegistrySearch",
|
"RegistrySearch",
|
||||||
|
@ -202,10 +202,18 @@ def main():
|
||||||
Name="DisplayName",
|
Name="DisplayName",
|
||||||
Type="raw",
|
Type="raw",
|
||||||
)
|
)
|
||||||
|
ET.SubElement(
|
||||||
|
registry_search_el,
|
||||||
|
"RegistrySearch",
|
||||||
|
Root="HKLM",
|
||||||
|
Key="SOFTWARE\\WOW6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\{8AAC0808-3556-4164-9D15-6EC1FB673AB2}",
|
||||||
|
Name="DisplayName",
|
||||||
|
Type="raw",
|
||||||
|
)
|
||||||
ET.SubElement(
|
ET.SubElement(
|
||||||
package_el,
|
package_el,
|
||||||
"Launch",
|
"Launch",
|
||||||
Condition="NOT OLDDANGERZONEFOUND AND NOT DANGERZONE080FOUND",
|
Condition="NOT OLDDANGERZONEFOUND AND NOT DANGERZONE08FOUND",
|
||||||
Message="A previous version of [ProductName] is already installed. Please uninstall it from Programs and Features before proceeding with the installation.",
|
Message="A previous version of [ProductName] is already installed. Please uninstall it from Programs and Features before proceeding with the installation.",
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue