Old 18th November 2011, 15:29   #1
kahuna83
Junior Member
 
Join Date: Nov 2011
Posts: 1
Unhappy passive installer with nsis

ji everybody,

i found an installer which was made with nsis i think

http://www2.kodakdental.com/files/dr...uprvgtwain.exe

if i used the "/S" parameter at command line the instfiles page is shown as you can see here:
http://imageshack.us/photo/my-images...benanntby.jpg/

could somebody told me how to do this. if i use the "/S" on my installers there will be no window shown.
kahuna83 is offline   Reply With Quote
Old 18th November 2011, 15:44   #2
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
NSIS does (almost) nothing automatically. If you want your installer to respond to a parameter, you have to code that behavior yourself.

First step, the manual: http://nsis.sourceforge.net/Docs/AppendixE.html#E.1.11
MSG is offline   Reply With Quote
Old 18th November 2011, 15:50   #3
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
Try something like this:
Quote:
outfile test.exe
requestexecutionlevel user
InstallDir "$programfiles\myapp"
!include LogicLib.nsh

page directory SkipPageIfSilent
page components SkipPageIfSilent
page instfiles

Var MySilent

Function .onInit
${If} ${Silent}
SetSilent normal
StrCpy $MySilent 1
SetAutoClose true
${EndIf}
FunctionEnd

Function SkipPageIfSilent
${IfThen} $MySilent <> 0 ${|} Abort ${|}
FunctionEnd

section
Sleep 333
Sleep 333
Sleep 333
Sleep 333
sectionend

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 18th November 2011, 16:20   #4
MSG
Major Dude
 
Join Date: Oct 2006
Posts: 1,892
Ah yes, I keep forgetting about the bloody silent flag. Hate that feature. ~_~
MSG is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast 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