Skip to content
⌘ NSIS Forum Archive

Splash screen with sprating photo and ant text section...

6 posts

ozmen_celik#

Splash screen with sprating photo and ant text section...

I have a splash image while the startapp of my app... And the splash image also includes copyright text and when i need to change the copyright date then i need to edit the photo all the time.

My question is, is it possible to show splash image and any text like copyright text in startup ?

Thanks.

BC Anders
ozmen_celik#
Splash screen shows up when the installer app runing and shows only a one image named splash.

So what do u mean with "Do it at compile time with ImageMagick" ? I didnt see any example of it in here: https://nsis.sourceforge.io/Category:Code_Examples

Function .onInit ;Will execute when the installer is first run
InitPluginsDir
IfSilent +3 0
File /oname=$PLUGINSDIR\splash.bmp "Splash.bmp"
splash::show 2000 $PLUGINSDIR\splash
FunctionEnd
Anders#
I don't understand what you are asking.

If you are saying that for example, your splash says "Copyright %Year%" and no matter what year it is, the installer will automatically adjust, even for years in the future then that is not a thing applications normally do.

If you just want the year to match the year when it was compiled:

Function .onInit
!system 'ImageMagick .... myspashtemplate.bmp -output splash.bmp' ; Not correct syntax but you get the point
InitPluginsDir
IfSilent +3 0
File /oname=$PLUGINSDIR\splash.bmp "Splash.bmp"
splash::show 2000 $PLUGINSDIR\splash
FunctionEnd
ozmen_celik#
Hey Anders sorry let me make it more clear for you with detailed explaining and photo.

As u can see as attached image file, i have a splash photo that includes logo, siteadress and copyright. But in this scenario i always have to rechange / update the splash photo when the website address changed also i want to change copyright as Copyright @ 1990 - {this.year }.

The website address and copyright should be dynamic that can change with code not editing current splash picture.

Any clue ? Thanks...

ozmen_celik#
Anders i think using .svg file will solve my problem out but i think NSIS use only .bmp file right ? If yes then is it possible to convert svg to bmp in nsis while is compailing for splash screen in appstart ?