mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
drop admin rights x64
This commit is contained in:
parent
f936e5f1fd
commit
4331c99e55
|
@ -225,11 +225,17 @@ FunctionEnd
|
||||||
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Create Desktop Shortcut"
|
!define MUI_FINISHPAGE_SHOWREADME_TEXT "Create Desktop Shortcut"
|
||||||
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION finishpageaction
|
!define MUI_FINISHPAGE_SHOWREADME_FUNCTION finishpageaction
|
||||||
|
|
||||||
!define MUI_FINISHPAGE_RUN "$INSTDIR\${MAIN_APP_EXE}"
|
!define MUI_FINISHPAGE_RUN_FUNCTION Launch_qTox_without_Admin
|
||||||
|
!define MUI_FINISHPAGE_RUN
|
||||||
!define MUI_FINISHPAGE_LINK "Find qTox on GitHub"
|
!define MUI_FINISHPAGE_LINK "Find qTox on GitHub"
|
||||||
!define MUI_FINISHPAGE_LINK_LOCATION "https://github.com/tux3/qTox"
|
!define MUI_FINISHPAGE_LINK_LOCATION "https://github.com/tux3/qTox"
|
||||||
!insertmacro MUI_PAGE_FINISH
|
!insertmacro MUI_PAGE_FINISH
|
||||||
|
|
||||||
|
Function Launch_qTox_without_Admin
|
||||||
|
SetOutPath $INSTDIR
|
||||||
|
ShellExecAsUser::ShellExecAsUser "" "$INSTDIR\${MAIN_APP_EXE}" ""
|
||||||
|
FunctionEnd
|
||||||
|
|
||||||
!define MUI_UNABORTWARNING
|
!define MUI_UNABORTWARNING
|
||||||
!define MUI_UNFINISHPAGE_NOAUTOCLOSE
|
!define MUI_UNFINISHPAGE_NOAUTOCLOSE
|
||||||
!insertmacro MUI_UNPAGE_WELCOME
|
!insertmacro MUI_UNPAGE_WELCOME
|
||||||
|
@ -247,21 +253,21 @@ Section "Install"
|
||||||
${SetOutPath} "$INSTDIR"
|
${SetOutPath} "$INSTDIR"
|
||||||
${WriteUninstaller} "uninstall.exe"
|
${WriteUninstaller} "uninstall.exe"
|
||||||
|
|
||||||
${CreateDirectory} "bin"
|
${CreateDirectory} "$INSTDIR\bin"
|
||||||
${SetOutPath} "$INSTDIR\bin"
|
${SetOutPath} "$INSTDIR\bin"
|
||||||
${File} "qtox\*.*"
|
${File} "qtox\*.*"
|
||||||
|
|
||||||
${CreateDirectory} "imageformats"
|
${CreateDirectory} "$INSTDIR\bin\imageformats"
|
||||||
${SetOutPath} "$INSTDIR\bin\imageformats"
|
${SetOutPath} "$INSTDIR\bin\imageformats"
|
||||||
File /nonfatal "qtox\imageformats\*.*"
|
File /nonfatal "qtox\imageformats\*.*"
|
||||||
${SetOutPath} "$INSTDIR\bin"
|
${SetOutPath} "$INSTDIR\bin"
|
||||||
|
|
||||||
${CreateDirectory} "platforms"
|
${CreateDirectory} "$INSTDIR\bin\platforms"
|
||||||
${SetOutPath} "$INSTDIR\bin\platforms"
|
${SetOutPath} "$INSTDIR\bin\platforms"
|
||||||
File /nonfatal "qtox\platforms\*.*"
|
File /nonfatal "qtox\platforms\*.*"
|
||||||
${SetOutPath} "$INSTDIR\bin"
|
${SetOutPath} "$INSTDIR\bin"
|
||||||
|
|
||||||
${CreateDirectory} "sqldrivers"
|
${CreateDirectory} "$INSTDIR\bin\sqldrivers"
|
||||||
${SetOutPath} "$INSTDIR\bin\sqldrivers"
|
${SetOutPath} "$INSTDIR\bin\sqldrivers"
|
||||||
File /nonfatal "qtox\sqldrivers\*.*"
|
File /nonfatal "qtox\sqldrivers\*.*"
|
||||||
${SetOutPath} "$INSTDIR\bin"
|
${SetOutPath} "$INSTDIR\bin"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user