問題があり、あなたの助けが必要です。透明なスプラッシュ スクリーンを配置する別の方法またはコードの修正を見つけたいです。ここのコードは機能します... しかし問題があり、インストールの最後にエラーが発生する人もいます。
これは、インストールの最後にエラーがどのように見えるかです
コードの別の行を確認したところ、スプラッシュ スクリーンのコードに問題があることがわかりました。それを削除すると、インストーラーは完璧に動作します。必要なものは a であることprocedure DeinitializeSetup();
がわかりますが、それをスプラッシュスクリーンセクション、スキン、ロゴなどの別のコードを削除すると、この種のエラーが発生procedure DeinitializeSetup();
します.Windowsの一時フォルダーに移動するファイル...次に必要なのはprocedure DeinitializeSetup();
、スプラッシュスクリーンコードでこれを解決してください... :( 誰でもIsUtilsHb.dllをテストするためのdllファイルです
それから...誰かが透明なスプラッシュスクリーンを置く別の方法を知っているならお願いします...感謝します..またはもっと良い..このコードセクションを修正してください:)
[setup]
AppName=Slash PNG
AppVerName=1.0
DefaultDirName={pf}\program
[Languages]
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
[Files]
Source: IsUtilsHb.dll; DestDir: {app}; Flags: dontcopy
Source: SplashScreen.png; DestDir: {app}; Flags: dontcopy
[Code]
function SplashScreen(hWnd: Integer; pathPng: String; nSleep: Integer): Integer;
external 'SplashScreen@files:IsUtilsHb.dll stdcall';
procedure InitializeWizard();
var
SplashFileName: string;
begin
SplashFileName := ExpandConstant('{tmp}\SplashScreen.png');
ExtractTemporaryFile('SplashScreen.png');
SplashScreen(StrToInt(ExpandConstant('{hwnd}')), SplashFileName, 5000);
end;