mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:37:51 +02:00
Fixes to uninstaller
This commit is contained in:
parent
02d317dc24
commit
8dc16f29bc
1 changed files with 11 additions and 7 deletions
|
@ -47,7 +47,7 @@
|
||||||
Var ChosenFrontEndInstallDir
|
Var ChosenFrontEndInstallDir
|
||||||
Var ChosenBackEndInstallDir
|
Var ChosenBackEndInstallDir
|
||||||
|
|
||||||
SetCompressor /SOLID lzma
|
SetCompressor bzip2
|
||||||
ShowInstDetails hide
|
ShowInstDetails hide
|
||||||
ShowUninstDetails hide
|
ShowUninstDetails hide
|
||||||
AutoCloseWindow true
|
AutoCloseWindow true
|
||||||
|
@ -74,8 +74,10 @@ Section /o "DDE Face Recognition" SEC01
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Registry Entries and Procotol Handler" SEC02
|
Section "Registry Entries and Procotol Handler" SEC02
|
||||||
|
SetRegView 64
|
||||||
SectionIn RO
|
SectionIn RO
|
||||||
WriteRegStr HKLM "${regkey}" "Install_Dir" "$ChosenFrontEndInstallDir"
|
WriteRegStr HKLM "${regkey}" "Install_Dir" "$ChosenFrontEndInstallDir"
|
||||||
|
WriteRegStr HKLM "${regkey}" "Backend_Install_Dir" "$ChosenBackEndInstallDir"
|
||||||
WriteRegStr HKLM "${uninstkey}" "DisplayName" "${install_directory} (remove only)"
|
WriteRegStr HKLM "${uninstkey}" "DisplayName" "${install_directory} (remove only)"
|
||||||
WriteRegStr HKLM "${uninstkey}" "UninstallString" '"$ChosenFrontEndInstallDir\${uninstaller}"'
|
WriteRegStr HKLM "${uninstkey}" "UninstallString" '"$ChosenFrontEndInstallDir\${uninstaller}"'
|
||||||
WriteRegStr HKCR "${company}\Shell\open\command\" "" '"$ChosenFrontEndInstallDir\${interface_exec} "%1"'
|
WriteRegStr HKCR "${company}\Shell\open\command\" "" '"$ChosenFrontEndInstallDir\${interface_exec} "%1"'
|
||||||
|
@ -114,14 +116,16 @@ Section "Start Menu Shortcuts" SEC05
|
||||||
CreateShortCut "${startmenu_company}\Uninstall ${company}.lnk" "$ChosenFrontEndInstallDir\${uninstaller}"
|
CreateShortCut "${startmenu_company}\Uninstall ${company}.lnk" "$ChosenFrontEndInstallDir\${uninstaller}"
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
Section "Uninstall"
|
Section "Uninstall"
|
||||||
SetShellVarContext all
|
SetRegView 64
|
||||||
SetOutPath $TEMP
|
ReadRegStr $0 HKLM "${regkey}" "Backend_Install_Dir"
|
||||||
RMDIR /r "${startmenu_company}"
|
Delete "$INSTDIR\${uninstaller}"
|
||||||
RMDIR /r "$ChosenBackEndInstallDir"
|
RMDir /r "$INSTDIR"
|
||||||
RMDIR /r "$ChosenFrontEndInstallDir"
|
RMDir /r "${startmenu_company}"
|
||||||
|
RMDir /r "$0"
|
||||||
DeleteRegKey HKLM "${uninstkey}"
|
DeleteRegKey HKLM "${uninstkey}"
|
||||||
DeleteRegKey HKLM "${regkey}"
|
DeleteRegKey HKLM "${regkey}"
|
||||||
|
DeleteRegKey HKCR "${company}"
|
||||||
DeleteRegKey HKCR 'hifi'
|
DeleteRegKey HKCR 'hifi'
|
||||||
SectionEnd
|
SectionEnd
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue