mirror of
https://github.com/tauri-apps/nsis-tauri-utils.git
synced 2026-01-31 00:45:23 +01:00
29 lines
823 B
NSIS
29 lines
823 B
NSIS
Name "demo"
|
|
OutFile "demo.exe"
|
|
Unicode true
|
|
ShowInstDetails show
|
|
|
|
!addplugindir ".\target\i686-pc-windows-msvc\release"
|
|
!addplugindir "$%CARGO_TARGET_DIR%\i686-pc-windows-msvc\release"
|
|
!addplugindir "$%CARGO_BUILD_TARGET_DIR%\i686-pc-windows-msvc\release"
|
|
|
|
!include "MUI2.nsh"
|
|
|
|
!insertmacro MUI_PAGE_INSTFILES
|
|
!insertmacro MUI_LANGUAGE "English"
|
|
|
|
Section
|
|
nsis_semvercompare::SemverCompare "1.0.0" "1.1.0"
|
|
Pop $1
|
|
DetailPrint "SemverCompare(1.0.0, 1.1.0): $1"
|
|
nsis_process::FindProcess "explorer.exe"
|
|
Pop $1
|
|
DetailPrint "FindProcess(explorer.exe): $1"
|
|
nsis_process::FindProcess "abcdef.exe"
|
|
Pop $1
|
|
DetailPrint "FindProcess(abcdef.exe): $1"
|
|
nsis_process::RunAsUser "C:\\Windows\\System32\\cmd.exe" "/c timeout 3"
|
|
Pop $1
|
|
DetailPrint "RunAsUser(cmd, /c timeout 3): $1"
|
|
SectionEnd
|