J0ke
29th December 2009 15:34 UTC
Need someone to make an installation of files and a font and explain how do it again
Hello people, I'm a french guy who don't know anything to scripts and NSIS's uses... (And I'm a bit bad to write english too, sorry !)
I saw in a french site a simple way to automatically install a font during the installation with a .dll file, it's that I want to do since longtime !
http://www.todae.fr/nsis/pasapas/police/
But I understand nothing ! I never use a software like NSIS ^^' And there are no french community alive on NSIS.
I'm looking for an msn contact who can explain if I can and how I can do that :
A french executable that install files on a repertory and... install a bitmap font (.fon) like the tutorial of the french site !
Precisely :
- Assign an icon (.ico) for the executable file
- A same picture in the left of all pages.
- A first page with an html content
- A second page with three check-box ("Installation du jeu" (the files), "Installation de la police" (the font), "Icone sur le bureau" (icon on desktop).) and a french text in the top or in the left
- A third page where we selected the destination of the game's files with a french text in the top.
- A fourth page with summary of installation and thanks. (to you too if you help me ! =) )
I'm so noob that I'm able to make a mistake with the simplest explanation you can give me... so I prefer a kind person make me the installation and explain precisely how it did it. (it would be greatfull !)
I'm good at graphics, I can do a few things in exchange ! (icon, banner, small things...)
If I can, maybe I'll make a french tutorial to make an installation like this.
If some things are impossible, I don't care, I especially want a french executable that installs the game and the police ! : )
Thanks to all and sorry for my french english !
Contact me in private message or help me on the topic, pleaaase ! ^^"
Wizou
29th December 2009 17:00 UTC
Is this some kind of J0ke?
(sorry, I couldn't resist ^^)
J0ke
29th December 2009 17:38 UTC
That is done... x)
I was sure someone will make this bad joke !
You looks like a good guy who can help me ! V___V
J0ke
5th January 2010 22:21 UTC
(up)
Just a reply... pleaase ! é__è
How can I do ? é__è I don't understand what I have to do with the .dll file, where I have to put it and where I have to past the scripts...
Joel
6th January 2010 02:39 UTC
Hey jo0ke, there are many examples about it, try this ones:
http://nsis.sourceforge.net/Advanced_Font_Installation
http://nsis.sourceforge.net/Register_Fonts
Also, take your time to understand the concept of nsis, try the wiki, the docs, ask questions, steal codes :p, try from the base:
installer name
Name "mypee"
>; installer EXE name
OutFile "pee.exe"
>; show info in the log window
ShowInstDetails show
>; "-" denotes default sections and always will show
Section-peeing
>; send string to logwindow
DetailPrint "Aaaaaaaaaaaaaaaah"
>SectionEnd
>; eof
>
J0ke
6th January 2010 21:01 UTC
Thanks a lot !
I already knew the advanced font installation, but is it required to restart the computer to complet the font installation ?
Or else, the french tutorial looks like better than this, it's smaller and doesn't require to restard the computer
http://www.todae.fr/nsis/pasapas/police/
It works with a .dll file that install the police without needing to reboot :
http://www.todae.fr/nsis/pasapas/police/fonts.dll.zip
But I want more explanation... If someone understands the script of this link :
It talks about a first script, I just understand it detect the windows version but I don't know where I have to put it :
GetWindowsVersion
Push$0
Push$9
ReadRegStr$0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
StrCmp$0 "" 0 lbl_winnt
; we are not NT.
ReadRegStr $0 HKLM SOFTWAREMicrosoftWindowsCurrentVersion VersionNumber
StrCpy$9 $0 1
StrCmp$9 '4' 0 lbl_error
StrCpy$9 $0 3
StrCmp$9 '4.0' lbl_win32_95
StrCmp$9 '4.9' lbl_win32_ME lbl_win32_98
lbl_win32_95:
StrCpy $0 '95'
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts" "nom de la police" "nom de fichier.TTF"
Goto lbl_done
lbl_win32_98:
StrCpy $0 '98'
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts" "nom de la police" "nom de fichier.TTF"
Goto lbl_done
lbl_win32_ME:
StrCpy $0 'ME'
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts" "nom de la police" "nom de fichier.TTF"'
Goto lbl_done
lbl_winnt:
StrCpy $9 $0 1
StrCmp $9 '
3' lbl_winnt_x
StrCmp $9 '4' lbl_winnt_x
StrCmp $9 '5' lbl_winnt_5 lbl_error
lbl_winnt_x:
StrCpy $0 "NT $0" 6
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" "nom de la police" "nom de fichier.TTF"
Goto lbl_done
lbl_winnt_5:
Strcpy $0 '2000'
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" "nom de la police" "nom de fichier.TTF"
Goto lbl_done
lbl_error:
Strcpy $0 '
lbl_done:
Pop $9
Exch$0
FunctionEnd
>
Apparently this second script launches the .dll file, but also I don't understand what I have to do with this lines ^^'
fonts::registerFont "nom de la police.TTF" ;utilisation de la dll pour enregistrer la fonte
>
Is it works with a .fon file inplace of a .ttf file ?
Is these scripts must be placed in the same NSI file ?
Is the .dll file must be placed in the .zip file ? Or it can be placed everywhere on my computer and is automatically placed in the executable in his creation ?
Same question for the .fon file ^^'
Thanks ! ^^
J0ke
12th January 2010 20:23 UTC
Yup... ^^'