Old 25th October 2006, 09:27   #1
guzzzi
Junior Member
 
Join Date: Oct 2006
Posts: 1
Deploy some Fonts in a Windows Network

Hello,

i created a little Script with NSIS to deploy Fonts on some Windows 2000 and XP Clients. It created the Registry Key and copys the Font in the Folder, but if i want to use the Font with Office it doesnt show.

Here the Script:

; The name of the installer
Name "Installing Barcode-Font"

; The file to write
OutFile "barcode39.exe"

; The default installation directory
InstallDir $windir\fonts

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

; Pages

Page directory
Page instfiles

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

; The stuff to install
Section "" ;No components page, name is not important

; Set output path to the installation directory.
SetOutPath $INSTDIR

; Put file there
File BarCode39ori.ttf

; Write the installation path into the registry
WriteRegStr HKLM "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" "Bar-Code 39 (TrueType)" "BarCode39ori.ttf"

SectionEnd ; end the section


I just used the "Example1.nsi" file and modified it a little bit. But i cant find the Bug why it doesnt work.
If i install the Font with Windows on the normal way, than it works perfect.
Hope someone can Help me.
Then i want it as a Silent installation so i think to start the .exe with /s (Silent Mode).

Is it possible to give a Non-Admin User for the installation Time Admin Rights and then give him back his old User Rights?

Sorry for all the Questions im totaly new in NSIS

many thanks

best regards
guzzzi is offline   Reply With Quote
Old 25th October 2006, 21:22   #2
kichik
M.I.A.
[NSIS Dev, Mod]
 
kichik's Avatar
 
Join Date: Oct 2001
Location: Israel
Posts: 11,343
Search the wiki for the word font and you'll find a complete solution for installing fonts.

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
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