PDA

View Full Version : Conditional SilentInstall


rfb
29th May 2001, 22:59
Conditional SilentInstall
.. is it possible?

-ryan

yazno
30th May 2001, 05:51
hi,

on compiletime --> yes

;!define silent

!ifdef silent
SilentInstall Silent
!endif

on runtime --> nope

cu yzo

saivert
30th May 2001, 10:41
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:

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...

yazno
30th May 2001, 11:37
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

rfb
30th May 2001, 15:32
ahh, alhought not the answer I was looking for, /S works prefectly for my application.

thank alot!
-ryan