Archive: The /X cmd command


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 ?


There's a limit imposed by the system itself. Windows doesn't support command lines longer than 8192 or 32767.


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 ?


What do you mean by "process the script for some reason"?


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


/X accepts one command at a time. You can't send the entire script using /X. Use one /X per script line.


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.


Why not save to a temp nsi file on the hard drive and pass that to makensis?

Stu


that is just what i dont want to do