Archive: continue install after reboot


continue install after reboot
i Have a problem with barcode fonts, in my installation program i copy this fonts in windows directory after i execute the code(joined with this message) to install font. after my installation launch installation of access runtime and after it launch an update of microsoft component with their program called osp.msi but this last program need a reboot. I do a reboot with my installation and the osp program after reboot continue the update. At the end of update i launch my application but for my application, the barcode fonts are not installed. if relaunch my installation, the access runtime and microsoft update component are not re-installed because they are already present but my font are installer again. And now my application can create goods barcode.
I want to know is possible to install my fonts after the reboot and after the end of update microsoft conponent?
how i do? thanks very much
;code i use a the end of my installation
execwait '"$SYSDIR\msiexec.exe" /i "$EXEDIR\access-2000\osp.msi" REBOOT="ReallySuppress" /qb-'
setrebootflag true
SectionEnd


Does it install the fonts after the reboot? Otherwise you can just register it after installation.


if i can i want to install font after reboot and after the end of microsoft update component, i do this because i thinks perhaps this resolve my problme. But for the moment i install the font just before the reboot :(
if the register after the reboot is good and resolve my problem, it's good for me. but how can i register after reboot?
thanks Joost


Why do you want to register after reboot? You can register fonts immidiately. See the NSIS Archive for information about font registering.


if i use fonts.dll, i need to put fonts.dll only in plugin subdirectory of nsis directory or i must to put on source installation($exedir).


Put plug-ins in the Plugins folder. You can also use the system plug-in to register fonts:


!include WinMessages.nsh

System::Call "GDI32::AddFontResourceA(t) i ('fontname.fon') .s"
Pop $0
# $0 is zero if the function failed
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0

i try this part of script i joined but i have the same problem. When i reboot, the fonts are copied but not registered. I open the windows font directory and after is good.
my nsis's version is 2.0b3.
i go tested with sytem plugin.
i write this??:
System::Call "GDI32::AddFontResourceA(t) i ('fontname.fon') .s"
System::Call "GDI32::AddFontResourceA(t) i ('fontname2.fon') .s"
Pop $0
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0

or:
System::Call "GDI32::AddFontResourceA(t) i ('fontname.fon') .s"
Pop $0
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0
System::Call "GDI32::AddFontResourceA(t) i ('fontname2.fon') .s"
Pop $0
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0
thanks


it's recommended to upgrade to nsis2rc2 :)


yes but I would be obliged to change my scripts. And it's more future problem for me:) and for you because you help me much:)).
and i don't have time know to modify all scripts


System::Call "GDI32::AddFontResourceA(t) i ('fontname.fon') .s"
Pop $0
System::Call "GDI32::AddFontResourceA(t) i ('fontname2.fon') .s"
Pop $0
SendMessage ${HWND_BROADCAST} ${WM_FONTCHANGE} 0 0

Should work fine. Make sure the filename is correct.


it is not good again :(
so for the moment i use
for winnt
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows NT\CurrentVersion\Fonts" \
"BARCODES 12 MEDIUM (TrueType)" "N01bc12m.ttf"

for win9x
WriteRegStr HKEY_LOCAL_MACHINE "SOFTWARE\Microsoft\Windows\CurrentVersion\Fonts" \
"BARCODES 12 MEDIUM (TrueType)" "N01bc12m.ttf"

i try later with the last version of nsis