rtoss

Subversion Repositories:
Compare Path: Rev
With Path: Rev
/nsis script runner @ 232  →  /nsis script runner/ @ 333
/nsis script runner/shellrunner.nsi
@@ -32,6 +32,7 @@
Var argv8
Var argv9
Var lineno
Var skiplines
 
Var retval
Var var0
@@ -642,15 +643,37 @@
${EndIf}
${EndIf}
${Break}
${Case} '!shellctx'
${If} $argv0 == 'all'
SetShellVarContext all
${Else}
SetShellVarContext current
${EndIf}
${Break}
${Case} '!expendenv'
StrLen $retval $argv0
ExpandEnvStrings $retval $argv0
${Break}
${Case} '!readenv'
StrLen $retval $argv0
ReadEnvStr $retval $argv0
${Break}
; ${Case} '!readregdword'
; ReadRegDWORD $retval $argv0 $argv1 $argv2
; ${Break}
; ${Case} '!readregstr'
; ReadRegStr $retval $argv0 $argv1 $argv2
; ${Break}
; ${Case} '!writeregstr'
; WriteRegStr $argv0 $argv1 $argv2
; ${Break}
${Case} '!readini'
ReadINIStr $retval $argv0 $argv1 $argv2
${Break}
${Case} '!writeini'
WriteINIStr $argv0 $argv1 $argv2 $argv3
${Break}
${Case} '!mklink'
CreateShortcut $argv0 $argv1 $argv2 $argv3
${Break}
${Case} '!findwin'
${If} $argvc = 4
${If} $argv1 = ''
@@ -676,6 +699,9 @@
${Case} '!sendmsg'
SendMessage $argv0 $argv1 $argv2 $argv3
${Break}
${Case} '!skip'
IntOp $skiplines $argv0 + 0
${Break}
${Case} '!vartoret'
${Switch} $argv0
${Case} 'var0'
@@ -783,8 +809,13 @@
FileRead $4 $oline
!endif
StrCpy $lineno 1
StrCpy $skiplines 0
${DoUntil} ${Errors}
${processLine} $oline
${If} $skiplines = 0
${processLine} $oline
${Else}
IntOp $skiplines $skiplines - 1
${EndIf}
IntOp $lineno $lineno + 1
!ifdef UTF16Script
FileReadUTF16LE $4 $oline
@@ -816,12 +847,12 @@
${If} ${FileExists} `$EXEDIR\$SetupName.txt`
${readFile} "$EXEDIR\$SetupName.txt"
${EndIf}
${Else}
${Else}
${StrRep} $args "$args" '"' ""
 
${If} ${FileExists} `$args`
${readFile} "$args"
${Else}
${Else}
${If} ${FileExists} `$EXEDIR\$args`
${readFile} "$EXEDIR\$args"
${Else}