Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 31st March 2006, 17:58   #1
spunko
Junior Member
 
spunko's Avatar
 
Join Date: Mar 2006
Location: Ecuador
Posts: 10
need help with a .exe

hi all.. i already read the help stuff and all the examples but i really dont know how to do the things i want, i appologize for asking this, but i really dont know how to do it, im not such experienced and im spanish (sorry about my english)

i saw the example "bigtest.nsi" and i want something like that, without those messages for testing and the notepad..

the story is that i have some files that i run in a game server, but most of the people asked for a .exe, so they d/l the file from a web isntead of the server cuz it takes too long..

if someone could help me with this i'll apreciate it a lot.

- i need the red background cuz its cool
- the license agreement screen cuz all players are spanish, so i need to explain some things there.
- the installation folder screen and when is installing i want to see the files that are being installed..

i need to compress like 40 files there..
i dont need uninstall, cuz if i put a new file i'll remake the. exe with the new file, so it will overwrite the old files

i hope someone could post a .nsi with the basic things i need so i could use it like a guide and complete it with the rest like names, files and all that stuff..

thanx a lot
spunko is offline   Reply With Quote
Old 31st March 2006, 19:48   #2
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,898
Quote:
- i need the red background cuz its cool
BGGradient
Quote:
- the license agreement screen cuz all players are spanish, so i need to explain some things there.
Page license
Quote:
- the installation folder screen and when is installing i want to see the files that are being installed..
Page directory
Quote:
i need to compress like 40 files there..
See File instruction.
Quote:
i dont need uninstall, cuz if i put a new file i'll remake the. exe with the new file, so it will overwrite the old files
Don't use WriteUninstaller
Quote:
i already read the help stuff
Well..all the stuff *is* in the help stuff


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4.
Joel is offline   Reply With Quote
Old 1st April 2006, 00:45   #3
spunko
Junior Member
 
spunko's Avatar
 
Join Date: Mar 2006
Location: Ecuador
Posts: 10
ok, im trying to do it and so far im fine, but i need the default language of the installer to be spanish, how can i do that??, im trying to do it with the help tutorials but i always get errors at the end
spunko is offline   Reply With Quote
Old 1st April 2006, 07:56   #4
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,338
Simply have Spanish the first language you include in your script. If it's a MUI script, have Spanish the first MUI_LANGUAGE macro you insert. If not, have Spanish the first LoadLanguageFile you use.

NSIS FAQ | NSIS Home Page | Donate $
"I hear and I forget. I see and I remember. I do and I understand." -- Confucius
kichik is offline   Reply With Quote
Old 1st April 2006, 23:02   #5
spunko
Junior Member
 
spunko's Avatar
 
Join Date: Mar 2006
Location: Ecuador
Posts: 10
i cant make it work, this is what i have so far, its a modification of bigtest.nsi
im just guessing cuz i really dont know what to do

Quote:
!ifdef HAVE_UPX
!packhdr tmp.dat "upx\upx -9 tmp.dat"
!endif
!ifdef SPANISH
!endif

SetCompressor /SOLID lzma

;--------------------------------

Name "< TU MUERTE >"
Caption "< TU MUERTE > Conter Strike 1.6 server"
Icon "${NSISDIR}\Contrib\Graphics\Icons\nsis1-install.ico"
OutFile "archivos cs.exe"

SetDateSave on
SetDatablockOptimize on
CRCCheck on
SilentInstall normal
BGFont facelift 30
BGGradient 000000 800000 FFFFFF
BrandingText "< TU MUERTE > Conter Strike 1.6 server"
InstallColors FF8080 000030
XPStyle on

InstallDir "$PROGRAMFILES\valve"
InstallDirRegKey HKLM "Software\valve" ""


LicenseText " !!! <> LEER - EXPLICA COMO INSTALAR <> !!!"
LicenseData "server1.nsi"
LoadLanguageFile "Spanish.nlf"

;--------------------------------

Page license
Page directory
Page instfiles

;--------------------------------

AutoCloseWindow false
ShowInstDetails show

;--------------------------------

Section "" ; empty string makes it hidden, so would starting with -

; write reg info
StrCpy $1 "Archivos necesarios para < TU MUERTE > CS 1.6 server"
WriteRegStr HKLM SOFTWARE\VALVE "Install_Dir" "$INSTDIR"

SetOutPath $INSTDIR
File /r "C:\Documents and Settings\Panchito\Desktop\mp3s\countyer strike\cstrike"

SectionEnd
spunko is offline   Reply With Quote
Old 2nd April 2006, 14:38   #6
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,898
What errors do you have? Give more information
Is Spanish.nlf in the same dir as your .nsi file is?
Vamos!


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux w/ xfce4.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Debian unstable w/ xfce4.
Joel is offline   Reply With Quote
Old 2nd April 2006, 17:02   #7
spunko
Junior Member
 
spunko's Avatar
 
Join Date: Mar 2006
Location: Ecuador
Posts: 10
Quote:
Originally posted by Joel
Is Spanish.nlf in the same dir as your .nsi file is?
thanx for that, i read ur post and in the moment i knew what i did wrong..
Quote:
Originally posted by spunko
LoadLanguageFile "Spanish.nlf"
this is the correct form
Quote:
LoadLanguageFile "${NSISDIR}\Contrib\Language files\Spanish.nlf"
two more questions..
1) is this the best method to compress?? "SetCompressor /SOLID lzma"
i want to make it the less heavy possible, now is like 22 Mb, maybe i can compress it more

2) if i want to put an image in the installation screen, the custom image has to be inside the .exe too?? (like all the files), or i just need to put the path into the .nsi??

thanx
spunko is offline   Reply With Quote
Old 2nd April 2006, 17:17   #8
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,216
LZMA with solid compression is the best possible.

You need to store it and extract it say to $PLUGINSDIR like any other file.

-Stu

Need an installer? http://www.afrowsoft.co.uk
Afrow UK 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