Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 29th December 2009, 14:34   #1
J0ke
Junior Member
 
Join Date: Dec 2009
Posts: 5
Talking 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 ! ^^"
J0ke is offline   Reply With Quote
Old 29th December 2009, 16:00   #2
Wizou
Senior Member
 
Join Date: Aug 2007
Location: Paris, France
Posts: 304
Is this some kind of J0ke?

(sorry, I couldn't resist ^^)
Wizou is offline   Reply With Quote
Old 29th December 2009, 16:38   #3
J0ke
Junior Member
 
Join Date: Dec 2009
Posts: 5
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 is offline   Reply With Quote
Old 5th January 2010, 21:21   #4
J0ke
Junior Member
 
Join Date: Dec 2009
Posts: 5
(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...
J0ke is offline   Reply With Quote
Old 6th January 2010, 01:39   #5
Joel
Debian user
(Forum King)
 
Joel's Avatar
 
Join Date: Jan 2003
Location: Arch land
Posts: 4,917
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 , try from the base:
PHP Code:
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 


* PC: Intel Core 2 DUO E6550 @ 2.33 GHz with 2 GB RAM: Archlinux-i686 with MATE.
* Laptop: Intel Core 2 DUO T6600 @ 2.20 GHz with 4 GB RAM: Archlinux-x86-64 with MATE.
Joel is offline   Reply With Quote
Old 6th January 2010, 20:01   #6
J0ke
Junior Member
 
Join Date: Dec 2009
Posts: 5
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 :
PHP Code:
Function GetWindowsVersion
  Push 
$0
  Push 
$9
  ReadRegStr 
$0 HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion" CurrentVersion
  StrCmp 
$"" 0 lbl_winnt
  
we are not NT.
  
ReadRegStr $0 HKLM SOFTWARE\Microsoft\Windows\CurrentVersion VersionNumber
 
  StrCpy 
$$0 1
  StrCmp 
$'4' 0 lbl_error

  StrCpy 
$$0 3

  StrCmp 
$'4.0' lbl_win32_95
  StrCmp 
$'4.9' lbl_win32_ME lbl_win32_98

  lbl_win32_95
:
    
StrCpy $'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 $'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 $'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 ^^'
PHP Code:
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 ! ^^

Last edited by J0ke; 6th January 2010 at 22:18.
J0ke is offline   Reply With Quote
Old 12th January 2010, 19:23   #7
J0ke
Junior Member
 
Join Date: Dec 2009
Posts: 5
Yup... ^^'
J0ke 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