View Single Post
  #7  
Old 18-11-2015, 13:33
JRD!'s Avatar
JRD! JRD! is offline
Registered User
 
Join Date: Sep 2015
Location: Matrix
Posts: 274
Thanks: 225
Thanked 600 Times in 168 Posts
JRD! is on a distinguished road
Quote:
Originally Posted by r4e View Post
Hey, I really like your splash plugin but I have a problem:

If I use your Exaple script, the compiled example automatically closes after the splash
has shown (it shows no wizard, the installer just ends completely).

If I add "Result := True;", the wizard shows up but in the task bar there is an icon for
the installer and the icon for the external loaded plugin - which also is normal
if i use isgsg.dll but in that case the plugin closes when it has shown the splash
(and only the wizard window and its icon stays).



Is there a way to unload/close the plugin after it has loaded so that only the
one icon shows up in the taskbar which is for the installer itself?
Try Force unload module:

Code:
procedure ForceRemove(const ModuleName: string);
var
  hMod: HMODULE;
begin
  hMod := GetModuleHandle(PChar(ModuleName));
  if hMod=0 then 
    exit;
  repeat
  until not FreeLibrary(hMod);
end;
Reply With Quote