Archive: problems with SilentInstall


problems with SilentInstall
i have a problem with SilentInstall, i used SilentInstall silent and after compile the exe don't work :(


SilentInstall silent should be right. Sounds like the problem is elsewhere in the script. Post up the error messages you're getting, or part of the script and someone might be able to fix it.


it comes no error
i press the exe (doubleklick) the computer "works" and after a while.. nothing happens :(

Script:


Name "Sven Co-op Maps"
Caption "Sven Co-op Maps"
OutFile "sc_bigmappack.exe"

SetCompress force
SetDatablockOptimize on
CRCCheck on
SilentInstall silent

InstallDir "C:\SIERRA\Half-Life"
InstallDirRegKey HKLM "SOFTWARE\Valve\Half-Life" "InstallPath"
DirText "Choose the Half-Life directory:"

ComponentText "This will install the Maps for SvenCo-op. Select which Maps you want installed."
EnabledBitmap bitmap1.bmp
DisabledBitmap bitmap2.bmp
!ifndef NOINSTTYPES ; only if not defined
InstType "Full"
InstType "Only Maps"
InstType "Only Map Packs"
;InstType /NOCUSTOM
!endif

AutoCloseWindow false
ShowInstDetails show

Section ""
SectionIn 123
SetOutPath $INSTDIR\SvenCoop\maps
SectionEnd

Section "Alley"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\sc_alley.bsp
File F:\SvenCoop\maps\sc_alley.cfg
File F:\SvenCoop\maps\sc_alley.txt
SectionEnd

Section "Jailbreak"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\jailbreak.bsp
File F:\SvenCoop\maps\jailbreak.cfg
File F:\SvenCoop\maps\jailbreak.txt
File F:\SvenCoop\maps\jailbreak2.bsp
File F:\SvenCoop\maps\jailbreak2.cfg
File F:\SvenCoop\maps\Jailbreak2.txt
SetOutPath $INSTDIR\SvenCoop
File F:\SvenCoop\jailbreak2.wad
SectionEnd

Section "BlastCorpse"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\blastcorpse1.bsp
File F:\SvenCoop\maps\blastcorpse1.cfg
File F:\SvenCoop\maps\blastcorpse1.txt
File F:\SvenCoop\maps\blastcorpse1_motd.txt
SetOutPath $INSTDIR\SvenCoop\maps\graphs
File F:\SvenCoop\maps\graphs\blastcorpse1.nod
File F:\SvenCoop\maps\graphs\blastcorpse1.nrp
SetOutPath $INSTDIR\SvenCoop\models
File F:\SvenCoop\models\dirtycloths.mdl
SetOutPath $INSTDIR\SvenCoop
File F:\SvenCoop\creexul.wad
SectionEnd

Section "Durga"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\durga.bsp
File F:\SvenCoop\maps\durga.cfg
File F:\SvenCoop\maps\Readme_durga.txt
SetOutPath $INSTDIR\SvenCoop\sound\ambience
File F:\SvenCoop\sound\ambience\techamb.wav
SectionEnd

Section "Escape"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\escape.bsp
File F:\SvenCoop\maps\escape.cfg
File F:\SvenCoop\maps\Escape.txt
SectionEnd

Section "Grunts vs. Grunts Test"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\gvsg.bsp
File F:\SvenCoop\maps\gvsg.cfg
SectionEnd

Section "OSP"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\mg386_osp1.bsp
File F:\SvenCoop\maps\mg386_osp2.bsp
File F:\SvenCoop\maps\mg386_osp3.bsp
File F:\SvenCoop\maps\mg386_osp4.bsp
File F:\SvenCoop\maps\mg386_osp1.cfg
File F:\SvenCoop\maps\mg386_osp2.cfg
File F:\SvenCoop\maps\mg386_osp3.cfg
File F:\SvenCoop\maps\mg386_osp4.cfg
File F:\SvenCoop\maps\mg386_osp.txt
File F:\SvenCoop\maps\mg386_osp1.txt
File F:\SvenCoop\maps\mg386_osp2.txt
File F:\SvenCoop\maps\mg386_osp3.txt
File F:\SvenCoop\maps\mg386_osp4.txt
File F:\SvenCoop\maps\mg386_osp1_motd.txt
File F:\SvenCoop\maps\mg386_osp2_motd.txt
File F:\SvenCoop\maps\mg386_osp3_motd.txt
File F:\SvenCoop\maps\mg386_osp4_motd.txt
SetOutPath $INSTDIR\SvenCoop\gfx\env
File F:\SvenCoop\gfx\env\ac_bk.tga
File F:\SvenCoop\gfx\env\ac_dn.tga
File F:\SvenCoop\gfx\env\ac_ft.tga
File F:\SvenCoop\gfx\env\ac_lf.tga
File F:\SvenCoop\gfx\env\ac_rt.tga
File F:\SvenCoop\gfx\env\ac_up.tga
SetOutPath $INSTDIR\SvenCoop\sound\mg386
File F:\SvenCoop\sound\mg386\conf1.wav
File F:\SvenCoop\sound\mg386\conf2.wav
File F:\SvenCoop\sound\mg386\conf3.wav
SetOutPath $INSTDIR\SvenCoop
File F:\SvenCoop\ospreymg.wad
SectionEnd

Section "SpaceViking"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\sc_spaceb1.bsp
SetOutPath $INSTDIR\SvenCoop
File F:\SvenCoop\mission.wad
SectionEnd

Section "Starcraft2"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\starcraft2.bsp
File F:\SvenCoop\maps\starcraft2.cfg
SectionEnd

Section "Warhouse"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\warhouse.bsp
File F:\SvenCoop\maps\warhouse.cfg
File F:\SvenCoop\maps\wahouse.txt
SectionEnd

Section "2 Bases"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\2bases.bsp
File F:\SvenCoop\maps\2bases.cfg
SectionEnd

Section "Barney Beach"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\barney_beach.bsp
File F:\SvenCoop\maps\barney_beach.cfg
File F:\SvenCoop\maps\barney_beach.txt
SetOutPath $INSTDIR\SvenCoop\maps\graphs
File F:\SvenCoop\maps\graphs\barney_beach.nod
File F:\SvenCoop\maps\graphs\barney_beach.nrp
SectionEnd

Section "Fishing Special Edition"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\fishingse.bsp
File F:\SvenCoop\maps\fishingse.txt
SetOutPath $INSTDIR\SvenCoop
File F:\SvenCoop\fishingse.wad
SectionEnd

Section "Mastamike"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\mastamike.bsp
File F:\SvenCoop\maps\mastamike.cfg
File F:\SvenCoop\maps\mastamike.txt
SectionEnd

Section "Rescue v3"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\rescue3.bsp
File F:\SvenCoop\maps\rescue3.cfg
File F:\SvenCoop\maps\rescue3.txt
File F:\SvenCoop\maps\rescue2.txt
SectionEnd

Section "Rush"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\rush.bsp
File F:\SvenCoop\maps\rush.cfg
File F:\SvenCoop\maps\rush.txt
SectionEnd

Section "Hill Air Force Base"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\sc_airbase.bsp
File F:\SvenCoop\maps\sc_airbase.cfg
File F:\SvenCoop\maps\sc_airbase.txt
SectionEnd

Section "The City"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\sc_city.bsp
File F:\SvenCoop\maps\sc_city.cfg
File F:\SvenCoop\maps\sc_city.txt
SectionEnd

Section "Storage D"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\storaged.bsp
File F:\SvenCoop\maps\storaged.cfg
File F:\SvenCoop\maps\storaged.txt
SectionEnd

Section "Torn 2"
SectionIn 12
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\torn2.bsp
File F:\SvenCoop\maps\torn2.txt
SectionEnd

Section "DeathBog Map Pack"
SectionIn 13
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\invasion.bsp
File F:\SvenCoop\maps\invasion2.bsp
File F:\SvenCoop\maps\invasion3.bsp
File F:\SvenCoop\maps\invasion4.bsp
File F:\SvenCoop\maps\svencooprpg.bsp
File F:\SvenCoop\maps\undeath.bsp
File F:\SvenCoop\maps\invasion.cfg
File F:\SvenCoop\maps\invasion2.cfg
File F:\SvenCoop\maps\invasion3.cfg
File F:\SvenCoop\maps\invasion4.cfg
File F:\SvenCoop\maps\svencooprpg.cfg
File F:\SvenCoop\maps\undeath.cfg
File F:\SvenCoop\maps\invasion.txt
File F:\SvenCoop\maps\svencooprpg.txt
File F:\SvenCoop\maps\undeath.txt
SetOutPath $INSTDIR\SvenCoop\maps\graphs
File F:\SvenCoop\maps\graphs\svencooprpg.nod
File F:\SvenCoop\maps\graphs\svencooprpg.nrp
File F:\SvenCoop\maps\graphs\undeath.nod
File F:\SvenCoop\maps\graphs\undeath.nrp
SectionEnd

Section "TheDogs Map Pack"
SectionIn 13
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\dogs1.bsp
File F:\SvenCoop\maps\dogs2.bsp
File F:\SvenCoop\maps\dogs3.bsp
File F:\SvenCoop\maps\dogs4.bsp
File F:\SvenCoop\maps\dogs5.bsp
File F:\SvenCoop\maps\dogs6.bsp
File F:\SvenCoop\maps\dogs1.cfg
File F:\SvenCoop\maps\dogs2.cfg
File F:\SvenCoop\maps\dogs3.cfg
File F:\SvenCoop\maps\dogs4.cfg
File F:\SvenCoop\maps\dogs5.cfg
File F:\SvenCoop\maps\dogs6.cfg
File F:\SvenCoop\maps\DOGSreadme.txt
SetOutPath $INSTDIR\SvenCoop\sound
File F:\SvenCoop\sound\jjbmph.wav
File F:\SvenCoop\sound\tactical1.wav
SetOutPath $INSTDIR\SvenCoop
File F:\SvenCoop\hex-door.wad
File F:\SvenCoop\My2.wad
File F:\SvenCoop\svencoop2.wad
SectionEnd

Section "Exhale Map Pack v2"
SectionIn 13
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\exhale1.bsp
File F:\SvenCoop\maps\exhale1platinum.bsp
File F:\SvenCoop\maps\exhale2platinum.bsp
File F:\SvenCoop\maps\exhale3platinum.bsp
File F:\SvenCoop\maps\exhale4a.bsp
File F:\SvenCoop\maps\exhale4b.bsp
File F:\SvenCoop\maps\exhale5a.bsp
File F:\SvenCoop\maps\exhale5b.bsp
File F:\SvenCoop\maps\exhale6.bsp
File F:\SvenCoop\maps\exhale1.cfg
File F:\SvenCoop\maps\exhale1platinum.cfg
File F:\SvenCoop\maps\ExhaleReadme.txt
SectionEnd

Section "Gut Reaction"
SectionIn 13
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\gr_coremain.bsp
File F:\SvenCoop\maps\gr_corentry.bsp
File F:\SvenCoop\maps\gr_drainage.bsp
File F:\SvenCoop\maps\gr_finale.bsp
File F:\SvenCoop\maps\gr_generate.bsp
File F:\SvenCoop\maps\gr_lab.bsp
File F:\SvenCoop\maps\gr_reactors.bsp
File F:\SvenCoop\maps\gr_tunnel3.bsp
File F:\SvenCoop\maps\gut_reaction.bsp
File F:\SvenCoop\maps\gr_coremain.cfg
File F:\SvenCoop\maps\gr_corentry.cfg
File F:\SvenCoop\maps\gr_drainage.cfg
File F:\SvenCoop\maps\gr_finale.cfg
File F:\SvenCoop\maps\gr_generate.cfg
File F:\SvenCoop\maps\gr_lab.cfg
File F:\SvenCoop\maps\gr_reactors.cfg
File F:\SvenCoop\maps\gr_tunnel3.cfg
File F:\SvenCoop\maps\gut_reaction.cfg
File F:\SvenCoop\maps\gut_reaction.txt
SetOutPath $INSTDIR\SvenCoop\maps\graphs
File F:\SvenCoop\maps\graphs\gr_coremain.nod
File F:\SvenCoop\maps\graphs\gr_corentry.nod
File F:\SvenCoop\maps\graphs\gr_drainage.nod
File F:\SvenCoop\maps\graphs\gr_finale.nod
File F:\SvenCoop\maps\graphs\gr_generate.nod
File F:\SvenCoop\maps\graphs\gr_lab.nod
File F:\SvenCoop\maps\graphs\gr_reactors.nod
File F:\SvenCoop\maps\graphs\gr_tunnel3.nod
File F:\SvenCoop\maps\graphs\gut_reaction.nod
File F:\SvenCoop\maps\graphs\gr_coremain.nrp
File F:\SvenCoop\maps\graphs\gr_corentry.nrp
File F:\SvenCoop\maps\graphs\gr_drainage.nrp
File F:\SvenCoop\maps\graphs\gr_finale.nrp
File F:\SvenCoop\maps\graphs\gr_generate.nrp
File F:\SvenCoop\maps\graphs\gr_lab.nrp
File F:\SvenCoop\maps\graphs\gr_reactors.nrp
File F:\SvenCoop\maps\graphs\gr_tunnel3.nrp
File F:\SvenCoop\maps\graphs\gut_reaction.nrp
SetOutPath $INSTDIR\SvenCoop\sprites
File F:\SvenCoop\sprites\rain.spr
SetOutPath $INSTDIR\SvenCoop
File "F:\SvenCoop\Sven Co-op Gut Reaction.txt"
File F:\SvenCoop\titles.txt
SectionEnd

Section "Operation Retribution"
SectionIn 13
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\opr1a1.bsp
File F:\SvenCoop\maps\opr1a2.bsp
File F:\SvenCoop\maps\opr1a3.bsp
File F:\SvenCoop\maps\opr1a4.bsp
File F:\SvenCoop\maps\opr1a5.bsp
File F:\SvenCoop\maps\opr1a6.bsp
File F:\SvenCoop\maps\opr1a7.bsp
File F:\SvenCoop\maps\opr1a8.bsp
File F:\SvenCoop\maps\opr1a1.cfg
File F:\SvenCoop\maps\opr1a2.cfg
File F:\SvenCoop\maps\opr1a3.cfg
File F:\SvenCoop\maps\opr1a4.cfg
File F:\SvenCoop\maps\opr1a5.cfg
File F:\SvenCoop\maps\opr1a6.cfg
File F:\SvenCoop\maps\opr1a7.cfg
File F:\SvenCoop\maps\opr1a8.cfg
File F:\SvenCoop\maps\OperationRetribution.txt
File F:\SvenCoop\maps\note.txt
SetOutPath $INSTDIR\SvenCoop\models\Player\Bush1
File F:\SvenCoop\models\Player\Bush1\Bush1.bmp
File F:\SvenCoop\models\Player\Bush1\Bush1.mdl
SetOutPath $INSTDIR\SvenCoop\models\Player\Dust1
File F:\SvenCoop\models\Player\Dust1\Dust1.bmp
File F:\SvenCoop\models\Player\Dust1\Dust1.mdl
SetOutPath $INSTDIR\SvenCoop\models\Player\Shadow1
File F:\SvenCoop\models\Player\Shadow1\Shadow1.bmp
File F:\SvenCoop\models\Player\Shadow1\Shadow1.mdl
SetOutPath $INSTDIR\SvenCoop\models\Player\Urban1
File F:\SvenCoop\models\Player\Urban1\Urban1.bmp
File F:\SvenCoop\models\Player\Urban1\Urban1.mdl
SectionEnd

Section "New Operation Retribution CFGs"
SectionIn 13
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\newcfg\opr1a1.cfg
File F:\SvenCoop\newcfg\opr1a2.cfg
File F:\SvenCoop\newcfg\opr1a3.cfg
File F:\SvenCoop\newcfg\opr1a4.cfg
File F:\SvenCoop\newcfg\opr1a5.cfg
File F:\SvenCoop\newcfg\opr1a6.cfg
File F:\SvenCoop\newcfg\opr1a7.cfg
File F:\SvenCoop\newcfg\OperationRetribution.txt
SectionEnd

Section "War Maps"
SectionIn 13
SetOutPath $INSTDIR\SvenCoop\maps
File F:\SvenCoop\maps\war.bsp
File F:\SvenCoop\maps\war2.bsp
File F:\SvenCoop\maps\war3.bsp
File F:\SvenCoop\maps\war.cfg
File F:\SvenCoop\maps\war2.cfg
File F:\SvenCoop\maps\war3.cfg
File F:\SvenCoop\maps\WAR.txt
File F:\SvenCoop\maps\WAR2.txt
File F:\SvenCoop\maps\WAR3.txt
SectionEnd

 
I don't understand why you're trying to do a silent install, but you still have

DirText "Choose the Half-Life directory:"

ComponentText "This will install the Maps for SvenCo-op. Select which Maps you want installed."


in your script. Are you sure that you want to be using SilentInstall?? (Making the installer install everything without showing anything on screen)


i think it shows with SilentInstall only the files and not the folder/path
or did i get something wrong ?


 
SilentInstall does make the installer completely silent. You could use ShowInstDetails hide so as not to list all the files being copied, but they'll still appear above the progress bar as they are being copied.

NSIS docs on SilentInstall:
Specifies whether or not the installer should be silent. If it is 'silent' or 'silentlog', all sections are installed quietly, with no screen output from the installer itself (MessageBoxes are still displayed on error, and the script can still display whatever it wants). Note that if this is set to 'normal' and the user runs the installer with /S on the command line, it will behave as if SilentInstall 'silent' was used.


Yea, SilentInstall is perfect for what I have, but not if you are asking them to choose what they want to install. The only things that can override this are these tags:

Exec
Exec*
MessageBox

and the like.

I created HTML Launcher which uses this. I need to add the current version, but I will have it for download later.

I suggest you take off the SilentInstall, so that it works.

-Duane


Yea, SilentInstall is perfect for what I have, but not if you are asking them to choose what they want to install. The only things that can override this are these tags:

Exec
Exec*
MessageBox

and the like.

I created HTML Launcher which uses this. I need to add the current version, but I will have it for download later.

I suggest you take off the SilentInstall, so that it works.

-Duane


Yea, SilentInstall is perfect for what I have, but not if you are asking them to choose what they want to install. The only things that can override this are these tags:

Exec
Exec*
MessageBox

and the like.

I created HTML Launcher which uses this. I need to add the current version, but I will have it for download later.

I suggest you take off the SilentInstall, so that it works.

-Duane


 
No wonder your post count's so high Duane :D :D :D


öhm ok now i get it :)

but i want the installer only shows the files and hide the outdut directory

example:
normally it shows

Output directory C:\SIERRA\Half-Life
file1.bsp
file2.bsp
Output direvitry C:\SIERRA\Half-Life\valve
file3.bsp
Complete
but i want it only shows

file1.bsp
file2.bsp
file3.bsp
Complete
is this possible ?

As far as I know it's not possible with NSIS (someone plz correct me if I'm wrong). I can't think why you'd want to though, if people are puttting something on there machine, I imagine most folks would like to be able to see where it's going :confused: :confused: :confused:


hmm i think it looks better ^^