X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=win%2Fyaz.nsi;h=eaf68d81768583797722dbc9f9cdd1b557a69ea2;hb=323805b6779bcf1befdc7cdd7f10c23b06885e0d;hp=a01dcdd37826e1f1649870d6db8064f465057a09;hpb=92f596bde85d55acdd37df9c8d2323dd1b23f6a2;p=yaz-moved-to-github.git diff --git a/win/yaz.nsi b/win/yaz.nsi index a01dcdd..eaf68d8 100644 --- a/win/yaz.nsi +++ b/win/yaz.nsi @@ -33,6 +33,8 @@ InstallDir "$PROGRAMFILES\YAZ" !endif +RequestExecutionLevel admin + SetCompressor bzip2 Name "YAZ" @@ -196,12 +198,11 @@ SectionEnd UninstallText "This will uninstall YAZ ${VERSION} from your system" Section Uninstall -; add delete commands to delete whatever files/registry keys/etc you installed here. + ExecWait '"$INSTDIR\bin\yaz-ztest" -remove' + RMDir /r $SMPROGRAMS\YAZ Delete "$INSTDIR\uninst.exe" DeleteRegKey HKLM "SOFTWARE\Index Data\YAZ" DeleteRegKey HKLM "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\YAZ" - ExecWait '"$INSTDIR\bin\yaz-ztest" -remove' - RMDir /r $SMPROGRAMS\YAZ RMDir /r $INSTDIR ${un.EnvVarUpdate} $0 "PATH" "R" "HKLM" "$INSTDIR\bin" IfFileExists $INSTDIR 0 Removed