Install Fonts with Bigfix

I am attempting to install a font with bigfix and for some reason it is not working. I am relatively new to this so odds are that I am missing something simple. But so far I have configured a software distribution, then add a folder with the fonts I want to install. Then once that was finalized I customized the action script to the following:

prefetch f8122c2f84456499925e2fd28630d0cdcea3cd32 sha1:f8122c2f84456499925e2fd28630d0cdcea3cd32 size:596720 http://MY_BIGFIX_SERVER:52311/Uploads/f8122c2f84456499925e2fd28630d0cdcea3cd32/USC-Fonts.tmp sha256:e394e080cfb3159dc53c382b1431402b824acbd46e3c698ff31f26315334adf7
extract f8122c2f84456499925e2fd28630d0cdcea3cd32

copy __Download\Athletics-Bold.otf “{pathname of windows folder}\Fonts\Athletics-Bold.otf”
copy __Download\Athletics-Medium.otf “{pathname of windows folder}\Fonts\Athletics-Medium.otf”
copy __Download\DINCondensed-Regular.otf “{pathname of windows folder}\Fonts\DINCondensed-Regular.otf”
copy __Download\Monarcha.otf “{pathname of windows folder}\Fonts\Monarcha.otf”
copy __Download\Monarcha-Bold.otf “{pathname of windows folder}\Fonts\Monarcha-Bold.otf”
copy __Download\Monarcha-Italic.otf “{pathname of windows folder}\Fonts\Monarcha-Italic.otf”

regset “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts” “Athletics Bold”=“Athletics-Bold.otf”
regset “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts” “Athletics-Medium”=“Athletics-Medium.otf”
regset “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts” “DINCondensed-Regular”=“DINCondensed-Regular.otf”
regset “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts” “Monarcha”=“Monarcha.otf”
regset “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts” “Monarcha-Bold”=“Monarcha-Bold.otf”
regset “HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts” “Athletics Bold”=“Athletics-Bold.otf”

Thank you for any assistance you can provide

I’m not positive that just copying the files and adding the reg entries is enough; but if it is enough, you’ll need to use regset64 on 64-bit computers. Otherwise those registry entries end up getting redirected to the 32-bit registry, and will appear at HKLM\Software\Wow6432Node\Microsoft\Windows NT\CurrentVersion\Fonts instead of where you expect them to be.

https://developer.bigfix.com/action-script/reference/registry/

Probably need regset64

Ok will test that and report back

Thanks

1 Like

I tried that and same results, it is copying the file with no issues. But no registry changes.

Ah, ok, I didn’t catch you had an issue in the syntax earlier. The registry path needs to be enclosed in square brackets, i.e.

regset64 "[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows NT\CurrentVersion\Fonts]" "Athletics Bold"="Athletics-Bold.otf"

Also, it appears that ‘regset’ and ‘regset64’ do not work in the Fixlet Debugger. I’m not sure whether that’s intentional, probably so.

Ah that fixed it. Fonts installed. Thanks so much for your help