Go Back   Winamp Forums > Developer Center > NSIS Discussion

Reply
Thread Tools Search this Thread Display Modes
Old 10th December 2002, 17:35   #41
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
I am, but the wrapper kept crashing for inexplicable reasons...That, and I still couldn't read the whole thing with the wrapper.

Anyway, I just figured out how to log the output, and did. I read the .dll plugin functions listing and - guess what - fonts.DLL::registerfont.
Gee, thanx for not ever telling me that, guys

"guilt is the cause of more disauders
than history's most obscene marorders" --E. E. Cummings
dirkdeftly is offline   Reply With Quote
Old 10th December 2002, 17:40   #42
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Are you or are you not using NSIS 2.0b0?
MakeNSISw crashes, .dll after plug-in names, and .onNextPage and .onPrevPage are all from a7 and below.

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 10th December 2002, 18:01   #43
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
Absolutely sure. But the problem's fixed now, I'm movin on...

"guilt is the cause of more disauders
than history's most obscene marorders" --E. E. Cummings
dirkdeftly is offline   Reply With Quote
Old 10th December 2002, 18:06   #44
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Maybe you are ready to move on, but I am not after you are telling me MakeNSISw crashes and plug-in detection doesn't occur as should.

Please attach a screen shot of MakeNSISw crash.

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 10th December 2002, 18:36   #45
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
The plugin detection happens, I just can't see it unless I log it. I'd rather not post a screenshot, because it really is a lot of trouble for me on this computer (and *DON'T* suggest programs I download, I've already been through that a million times, the answer is still 'THEY WON'T WORK!')

"guilt is the cause of more disauders
than history's most obscene marorders" --E. E. Cummings
dirkdeftly is offline   Reply With Quote
Old 10th December 2002, 18:40   #46
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Can you at least attach the log?

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 10th December 2002, 19:16   #47
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
I think you are using an old development snapshot which has the beta 0 label. That is not the final beta 0 release, which has been released a few days ago.

Please download the final release at http://prdownloads.sourceforge.net/n...0.exe?download
Joost Verburg is offline   Reply With Quote
Old 10th December 2002, 20:50   #48
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
Okay, thanx joost
Attached Files
File Type: txt log.txt (1.2 KB, 120 views)

"guilt is the cause of more disauders
than history's most obscene marorders" --E. E. Cummings
dirkdeftly is offline   Reply With Quote
Old 10th December 2002, 21:34   #49
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
Is the filename of your script really "c:\nsis\tff2/0\tff2.0.nsi.nsi" ?
Joost Verburg is offline   Reply With Quote
Old 11th December 2002, 06:16   #50
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
Whoah...didn't see that. That'd explain a couple things....

"guilt is the cause of more disauders
than history's most obscene marorders" --E. E. Cummings
dirkdeftly is offline   Reply With Quote
Old 11th December 2002, 13:53   #51
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Quote:
MakeNSIS v2.0a7 - Copyright 1999-2002 Nullsoft, Inc.
Your log clearly shows you are using NSIS 2.0a7. Install NSIS 2.0b0 from http://nsis.sf.net/ and all of the problems above will be gone.

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 12th December 2002, 03:34   #52
Mottel
Member
 
Join Date: Oct 2002
Location: Melbourne, Australia
Posts: 55
Re Fonts.dll

Kichik, that fonts.dll that you posted looks like a very useful addon to NSIS. I will be using it myself eventually. You should include it in the Plugins dir on CVS so it will come standard with future downloads, but, I would suggest you call it RegisterFont.DLL.
/Edit/
P.S. BTW, FontReg.exe is a Microsoft program in the $SYSDIR of Win98. Looking at the strings in the file, I see that: (a) it describes itself as "Font Sweeper Application" (??) and, (b) from the function names, I'd say it's a fair bet that it does the same thing as your DLL, but is specific to Win98 (and maybe 95 and ME).
/Edit2/
Maybe not. I've just been playing with it, and it doesn't seem to do what I thought it did.

Last edited by Mottel; 12th December 2002 at 04:27.
Mottel is offline   Reply With Quote
Old 12th December 2002, 12:58   #53
Kypec
Member
 
Kypec's Avatar
 
Join Date: Jul 2002
Location: Slovakia
Posts: 54
Wink Include fonts.dll by default

I agree with Mottel, please
include kichik's fonts.dll as
the standard plugin in Plugins\
directory for all future releases, thanx.

Kypec
Kypec is offline   Reply With Quote
Old 12th December 2002, 13:47   #54
Joost Verburg
NSIS MUI Dev
 
Join Date: Nov 2001
Posts: 3,717
It's just a singe API call, so you can also use the System plugins which is already included.
Joost Verburg is offline   Reply With Quote
Old 21st December 2002, 07:10   #55
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
One last round on this thread and I'm done, I promise

I have now (almost) completed my installer. However when I run it and install the font, I get an error message saying "Could not find symbol: registerfont". I sent it to a friend and he got the same thing.

Here's the font section of the installer:
PHP Code:
Section "Adolescense font (reccommended)"
SectionIn 1 2

SetOutPath 
"$WINDIR\fonts\"
File "
c:windowsfontsAdolesce.TTF"

RegisterFonts:
StrCmp $0 '95' lbl_95_98_me
StrCmp $0 '98' lbl_95_98_me
StrCmp $0 'ME' lbl_95_98_me

lbl_nt_2k_xp:   
WriteRegStr HKEY_LOCAL_MACHINE "
SOFTWAREMicrosoftWindows NTCurrentVersionFonts" "Adolesce.TTF" "Adolescense"

lbl_95_98_me:
WriteRegStr HKEY_LOCAL_MACHINE "
SOFTWAREMicrosoftWindowsCurrentVersionFonts" "Adolesce.TTF" "Adolescense"
fonts::registerfont "
Adolesce.TTF"

SectionEnd 
Spot anything wrong?

"guilt is the cause of more disauders
than history's most obscene marorders" --E. E. Cummings
dirkdeftly is offline   Reply With Quote
Old 21st December 2002, 07:46   #56
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,337
Yes, the function name is case sensitive... I never noticed this before, I will fix it for the next version (already found in the CVS). For now, use the DLL function name exactly as mentioned on the top of the output.

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 21st December 2002, 15:11   #57
dirkdeftly
Forum King
 
dirkdeftly's Avatar
 
Join Date: Jun 2001
Location: Cydonia, Mars
Posts: 2,651
Send a message via AIM to dirkdeftly
Thanx, fixed

Also thanx for not giving me crap about <PHP> taking out the slashes

"guilt is the cause of more disauders
than history's most obscene marorders" --E. E. Cummings
dirkdeftly is offline   Reply With Quote
Old 5th April 2005, 14:29   #58
prichindel
Junior Member
 
Join Date: Apr 2005
Posts: 2
example

where can i find an official nsis example how to add & register a font in windows??

does anybody have an example with "fonts::registerfont "myfont.ttf" "; registration of fonts in different windows versions; to post it??
prichindel 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