Print Page | Close Window

ISSkin fuction InitializeSetup help

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Active-X COM Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=15950
Printed Date: 22 December 2024 at 4:53am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: ISSkin fuction InitializeSetup help
Posted By: kisame
Subject: ISSkin fuction InitializeSetup help
Date Posted: 04 January 2010 at 9:15pm
Hi, i found my problem using ISSkin + ISSI, i need to change the name fuctions of :

function InitializeSetup(): Boolean;

and

procedure DeinitializeSetup();

to a new name and get it working because ISSI already taked InitializeSetup name, how i can change the names of these fuctions and
get the ISSkin working?

I tried to change to :

#define ISSkinInitialize Setup
#define ISSkinDeInitialize Setup

and

[code]
// Importing LoadSkin API from ISSkin.DLL
procedure LoadSkin(lpszPath: String; lpszIniFileName: String);
external 'LoadSkin@files:isskin.dll stdcall';

// Importing UnloadSkin API from ISSkin.DLL
procedure UnloadSkin();
external 'UnloadSkin@files:isskin.dll stdcall';

// Importing ShowWindow Windows API from User32.DLL
function ShowWindow(hWnd: Integer; uType: Integer): Integer;
external 'ShowWindow@user32.dll stdcall';

function ISSkinInitializeSetup(): Boolean;
begin
    ExtractTemporaryFile('lightgrey.cjstyles');
    LoadSkin(ExpandConstant('{tmp}\lightgrey.cjstyles'), '');
    Result := True;
end;

procedure ISSkinDeinitializeSetup();
begin
    // Hide Window before unloading skin so user does not get
    // a glimse of an unskinned window before it is closed.
    ShowWindow(StrToInt(ExpandConstant('{wizardhwnd}')), 0);
    UnloadSkin();
end;

But is not working, someone can helpme to change name of the process of InitializeSetup to "newname" and get it working?



Replies:
Posted By: Oleg
Date Posted: 05 January 2010 at 8:24am
Hi,
See sources of ISSI  they have solution for this case.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: kisame
Date Posted: 05 January 2010 at 11:15am
yes i try to moddify ISSI, but didnt work 100%, i losse some features like SplashScreen.

The question if there are a way to change InitializeSetup for example InitializeSetup2 and get it
working. can you help me please!!! can you?


Posted By: Oleg
Date Posted: 07 January 2010 at 7:00am
Hi
I really don't understand why its problem - open ISSI sources, and from its InitializeSetup  call your MyInitializeSetup  and replace InitializeSetup of your script to MyInitializeSetup.


-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


Posted By: kisame
Date Posted: 08 January 2010 at 9:33pm
the problem??? well i modify the sources of ISSI exactly like you said, and offcourse works and can uses ISSI + ISSKIN,
but lost some features on ISSI like SPLASH SCREENS etc..



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net