splash.exe
Hi everybody !
I have a problem with NSIS 1.96.
A good script written with the 1.95 version does work very well.
But with the 1.96, my splash screen doesn't appear anymore.
I don't understand...
Archive: splash.exe
splash.exe
Hi everybody !
I have a problem with NSIS 1.96.
A good script written with the 1.95 version does work very well.
But with the 1.96, my splash screen doesn't appear anymore.
I don't understand...
Post your script and we will be able to give some advise...
I expect it has something to do with an old .onInit problem...
-Hendri.
thank's smile
here's my script which doesn't display my splashscreen.
SilentInstall normal
AutoCloseWindow true
Name "Paramétrage et installation Internet Explorer 5.5"
Caption "Paramétrage et installation ie5.5 - Ver 1.0 - Build 002"
OutFile "ie5siege.exe"
BGGradient 000000 800000 FFFFFF
InstallColors FF8080 000030
OutFile "ie55.exe"
Function .onInit
SetOutPath $TEMP
File /oname=spltmp.dat "my_splash.bmp"
File /oname=spltmp.exe "C:\program files\nsis\splash.exe"
ExecWait '"$TEMP\spltmp.exe" 2000 $HWNDPARENT spltmp.dat'
Delete $TEMP\spltmp.exe
Delete $TEMP\spltmp.dat
FunctionEnd
InstallDir $WINDIR\temp
; Mise à jour de la clé de configuration automatique des Proxies
Section "Mise à jour clé"
WriteRegStr HKEY_CURRENT_USER "Software\Microsoft\Windows\CurrentVersion\Internet Settings" "AutoConfigURL" "http://130.1.1.3/Auto/Proxy.pac"
WriteRegStr HKEY_CURRENT_USER "Software\Microsoft\Windows\CurrentVersion\Internet Settings" "ProxyEnable" "dword:00000000"
;Désactivation de l assistant de connexion Wizzard
WriteRegDword HKEY_CURRENT_USER "Software\Microsoft\Internet Connection Wizard" "DesktopChanged" "00000001"
WriteRegBin HKEY_CURRENT_USER "Software\Microsoft\Internet Connection Wizard" "Completed" "01000000"
; Lancement de l' installation d' Internet Explorer
SetOutPath $INSTDIR
File ie55\*.*
ExecShell open '$INSTDIR\ie5setup.exe'
SectionEnd
; eof
Clary,
this is the problem: splash only takes a file argument without an extension and expects per default the extension .bmp. So it cannot find the dat file:
Change the script into:
Function .onInit
SetOutPath $TEMP
File /oname=spltmp.bmp "my_splash.bmp"
File /oname=spltmp.exe "C:\program files\nsis\splash.exe"
ExecWait '"$TEMP\spltmp.exe" 2000 $HWNDPARENT spltmp'
Delete $TEMP\spltmp.exe
Delete $TEMP\spltmp.dat
FunctionEnd
So it was not an .onInit problem :)
-Hn3.