forked from tauri-apps/nsis-tauri-utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.nsi
36 lines (32 loc) · 1.11 KB
/
demo.nsi
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
27
28
29
30
31
32
33
34
35
36
Name "demo"
OutFile "demo.exe"
Unicode true
!addplugindir ".\target\release"
!addplugindir ".\target\debug"
!addplugindir ".\target\i686-pc-windows-msvc\release"
!addplugindir ".\target\i686-pc-windows-msvc\debug"
!addplugindir "$%CARGO_TARGET_DIR%\release"
!addplugindir "$%CARGO_TARGET_DIR%\debug"
!addplugindir "$%CARGO_TARGET_DIR%\i686-pc-windows-msvc\release"
!addplugindir "$%CARGO_TARGET_DIR%\i686-pc-windows-msvc\debug"
!addplugindir "$%CARGO_BUILD_TARGET_DIR%\release"
!addplugindir "$%CARGO_BUILD_TARGET_DIR%\debug"
!addplugindir "$%CARGO_BUILD_TARGET_DIR%\i686-pc-windows-msvc\release"
!addplugindir "$%CARGO_BUILD_TARGET_DIR%\i686-pc-windows-msvc\debug"
!include "MUI2.nsh"
!insertmacro MUI_PAGE_INSTFILES
!insertmacro MUI_LANGUAGE "English"
Section
nsis_semvercompare::SemverCompare "1.0.0" "1.1.0"
Pop $1
DetailPrint $1
nsis_process::FindProcess "explorer.exe"
Pop $1
DetailPrint $1
nsis_process::FindProcess "abcdef.exe"
Pop $1
DetailPrint $1
nsis_download::Download "https://go.microsoft.com/fwlink/p/?LinkId=2124703" "wv2setup.exe"
Pop $1
DetailPrint $1
SectionEnd