PDA

View Full Version : Splash Screen on Startup



mkruckow
02-10-2005, 11:41 AM
Hi guys,

I have a problem with a splash screen I want to show before the setup starts. I have a *.png-image (as defined in the SUF Help), declared the image file as a primer file and added an action "on Preload" of the "Before Installing Screen" saying Dialog.SplashImage(SessionVar.Expand("%TempLaunchFolder%\\*.png"), 5, true);. However, after building the setup and starting the setup.exe the image dos not show up. Do you have any ideas that could help me on that?

Adam
02-10-2005, 01:09 PM
mkruckow,

I just tested this out and I was getting the same type of results.... nothing.

I then tried using a jpeg rather than a .PNG and it worked fine! I'll bet that the PNG file that you are trying to show has transparent parts to it? That is what I have narrowed it down to.

Adam Kapilik

Adam
02-10-2005, 01:10 PM
Also do not use wildcards in a file path in this action. I assume that this was done for your example only, but I thought it worth mentioning.

Adam Kapilik

mkruckow
02-11-2005, 03:36 AM
Thankx a lot. Tried it out with a *.jpg & it works just fine. do you have any example project with a more complex splash screen (something like adobe acrobat reader 6). I been testing my creativity with several graphics programs but didn't really get any satisfactory results. All I need is a little help to get going.

csd214
02-11-2005, 06:33 AM
Thankx a lot. Tried it out with a *.jpg & it works just fine. do you have any example project with a more complex splash screen (something like adobe acrobat reader 6). I been testing my creativity with several graphics programs but didn't really get any satisfactory results. All I need is a little help to get going.
Very interesting! (My experience with .jpg and .png matches what Adam said).

If your testing of your creativity leads to any "new result", please publish!

As far as I understand: When you start the splash dialog, the program execution is stopped (for a predetermined time), What I want:
1 Display the image
2 Do some time consuming operations (search for files, open files)
3 Remove the image when operations (2) are finished

IOW, like the Adobe Reader splash screen or the SUF70 splash (?) (Oh, did you say FLASH?)

mkruckow
02-11-2005, 08:13 AM
Nice idea. Could you guys give us any tips as to how creating a splash image like you did for suf7? Would be great!

Worm
02-11-2005, 08:52 AM
I am working on finishing the SplashDlg DLL that I started working on back in May of '04. It is based on the same code that I use in the SetMask DLL for AMS. I'd have to look at it, but I'm certain that this could be used for a splash in SUF7 too.

Here's a link to the AMS forum that pertains to it.
http://www.indigorose.com/forums/showpost.php?p=33548&postcount=5

csd214
02-13-2005, 09:40 AM
Nice idea. Could you guys give us any tips as to how creating a splash image like you did for suf7? Would be great!
Personally I haven't created any splash image in SUF70 (I meant the splash screen when you start SUF70. I'm sure something is performed while we look at the splash image.) The utmost I have done is to use the command Dialog.SplashImage(sSplashImageFile, nTime, true);

But Worm is a Jack of all traders (I found that strange phrase in my dictionary. I hope it is recognized as a compliment!). I'm going to try SetMask.DLL some day!

I forgot that this was a SUF70 thread. In AMS50 I tried the simple solution with a starter exe (a small page with a web object) [=Splash_External.exe] and a main AMS executable. I tried the Splash_External.exe as a primer file in SUF70; it worked smoothly (when I searched for a non-existing file on the C-drive). The overhead is too high (more than 1 MB); I don't think that this is the solution for SUF70.