ramilsulit
3rd November 2011 06:22 UTC
advsplash error
hi im newbie here and firstime using nsis software
here is my problem
Function .onInit
SetOutPath $TEMP
File /oname=spltmp.bmp "my_splash.bmp"
; optional
; File /oname=spltmp.wav "my_splashshit.wav"
advsplash::show 1000 600 400 -1 $TEMP\spltmp
Pop $0 ; $0 has '1' if the user closed the splash screen early,
; '0' if everything closed normally, and '-1' if some error occurred.
Delete $TEMP\spltmp.bmp
; Delete $TEMP\spltmp.wav
FunctionEnd
when i drag and drop this *.nsi file to compile in nsi scripts it display an error script.
Then i make a new one and create a new .jpeg and the path of this picture is locate in desktop.
here is my sript
Function .onInit
SetOutPath $TEMP
File /oname=spltmp.jpg "%useprofile%\Desktop\picture.jpg"
; optional
; File /oname=spltmp.wav "my_splashshit.wav"
advsplash::show 1000 600 400 -1 $TEMP\spltmp
Pop $0 ; $0 has '1' if the user closed the splash screen early,
; '0' if everything closed normally, and '-1' if some error occurred.
Delete $TEMP\spltmp.jpg
; Delete $TEMP\spltmp.wav
FunctionEnd
then it display an error again
T.Slappy
3rd November 2011 07:27 UTC
If this is your whole script then you need to add at least one Section and OutFile.
But if it is only fragment of script then it is correct :)
ramilsulit
3rd November 2011 09:10 UTC
yes thats is my whole script thanks for your reply i dont know how to use the section and outfile command can you give me some sample script related in my script
MSG
3rd November 2011 09:15 UTC
For an example, please look in your NSIS installation folder, at NSIS\Examples\Example1.nsi and Example2.nsi. To find out what a specific command does, use the command reference: http://nsis.sourceforge.net/Docs/Chapter4.html
ramilsulit
15th November 2011 02:46 UTC
why the splash screen doesn't display here is my script it only extract the file
Function .onInit
SetOutPath $TEMP
File /oname=splash.jpg "blue.jpg"
advsplash::show 1000 500 200 -1 $TEMP\splash
Pop $0 ; $0 has '1' if the user closed the splash screen early,
FunctionEnd
Outfile "samplepicture.exe"
Section "DESKTOP"
SetOutPath $DESKTOP
File "sample.txt"
SectionEnd
T.Slappy
15th November 2011 06:03 UTC
There is no problem in the code: I can see splash correctly.
Check all files, their location or any result from compiler.
ramilsulit
15th November 2011 07:21 UTC
here is the result after compiled
Processed 1 file, writing output:
Adding plug-ins initializing function... Done!
Processing pages... Done!
Removing unused resources... Done!
Generating language tables... Done!
Output: "C:\Documents and Settings\user\Desktop\pics\samplepicture.exe"
Install: 2 pages (128 bytes), 1 section (1048 bytes), 31 instructions (868 bytes), 51 strings (800 bytes), 1 language table (198 bytes).
Using zlib compression.
EXE header size: 33280 / 35840 bytes
Install code: 965 / 3370 bytes
Install data: 29371 / 34677 bytes
CRC (0xF262F70E): 4 / 4 bytes
Total size: 63620 / 73891 bytes (86.0%)
ramilsulit
15th November 2011 10:32 UTC
yes i did it i found the solution i just replace the .jpg extension to .bmp thanks guys now i been working on how to run the NewAdvSplash.zip that i download i was confuse to use this i dont know where to place this zip file and run it?