Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 29th May 2001, 22:59   #1
rfb
Junior Member
 
Join Date: Mar 2001
Posts: 7
Conditional SilentInstall
.. is it possible?

-ryan
rfb is offline   Reply With Quote
Old 30th May 2001, 05:51   #2
yazno
Member
 
Join Date: Oct 2000
Posts: 92
Send a message via ICQ to yazno
hi,

on compiletime --> yes

;!define silent

!ifdef silent
SilentInstall Silent
!endif

on runtime --> nope

cu yzo
yazno is offline   Reply With Quote
Old 30th May 2001, 10:41   #3
saivert
Banned
 
saivert's Avatar
 
Join Date: Jan 2001
Location: Norway
Posts: 927
Conditional SilentInstall on runtime

You may have to installers, one silent and one verbose.
Then make a third installer that runs one of these depending on something. An example script for such function is as follows:
code:

Name Installer checker
; The installer checker is ofcourse silent itself.
Silent

Section ""
StrCmp $1 $2 silent notsilent

silent:
ExecWait $TEMP\verboseinstaller.exe
goto end

notsilent:
ExecWait $TEMP\silentinstaller.exe
end:
SectionEnd



You have to fiddle with the example a bit ofcourse...
saivert is offline   Reply With Quote
Old 30th May 2001, 11:37   #4
yazno
Member
 
Join Date: Oct 2000
Posts: 92
Send a message via ICQ to yazno
hi,

did you recognize that this would double the installer size?

Then better use the param /S (1.42 only)

Setup.exe --> normal
Setup.exe /S --> silent

cu yzo

yazno is offline   Reply With Quote
Old 30th May 2001, 15:32   #5
rfb
Junior Member
 
Join Date: Mar 2001
Posts: 7
ahh, alhought not the answer I was looking for, /S works prefectly for my application.

thank alot!
-ryan
rfb 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