Page 1 of 1

Splash Screen sort of working

Posted: Fri Apr 10, 2020 11:22 pm
by brianclark
I have read through the instructions on the "Show-SplashScreen", and in my application the Splash screen works. However, after I build the app and run it from a .exe the splash screen comes up, however there is no image. Is it due to me putting my images in a folder within the directory?

Code: Select all

	
	$paramShowSplashScreen = @{
		ImageLocation = Join-Path -Path (Get-ScriptDirectory) -ChildPath '\Images\Loading.png'
		Title		  = 'Loading Data ...'
		PassThru	  = $false
	}
	Show-SplashScreen @paramShowSplashScreen
I must be missing something, or what I need to do to embed the image in the application. Any guidance would be appreciated.
One other question, can I use a gif instead of an image?
thanks,
Brian