We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Zephias
Posts: 1
Joined: Fri Oct 14, 2022 8:27 pm

"Preffer Native Splash Screen=Yes" Not populating in .ini file

I am trying to build an installer that has a native Java project.

This java product has a splash screen that is a GIF file, but I found when I run the executable, the splash screen is not animated.

I could not figure out why it would not animate

This is an example of what my .ini file was looking like
iniFile.png
iniFile.png (10.77 KiB) Viewed 2061 times
After a LOT of digging, I found this post viewtopic.php?t=10004

Their .ini file had a line that mine did not: "Preffer Native Splash Screen=Yes"

Firstly, there is clearly a misspelling that has not been fixed for years.

However, when I added this line to my .ini file, my splash screen began to animate as expected.

I did some further research and found that in this post viewtopic.php?t=19728

It looks like the "Preffer Native Splash Screen" is supposed to be set by checking the "Use native Java 6 splash screen API" option, which I have checked.

So with that all said, I think there may be a bug where this line is not being written.

Here is my Splash screen settings
settings.png
settings.png (7.43 KiB) Viewed 2061 times
And when I check my Files and Folders page, to inspect the .ini file, it properly indicates that the installer will put this line in the file:
splash.png
splash.png (6.65 KiB) Viewed 2061 times
However, after installing, the file is missing this line, which is causing my GIF splash screen to fail to animate. I also suspect this is why the splash screen API integration is not working with Java, where when I try to call SplashScreen.getSplashScreen() in code, it returns null erroneously.

Please advise on how to fix this issue! Thanks in advance!
Catalin
Posts: 7853
Joined: Wed Jun 13, 2018 7:49 am

Re: "Preffer Native Splash Screen=Yes" Not populating in .ini file

Hello and welcome to our forums,

Regarding the flag not being set in the INI file, I'm afraid I can't say for sure why this is happening as I have tested this just now and everything worked as expected.

If possible, could you please create a sample project that reproduces this and forward it to me (either here or by email at support at advancedinstaller dot com)?

Additionally, please let me know a test-case (including the prerequisites required) in order to reproduce this.

Regarding the typo issue, I will discuss this with the developer after we figure out the above issue which is of priority.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”