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

MsiGetProperty in deferred custom action


4 replies to this topic

Olivier MATROT

Olivier MATROT
  • Members
  • 8 posts

Posted 28 March 2001 - 09:24

Here are my needs : I've created a deferred custom action that is calling a DLL in order to display progress text during it's execution. This DLL needs to access database properties. Knowing that there is some restriction, I'm trying to access the CustomActionData Property, that is set by another custom action in the install sequence. However, the call to MsiGetProperty crashes with several Access Violation errors. This is a behavior I previously encountered when the requested property is inaccessible ! What's happening ?

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 28 March 2001 - 15:26

Did you follow the steps in InstallShield's knowledge base article?

Olivier MATROT

Olivier MATROT
  • Members
  • 8 posts

Posted 29 March 2001 - 09:37

Yes I do.
Here is the content of my custom action :
Type : Set a Property
Source : Deferred custom action name
Target : [PROPERTY1];[PROPERTY2];[PROPERTY3]
Execute Scheduling : Always Execute

It is following LaunchConditions in the execute installation sequence.


Olivier MATROT

Olivier MATROT
  • Members
  • 8 posts

Posted 29 March 2001 - 15:02

The problem is solved.
I've suppressed and recreated the custom actions.