heya guys, need some help here..
i've seen it earlier, that some installers run an embedded exe where the output is shown in active window of the installer.
does anyone know how to do that?
CMD / BAT / EXE Output in active Window
14 posts
Use ExecDos::exec /DETAILED or nsExec::ExecToLog.
Stu
Stu
ExecDos::exec /DETAILED "$INSTDIR\test.exe"
is that correct?
is that correct?
yes (sometimes trying is the quickest way to find out)
i can't try it on my own at now.
just in a few minutes. thats why i ask 😉
another problem i have is following:
i want the installer show only a small window on installation process.
just as the most "full-screen" installers from installshield do.
there is only few infos about installation process (such as files copied) and the status-bar.
is that possible with nsis too?
just in a few minutes. thats why i ask 😉
another problem i have is following:
i want the installer show only a small window on installation process.
just as the most "full-screen" installers from installshield do.
there is only few infos about installation process (such as files copied) and the status-bar.
is that possible with nsis too?
you could try a different UI, but that would apply to all of the installer windows (i could be wrong!) or build your custom instpage using nsDialogs or nsWindows, or just the progress dialog using one of the many banner plugins (like Nxs). i built custom instpages before, but it can become a lot of work to accomplish something very simple and it doesn't feel "clean".
hmm, i'm just new to it.
i didn't know anything about configuring my own pages in that way.
back to the first problem: i've tested it now, but dont get any output (the exe just opens up a small cmd-window). the only output is that on which path it is installed
i didn't know anything about configuring my own pages in that way.
back to the first problem: i've tested it now, but dont get any output (the exe just opens up a small cmd-window). the only output is that on which path it is installed
i haven't used ExecDos myself, but i remember there's a bunch of related topics on this forum. using nsExec::ExecToLog myself and don't recall any problems.
maybe its me, but i figured out why it shows nothing...
it wont work with ShowInstDetails nevershow, right?
it seems that i need a custom page for showing the output.
(i dont want an output for the normal installation)
it wont work with ShowInstDetails nevershow, right?
it seems that i need a custom page for showing the output.
(i dont want an output for the normal installation)
nswindows only shows an error: "Invalid command: ${NSW_CreateWindow}"
i installed the plugin as usual.
i installed the plugin as usual.
you can also control the output using SetDetailsViewOriginally Posted by Thyrador View Postmaybe its me, but i figured out why it shows nothing...
it wont work with ShowInstDetails nevershow, right?
it seems that i need a custom page for showing the output.
(i dont want an output for the normal installation)
did you include nsWindows in the header of your script?Originally Posted by Thyrador View Postnswindows only shows an error: "Invalid command: ${NSW_CreateWindow}"
i installed the plugin as usual.
!include "nsWindows.nsh"
yep, its included.Originally Posted by Yathosho View Postdid you include nsWindows in the header of your script?
!include "nsWindows.nsh"
but i get another errormessage too: Invalid command: nsWindows$insWindows::Create
You need to use !addincludedir and !addplugindir to point the compiler to where you've stored the nsh and dll files.