forked from meganz/MEGAsync
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmake_uninstallers.cmd
More file actions
26 lines (22 loc) · 843 Bytes
/
make_uninstallers.cmd
File metadata and controls
26 lines (22 loc) · 843 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
SET SUFFIX_DEF=
if not "%MEGA_VERSION_SUFFIX%" == "" (
SET SUFFIX_DEF=/DVERSION_SUFFIX=%MEGA_VERSION_SUFFIX%
)
IF [%MEGA_QTPATH%]==[] (
IF NOT [%MEGAQTPATH%]==[] (
SET MEGA_QTPATH=%MEGAQTPATH%
) ELSE (
SET MEGA_QTPATH=C:\Qt\5.15.16\x64
)
)
"C:\Program Files (x86)\NSIS\makensis.exe" /DBUILD_UNINSTALLER /DBUILD_X64_VERSION %SUFFIX_DEF% /DMEGA_QTPATH=%MEGA_QTPATH% /DWINKITVER=%MEGA_WIN_KITVER% installer_win.nsi || exit 1 /b
UninstallerGenerator.exe
erase UninstallerGenerator.exe
move uninst.exe built64 || exit 1 /b
IF "%MEGA_SKIP_32_BIT_BUILD%" == "true" (
GOTO :EOF
)
"C:\Program Files (x86)\NSIS\makensis.exe" /DBUILD_UNINSTALLER %SUFFIX_DEF% /DMEGA_QTPATH=%MEGA_QTPATH% /DWINKITVER=%MEGA_WIN_KITVER% installer_win.nsi || exit 1 /b
UninstallerGenerator.exe
erase UninstallerGenerator.exe
move uninst.exe built32 || exit 1 /b