Inno setup compiler How to set launching image during app loading

风格不统一 提交于 2019-12-13 09:24:30

问题


How do I enable showing a loading image when user launches my app compiled with inno setup compiler?

For example if you launch ms word, you will see a loading image before the main app loads in full.

Can this be done with Inno Setup?

I want my app to show a logo before loading fully, just as most app do?

Thank in advance


回答1:


Umar, what you are requesting is generally referred to as a splash-screen. The third party Inno Setup Script Includes (ISSI) library contains a function for splash-screens. http://members.home.nl/albartus/inno/ISSI_Functions/issi_splash.htm

Add the functionality by following the three steps found in the general instructions how to implement ISSI functions: http://members.home.nl/albartus/inno/




回答2:


I have gotten solution to my question above :) . Since I used wxpython for my GUI, there is a demo code on SplashScreen and AdvancedSplash things available within wxpython demo software.

By the way @TLama, thanks for point to me the technical name of this functionality.

Here are the working codes;

#For wx.SplashScreen

bitmap = wx.Bitmap('splashImage.png', wx.BITMAP_TYPE_PNG)
splash = wx.SplashScreen(bitmap, wx.SPLASH_CENTRE_ON_SCREEN | wx.SPLASH_TIMEOUT, 10000, None, style = wx.SIMPLE_BORDER | wx.STAY_ON_TOP | wx.SPLASH_CENTRE_ON_PARENT)
wx.Yield()

#wx.AdvancedSplash

import wx
import wx.lib.agw.advancedsplash as AS

app = wx.App(0)
frame = wx.Frame(None, -1, "AdvancedSplash Test")

imagePath = "my_splash_image.png"

bitmap = wx.Bitmap(imagePath, wx.BITMAP_TYPE_PNG)

shadow = wx.WHITE

splash = AS.AdvancedSplash(frame, bitmap=bitmap, timeout=5000, agwStyle=AS.AS_TIMEOUT | AS.AS_CENTER_ON_PARENT | AS.AS_SHADOW_BITMAP, shadowcolour=shadow)

app.MainLoop()


来源:https://stackoverflow.com/questions/23960516/inno-setup-compiler-how-to-set-launching-image-during-app-loading

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!