Skip to content
Snippets Groups Projects
Commit 004f5198 authored by d.kilic's avatar d.kilic
Browse files

Merge branch '131-windows-uninstall-leaves-registry-entries' into 'master'

Fix deletion of RegisteredApplication RegValues

The Registry Values in all RegisteredApplication Keys get properly deleted now.

Also `HKCU\Software\Forschungszentrum Juelich GmbH` is deleted if it only has one entry (which then is `PeTrack`). If it has multiple entries, i.e. some other software was installed under the same registry key, only `HKCU\Software\Forschungszentrum Juelich GmbH\PeTrack` gets deleted.

Closes #131

See merge request !81
parents 0c8fc5a5 b21754b2
No related branches found
No related tags found
1 merge request!81Fix deletion of RegisteredApplication RegValues
Pipeline #29694 passed
......@@ -76,11 +76,16 @@ if(WIN32)
WriteRegStr HKCU 'Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\FileExts\\\\.pet\\\\OpenWithList' 'a' '$INSTDIR\\\\bin\\\\petrack.exe'
")
set(CPACK_NSIS_EXTRA_UNINSTALL_COMMANDS "
EnumRegKey $1 HKCU 'Software\\\\Forschungszentrum Juelich GmbH' 1
StrCmp $1 '' 0 +3
DeleteRegKey HKCU 'Software\\\\Forschungszentrum Juelich GmbH'
goto +2
DeleteRegKey HKCU 'Software\\\\Forschungszentrum Juelich GmbH\\\\PeTrack'
DeleteRegKey HKCR '.pet'
DeleteRegKey HKCR 'petfile'
DeleteRegKey HKLM 'Software\\\\RegisteredApplications\\\\petrack'
DeleteRegKey HKCU 'Software\\\\RegisteredApplications\\\\petrack'
DeleteRegValue HKLM 'Software\\\\RegisteredApplications' 'petrack'
DeleteRegValue HKCU 'Software\\\\RegisteredApplications' 'petrack'
DeleteRegValue HKLM 'SOFTWARE\\\\WOW6432Node\\\\RegisteredApplications' 'petrack'
DeleteRegKey HKCU 'Software\\\\Microsoft\\\\Windows\\\\CurrentVersion\\\\Explorer\\\\FileExts\\\\.pet'
")
endif()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment