Old 17th November 2006, 01:24   #1
Alstom
Member
 
Join Date: Nov 2006
Posts: 51
How to skip all pages?

hi, i quite new to this. How do we skip all the pages and install the installer silently in the backgroud w/o user type or click anything?
Alstom is offline   Reply With Quote
Old 17th November 2006, 09:36   #2
n_baua
Member
 
Join Date: Aug 2006
Posts: 86
Hi,

I am not sure what software/driver you are installing?
or are you just copying some files from installer...?

please look at this URL
http://forums.winamp.com/search.php?...by=&sortorder=
n_baua is offline   Reply With Quote
Old 17th November 2006, 10:02   #3
glory_man
Senior Member
 
Join Date: Sep 2004
Location: Mogilev (Belarus)
Posts: 372
Re: How to skip all pages?

Quote:
Originally posted by Alstom
hi, i quite new to this. How do we skip all the pages and install the installer silently in the backgroud w/o user type or click anything?
Use SetSilent instruction.
glory_man is offline   Reply With Quote
Old 20th November 2006, 01:35   #4
Alstom
Member
 
Join Date: Nov 2006
Posts: 51
Re: How to skip all pages?

I am trying to install this installation silently using silent mode, it is installing in the backgroud but not installing into the computer. Below is my script.

;Runing a .exe file on Windows Start
!include "MUI.nsh"

Name "S2KSetup"
OutFile "S2Kinstall.exe"

!insertmacro MUI_LANGUAGE "English"

SilentInstall silent
AutoCloseWindow true

installDir $DESKTOP\S2K

Function .onInit
Call IsSilent
Pop $0
StrCmp $0 1 0 +3
MessageBox MB_OK|MB_ICONSTOP "This installer can run in silent mode!"
Abort
FunctionEnd


# default section
section

# define the output path for this file
setOutPath $INSTDIR

# define what to install and place it in the output path
file "setupS2KServer.exe"



ExecShell "open" "$EXEDIR\setupS2KServer.exe" /S

sectionEnd

Function IsSilent
Push $0
Push $CMDLINE
Push "/S"
Call StrStr
Pop $0
StrCpy $0 $0 3
StrCmp $0 "/S" silent
StrCmp $0 "/S " silent
StrCpy $0 0
Goto notsilent
silent: StrCpy $0 1
notsilent: Exch $0
FunctionEnd

Function StrStr
Exch $R1 ; st=haystack,old$R1, $R1=needle
Exch ; st=old$R1,haystack
Exch $R2 ; st=old$R1,old$R2, $R2=haystack
Push $R3
Push $R4
Push $R5
StrLen $R3 $R1
StrCpy $R4 0
; $R1=needle
; $R2=haystack
; $R3=len(needle)
; $R4=cnt
; $R5=tmp
loop:
StrCpy $R5 $R2 $R3 $R4
StrCmp $R5 $R1 done
StrCmp $R5 "" done
IntOp $R4 $R4 + 1
Goto loop
done:
StrCpy $R1 $R2 "" $R4
Pop $R5
Pop $R4
Pop $R3
Pop $R2
Exch $R1
FunctionEnd
Alstom is offline   Reply With Quote
Old 20th November 2006, 10:48   #5
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
All you need is a simple script without MUIs/pages, nor languages etc.
Just some function(s) to read from registry, to set the output directories if needed etc, and a section to install the files, write to the registry, call other functions to start/stop services etc.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 21st November 2006, 01:15   #6
Alstom
Member
 
Join Date: Nov 2006
Posts: 51
how do i write it?is the script i wrote wrong? It do seem to install the program at all. If not install silently, it would prompt the user to click next, yes and etc 4 the licence and the directory to install. How do i write to skip all this and install in the background??
Alstom is offline   Reply With Quote
Old 21st November 2006, 15:25   #7
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
Assume you wish to install Firefox without interrupt the end user on a machine where firefox is not installed.

Outfile "test.exe"
SilentInstall silent

function .onInit
Read the target's registry to find out if firefox is installed
then according to that quit or continue.
functionend

section -boo
setoutpath "$PLUGINSDIR"
File /oname=$PLUGINSDIR\Firefox_installer.exe Firefox_installer.exe
ExecWait "$PLUGINSDIR\Firefox_installer -ms"
sectionend

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 21st November 2006, 15:30   #8
Alstom
Member
 
Join Date: Nov 2006
Posts: 51
sorry, maybe i write it wrongly. My english is not gd.

I mean is it possible to exec a installation silently w/o prompting the user where to install, etc? I am able to run e installer silently but e installation of the program cannot. if silent, it will not install into e com.

Anyway, thx 4 ur help!!
Alstom is offline   Reply With Quote
Old 21st November 2006, 15:43   #9
Red Wine
Forum King
 
Red Wine's Avatar
 
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
OK if the installation is from NSIS try to read the SilentInstall topic on manual, create your silent installer and execute it through some gui or from command line with /S switch. For other installers you have to find out the silent switch if they have any.

Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV
Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS
Red Wine is offline   Reply With Quote
Old 22nd November 2006, 01:35   #10
Alstom
Member
 
Join Date: Nov 2006
Posts: 51
Thx but the installation is not from NSIS. I would find out the silent switch for the installers.

Million Thx!!!
Alstom 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