Archive: 89135804


89135804
what does "/XSection" do in "makensis /XSection sectioncontents.nsi /XSectionEnd"? how do I use this?
My problem is I try to use makensis.exe to generate exe, then do some deletion in a build file, but it looks makensis.exe may hold some files which I am tring to delete(I guess). is there any way to see makensis.exe complete without holding file?

Why /P is not listed here?

[exec] MakeNSIS v2.23 - Copyright 1995-2007 Contributors
[exec] See the file COPYING for license details.
[exec] Credits can be found in the Users Manual.
[exec] Usage:
[exec] makensis [option | script.nsi | - [...]]
[exec] options are:
[exec] /CMDHELP item prints out help for 'item', or lists all commands
[exec] /HDRINFO prints information about what options makensis was compiled with
[exec] /LICENSE prints the makensis software license
[exec] /VERSION prints the makensis version and exits
[exec] /Vx verbosity where x is 4=all,3=no script,2=no info,1=no warnings,0=none
[exec] /Ofile specifies a text file to log compiler output (default is stdout)
[exec] /PAUSE pauses after execution
[exec] /NOCONFIG disables inclusion of <path to makensis.exe>\nsisconf.nsh
[exec] /NOCD disabled the current directory change to that of the .nsi file
[exec] /Ddefine[=value] defines the symbol "define" for the script [to value]
[exec] /Xscriptcmd executes scriptcmd in script (i.e. "/XOutFile poop.exe")
[exec] parameters are processed by order (/Ddef ins.nsi != ins.nsi /Ddef)
[exec] for script file name, you can use - to read from the standard inputThen


/X simply parses another line of code. /P was added in version 2.24.


still do not understand:"makensis /XSection sectioncontents.nsi /XSectionEnd". can you make it clear.Thanks.


what does "/XSection" do in "makensis /XSection sectioncontents.nsi /XSectionEnd"? how do I use this?
If you don't understand it, maybe you don't need it ;) . This isn't a feature I've ever needed. According to the help info you listed, it will insert a word (or several if you put quotes on it) as if that word were part of the nsi text file you are compiling. Your example shows it adds a Section, includes a section.nsi file, and then a SectionEnd. This would allow the compile command to add a section to the base script that didn't have it. Something like using an !include in the script itself, but controlled at the time the compiler is invoked.
My problem is I try to use makensis.exe to generate exe, then do some deletion in a build file, but it looks makensis.exe may hold some files which I am tring to delete(I guess).
Are you calling makensis in a batch or running it from the GUI (makensisw)? It shouldn't "hold" any files after it finishes compiling. Can you explain what you see happen with more detail?

Don