Need some help.
Code:
function InitializeSetup(): Boolean;
begin
if FileExists(ExpandConstant('{tmp}\Setup.cjstyles')) then begin
LoadSkin(ExpandConstant('{tmp}\Setup.cjstyles'), '');
Result := True;
end;
if FileExists(ExpandConstant('{tmp}\Setup.vsf')) then begin
LoadVCLStyle(ExpandConstant('{tmp}\Setup.vsf'));
Result := True;
end;
end;
procedure DeinitializeSetup();
begin
if FileExists(ExpandConstant('{tmp}\Setup.cjstyles')) then begin
UnloadSkin();
end;
if FileExists(ExpandConstant('{tmp}\Setup.vsf')) then begin
UnLoadVCLStyles;
end;
end;
Setup.exe don't start, it just closes.
Maybe i am blind and don't see the mistake
Edit: Ok after a cup of coffee i just found my mistake.
Result := True was missing in InitializeSetup