为了使安装向导更加生动,在制做应用的安装包时,往往要对向导上的Logo 进行动态修改,以起到提醒和警示作用。
以下以 Nextinstaller 为例:
就是在脚本中动态调用 Install.SetLeftBarImage( strImageFile );
如:
function void OnEnd()
{
var string strImageFile;
strImageFile = Install.GetPath( PATH_S_SUPPORTDIR ) + '//End.bmp'
Install.SetLeftBarImage( strImageFile );
if( Install.GetSetupState() == SS_INSTALL )
Install.DoDialog( 'SdFinish' );
else if( Install.GetSetupState() == SS_INSTALL_REBOOTDO )
Install.DoDialog( 'SdRebootDo' );
}
效果图: