title: Inno Setup - Transparent Splash Screen
body: <p>I have a problem and I need your help..I want to find a differente way to put a transparent splash screen or the correction of my code. The code here works... but there is a problem, some people get an error at the end of the installation.</p>
  
  <p>This is how look the error at the end of the installation
  <img src="https://i.stack.imgur.com/LUEFC.jpg" alt="enter image description here"></p>
  
  <p><img src="https://i.stack.imgur.com/2Rr9D.jpg" alt="enter image description here"></p>
  
  <p>I check another lines in my code and I found that the problem was the code of the splash screen, if I delete it the installer works perfect, I see that what I need is a <code>procedure DeinitializeSetup();</code> but I don't know how tu put it in the splash screen section, I get this kind of error if I delete the <code>procedure DeinitializeSetup();</code> in another codes, like skin, logo, etc.. the files that goes to temp folder of windows... then what I need is the <code>procedure DeinitializeSetup();</code> in the splash screen code to solve this... :( here is the dll file for anyone to test <a href="http://www.mediafire.com/?0nawon231dtma5e" rel="nofollow noreferrer">IsUtilsHb.dll</a></p>
  
  <p>then...please if anybody know a different way to put a transparent splash screen... ill be grateful.. or better.. to fix this code section :)</p>
  
  <pre><code>[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;
  </code></pre>