Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

InstallScript Custom action problems


2 replies to this topic

vikasv

vikasv
  • Members
  • 2 posts

Posted 11 January 2005 - 16:28

I am having problems with InstallScript CAs that invoke multiple DLL functions.

The situation is some thing like this.

export prototype abc(HWND);

function abc(hMSI)
...
xyz(); // <- Another InstallScript function
end;

function xyz()
..
dll1();
MessageBox();
dll2();
// These are the functions in the dll.. Somehow only the first function
// executes. The messagebox line is never hit eventhough dll1() completes
// successfully. Not only does it skip dll2() it exits the entire CA and hits the
// next CA
end

Any help will be greatly appreciated.

Vikas

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 11 January 2005 - 21:40

Does it show the message box?
double check your prototype for dll1, the calling convetion (cdecl or stdcall) in particular.

vikasv

vikasv
  • Members
  • 2 posts

Posted 12 January 2005 - 06:22

Thanks Stefan.
My Dll functions needed to be prototyped as CDECL. It works now.

Vikas