Hey
I have a startup script that copies a font to the WINDOWS\font folder on our users’ local machine (xp and vista mix), then adds the font entry to the registry.
It runs fine, but I still need to open the users’ fonts folder as admin for the install to complete.
Can anybody help with this?
Here is the script:
echo you are using font Script
COPY \\server\share\font\ps_14.ttf %WINDIR%\Fonts\ps_14.ttf
COPY \\server\share\font\ps_15.ttf %WINDIR%\Fonts\ps_15.ttf
COPY \\server\share\font\ps_16.ttf %WINDIR%\Fonts\ps_16.ttf
COPY \\server\share\font\GillsSans Light.ttf %WINDIR%\Fonts\GillsSans Light.ttf
COPY \\server\share\font\ps_7.ttf %WINDIR%\Fonts\ps_7.ttf
COPY \\server\share\font\ps_8.ttf %WINDIR%\Fonts\ps_8.ttf
COPY \\server\share\font\ps_9.ttf %WINDIR%\Fonts\ps_9.ttf
COPY \\server\share\font\ps_A.ttf %WINDIR%\Fonts\ps_A.ttf
COPY \\server\share\font\ps_B.ttf %WINDIR%\Fonts\ps_B.ttf
COPY \\server\share\font\CALIBRI.ttf %WINDIR%\Fonts\CALIBRI.ttf
REG ADD “HKLM\Software\Microsoft\Widnows NT\CurrentVersion\Fonts” /v “Gills Sans” /t REG_SZ /d “%windir%\fonts\ps_14.ttf” /f
REG ADD “HKLM\Software\Microsoft\Widnows NT\CurrentVersion\Fonts” /v “Gills Sans” /t REG_SZ /d “%windir%\fonts\ps_15.ttf” /f
REG ADD “HKLM\Software\Microsoft\Widnows NT\CurrentVersion\Fonts” /v “Gills Sans” /t REG_SZ /d “%windir%\fonts\ps_16.ttf” /f
REG ADD “HKLM\Software\Microsoft\Widnows NT\CurrentVersion\Fonts” /v “Gills Sans” /t REG_SZ /d “%windir%\fonts\GillsSans Light.ttf” /f
REG ADD “HKLM\Software\Microsoft\Widnows NT\CurrentVersion\Fonts” /v “Gills Sans” /t REG_SZ /d “%windir%\fonts\ps_7.ttf” /f
REG ADD “HKLM\Software\Microsoft\Widnows NT\CurrentVersion\Fonts” /v “Gills Sans” /t REG_SZ /d “%windir%\fonts\ps_8.ttf” /f
REG ADD “HKLM\Software\Microsoft\Widnows NT\CurrentVersion\Fonts” /v “Gills Sans” /t REG_SZ /d “%windir%\fonts\ps_9.ttf” /f
REG ADD “HKLM\Software\Microsoft\Widnows NT\CurrentVersion\Fonts” /v “Gills Sans” /t REG_SZ /d “%windir%\fonts\ps_A.ttf” /f
REG ADD “HKLM\Software\Microsoft\Widnows NT\CurrentVersion\Fonts” /v “Gills Sans” /t REG_SZ /d “%windir%\fonts\ps_B.ttf” /f
REG ADD “HKLM\Software\Microsoft\Widnows NT\CurrentVersion\Fonts” /v “CALIBRI” /t REG_SZ /d “%windir%\fonts\CALIBRI.ttf” /f
:end
(I know I need to add a “if exist” statement)
Many thanks!