Archive: Deploy some Fonts in a Windows Network


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


Search the wiki for the word font and you'll find a complete solution for installing fonts.