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

Ending an installation by calling MsiDoAction?


3 replies to this topic

Smalls

Smalls
  • Members
  • 8 posts

Posted 10 October 2002 - 00:56

Hi folks,

I'm rather new to Windows Installer development, so bare with me.  :)

I have a DLL imbedded within my installer which is checking the version of IE on the given user's machine.  If it doesn't match, I basically want the installer to jump to a cancel page, or an exit page, or whatever.  I thought I might be able to do this by calling MsiDoAction, but no matter what action I pass to that bad boy, I always get the following error:  ERROR_FUNCTION_NOT_CALLED.  I've tried running a couple of other MSI functions (MsiGetParameter for example) and haven't had a problem.

Any thoughts?

Thanks!

Ian Blake

Ian Blake
  • Members
  • 483 posts

Posted 10 October 2002 - 08:55

Suggestion

Your test dll sets a property.

You create a type 19 CA to indicate the error condition if the property is set.
------------------------
Alternately your dll can display a message using MsiProcessMessage and return ERROR_INSTALL_FAILURE.
Ian Blake
(Currently Unemployed)

Smalls

Smalls
  • Members
  • 8 posts

Posted 10 October 2002 - 18:23

Much appreciated Ian, I'll give those a go.

Smalls

Smalls
  • Members
  • 8 posts

Posted 10 October 2002 - 18:43

Many thanks, my friend.  That return code did precisely what I needed.  'Twas so simple I'm embarassed I didn't come to it myself.  :)