forked from winpython/winpython
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
52 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
/* WinPython launcher template script | ||
Copyright © 2012 Pierre Raybaut | ||
Licensed under the terms of the MIT License | ||
(see winpython/__init__.py for details) | ||
*/ | ||
;================================================================ | ||
; These lines are automatically filled when winpython/make.py creates launchers: | ||
!addincludedir "" | ||
!define COMMAND "" | ||
!define PARAMETERS "" | ||
!define WORKDIR "" | ||
Icon "" | ||
OutFile "" | ||
;================================================================ | ||
# Standard NSIS plugins | ||
!include "WordFunc.nsh" | ||
!include "FileFunc.nsh" | ||
|
||
SilentInstall silent | ||
AutoCloseWindow true | ||
ShowInstDetails nevershow | ||
RequestExecutionLevel user | ||
|
||
Section "" | ||
Call Execute | ||
SectionEnd | ||
|
||
Function Execute | ||
;Set working Directory =========================== | ||
StrCmp ${WORKDIR} "" 0 workdir | ||
System::Call "kernel32::GetCurrentDirectory(i ${NSIS_MAX_STRLEN}, t .r0)" | ||
SetOutPath $0 | ||
Goto end_workdir | ||
workdir: | ||
SetOutPath "${WORKDIR}" | ||
end_workdir: | ||
;Get Command line parameters ===================== | ||
${GetParameters} $R1 | ||
StrCmp "${PARAMETERS}" "" end_param 0 | ||
StrCpy $R1 "${PARAMETERS} $R1" | ||
end_param: | ||
;===== Execution ================================= | ||
Exec '"${COMMAND}" $R1' | ||
FunctionEnd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters