Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 13th May 2001, 14:44   #1
alfrenovsky
Junior Member
 
Join Date: Apr 2001
Posts: 9
I posted a message requiring a silent mode. And now the Installer has a silent mode.

I meant COMPILER silent mode. (or at least windows instead console output)

Thanks.
--
Alfrenovsky
alfrenovsky is offline   Reply With Quote
Old 13th May 2001, 16:42   #2
yazno
Member
 
Join Date: Oct 2000
Posts: 92
Send a message via ICQ to yazno
hi,

the compiler is 'silent' by default.
use the /PAUSE switch to see the console output.
IMO a windows output is not needed.

cu yzo
yazno is offline   Reply With Quote
Old 13th May 2001, 18:10   #3
Koen van de Sande
Senior Member
 
Join Date: Mar 2001
Location: Holland
Posts: 269
If you want it to be silent, try to put ">nul" after the command line. I'm not sure if this works for NSIS, but it works for most Dos programs (I mean console). This redirects output to nothing. Or you can try >output.txt to save it in a text file.

Koen van de Sande
Van de Sande Productions
TibEd.net | VPatch
Koen van de Sande is offline   Reply With Quote
Old 13th May 2001, 20:29   #4
yazno
Member
 
Join Date: Oct 2000
Posts: 92
Send a message via ICQ to yazno
hi,

yeah sure koen it works with nsis.
i completely forgot that this was possible.

cu yzo
yazno is offline   Reply With Quote
Old 14th May 2001, 11:34   #5
alfrenovsky
Junior Member
 
Join Date: Apr 2001
Posts: 9
redirecting the output to the nul device still opens the console window. This is not SILENT.
alfrenovsky is offline   Reply With Quote
Old 14th May 2001, 12:59   #6
yazno
Member
 
Join Date: Oct 2000
Posts: 92
Send a message via ICQ to yazno
hi,

i am glad that it opens, otherwise it wouldn't do anything

cu yzo
yazno is offline   Reply With Quote
Old 14th May 2001, 13:15   #7
alfrenovsky
Junior Member
 
Join Date: Apr 2001
Posts: 9
It won´t do anything "visible". That´s silent.
alfrenovsky is offline   Reply With Quote
Old 14th May 2001, 13:22   #8
alfrenovsky
Junior Member
 
Join Date: Apr 2001
Posts: 9
I launch makensis.exe from a windows application to make a redistributable part of the application. I need no console window.
alfrenovsky is offline   Reply With Quote
Old 14th May 2001, 14:02   #9
yazno
Member
 
Join Date: Oct 2000
Posts: 92
Send a message via ICQ to yazno
hi,

Quote:
Originally posted by alfrenovsky
It won´t do anything "visible". That´s silent.
nah .. what you want is 'stealth mode'
if you use >nul it is more that 'silent', but the console _has_to_be_ opened!

Quote:
Originally posted by alfrenovsky
I launch makensis.exe from a windows application to make a redistributable part of the application. I need no console window.
why don't you say that in your question then ?

what do you use ? ShellExecute, WinExec or CreateProcess ?

so why don't you just use SW_HIDE as last parameter in ShellExecute / WinExec or with the wShowWindow flag of the StartUpInfo struct to use it with CreateProcess.

cu yzo
yazno is offline   Reply With Quote
Old 14th May 2001, 15:43   #10
snowbird
Junior Member
 
Join Date: Apr 2001
Posts: 13
Build it yourself.
Use the linker switch /SUBSYSTEM:WINDOWS instead of /SUBSYSTEM:CONSOLE. but then there is no way to get a console. so you will never again see any output..
snowbird is offline   Reply With Quote
Old 7th April 2002, 17:43   #11
crisp
Junior Member
 
Join Date: May 2001
Location: Romania
Posts: 25
Send a message via Yahoo to crisp
Silent Mode Command Line

I'm sorry to interrupt this technical discussion about silent mode of NSIS compiler.

I have a question as a USER of a program distributed using NSIS. (I'm sorry if I am in the writing in the wrong place) .

I want to make a custom CD which will install some applications after the Windows Setup is complete.

So I want to run a kit in silent mode. This works for the Install Shield programs (-r and the -s switch).
But I cannot get it to work for a NSIS kit. (Ex. Divx412codec)

I've tryied /S and /SILENT, after browsing the compiler documentation but it doesn't run in silent mode.

Thansks for your time,

Crisp
crisp is offline   Reply With Quote
Old 7th April 2002, 23:33   #12
SmartyMan
Member
 
Join Date: Jan 2002
Location: Germany
Posts: 79
Quote:
Originally posted by alfrenovsky
I launch makensis.exe from a windows application to make a redistributable part of the application. I need no console window.
Then just use CreateProcess() with proper parameters. If you dont know how to do this - NSIS comes with a windows wrapper named makeNSISw including source, there you should find working source.
SmartyMan is offline   Reply With Quote
Reply
Go Back   Winamp Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump