Skip to content
⌘ NSIS Forum Archive

The /X cmd command

9 posts

arfgh#

The /X cmd command

I want to know if using the expression..

makensis.exe /X....whole script here...


if that works. Because i can send the whole script by cmd. Exist some limit on this case ?
kichik#
There's a limit imposed by the system itself. Windows doesn't support command lines longer than 8192 or 32767.
arfgh#
ok but..

i am trying to do it because my script size... 2799
but nsis not process the script for some reasson.

i check with HM nsis editor and the script is good. Must i know something more about the /X command ?


the way is the follow...


makensis.exe /XName blabla
!addplugindir blabla
OutFile blabla
SetCompressor /SOLID lzma
SetDatablockOptimize on
Icon blabla
InstalldirRegKey HKLM blabla


is that ok ?
arfgh#
makensis.exe /XName blabla
!addplugindir blabla
OutFile blabla
SetCompressor /SOLID lzma
SetDatablockOptimize on
Icon blabla
InstalldirRegKey HKLM blabla


is that ok ?

i mean the makensis refuse to process the whole script send by cmd
kichik#
/X accepts one command at a time. You can't send the entire script using /X. Use one /X per script line.
arfgh#
ahhhhh

i thought the whole script can be sent by cmd.
Anyways i am finding a way to not need to make the script on a file and send it directly to makensis, maybe is not possible ?

example: sending the memory pointer from a variable to makensis, or some like that.