MultiCmd: One NSIS command instead of multiple

From NSIS Wiki

Author: Afrow UK (talk, contrib)


[edit] Links

MultiCmd.zip (22 KB)
Image:Zip.gif MultiCmd.zip (22 KB) (Mirror #1)

Extract to NSIS folder and place !include MultiCmd.nsh at the top of your script.

[edit] Description

Sometimes you might want to use one File command for loads of files, or one Var command for loads of variables.

Well now you can!

[edit] How To Use / Examples

${MultiCmd} Var 'myVar1, myVar2, myVar3'

...makes 3 vars

${MultiCmd} File '"file with spaces", "/oname=blah.txt" "file2.txt", file3.txt'

...adds the 3 files

Use \, to escape commas (else comma is a parameter seperator).

-Stu

donate
ads