Implement workaround that prevents the installer from showing the UAC dialog in the background. Suggested by "Anders".
This commit is contained in:
parent
65482fb2e8
commit
6276e54932
@ -24,6 +24,8 @@ set "TMP_PATH=%TEMP%\~LameXP.%LAMEXP_CONFIG%.%OUT_DATE%.tmp"
|
|||||||
set "OBJ_PATH=..\..\obj\%LAMEXP_CONFIG%"
|
set "OBJ_PATH=..\..\obj\%LAMEXP_CONFIG%"
|
||||||
set "MOC_PATH=..\..\tmp"
|
set "MOC_PATH=..\..\tmp"
|
||||||
REM ------------------------------------------
|
REM ------------------------------------------
|
||||||
|
REM goto SkipBuildThisTime
|
||||||
|
REM ------------------------------------------
|
||||||
REM :: CLEAN UP ::
|
REM :: CLEAN UP ::
|
||||||
REM ------------------------------------------
|
REM ------------------------------------------
|
||||||
del /Q "%OUT_PATH%\*.exe"
|
del /Q "%OUT_PATH%\*.exe"
|
||||||
@ -43,6 +45,8 @@ if not "%LAMEXP_ERROR%"=="0" (
|
|||||||
GOTO:EOF
|
GOTO:EOF
|
||||||
)
|
)
|
||||||
REM ------------------------------------------
|
REM ------------------------------------------
|
||||||
|
REM :SkipBuildThisTime
|
||||||
|
REM ------------------------------------------
|
||||||
REM :: READ VERSION INFO ::
|
REM :: READ VERSION INFO ::
|
||||||
REM ------------------------------------------
|
REM ------------------------------------------
|
||||||
call _version.bat
|
call _version.bat
|
||||||
|
@ -35,6 +35,7 @@ ShowInstDetails show
|
|||||||
!define MUI_HEADERIMAGE
|
!define MUI_HEADERIMAGE
|
||||||
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\orange.bmp"
|
!define MUI_HEADERIMAGE_BITMAP "${NSISDIR}\Contrib\Graphics\Header\orange.bmp"
|
||||||
!define MUI_PAGE_CUSTOMFUNCTION_SHOW CheckForUpdate
|
!define MUI_PAGE_CUSTOMFUNCTION_SHOW CheckForUpdate
|
||||||
|
!define MUI_CUSTOMFUNCTION_GUIINIT myUacInit
|
||||||
|
|
||||||
!searchreplace PRODUCT_VERSION_DATE "${LAMEXP_DATE}" "-" "."
|
!searchreplace PRODUCT_VERSION_DATE "${LAMEXP_DATE}" "-" "."
|
||||||
VIProductVersion "${PRODUCT_VERSION_DATE}.${LAMEXP_BUILD}"
|
VIProductVersion "${PRODUCT_VERSION_DATE}.${LAMEXP_BUILD}"
|
||||||
@ -56,7 +57,7 @@ VIAddVersionKey "Website" "http://mulder.at.gg/"
|
|||||||
!include `${NSISDIR}\Contrib\zip2exe\Base.nsh`
|
!include `${NSISDIR}\Contrib\zip2exe\Base.nsh`
|
||||||
!include `${NSISDIR}\Contrib\zip2exe\Modern.nsh`
|
!include `${NSISDIR}\Contrib\zip2exe\Modern.nsh`
|
||||||
|
|
||||||
Function .onInit
|
Function myUacInit
|
||||||
UAC_TryAgain:
|
UAC_TryAgain:
|
||||||
!insertmacro UAC_RunElevated
|
!insertmacro UAC_RunElevated
|
||||||
${Switch} $0
|
${Switch} $0
|
||||||
|
Loading…
Reference in New Issue
Block a user