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

Get CustomActionData with Session.Property


1 reply to this topic

Glytzhkof

Glytzhkof
  • Moderators
  • 1,447 posts

Posted 02 January 2004 - 23:12

Is it possible to get a handle to the running installation database in a deferred Installscript custom action? I know it can be done in VBScript, but I just can't find a way to do the same in Installscript...

Edited by Glytzhkof, 02 January 2004 - 23:13.

Regards
-Stein Åsmul

Neo

Neo
  • Members
  • 48 posts

Posted 04 January 2004 - 06:18

Yes you can. Since the custom action is executing outside the context in which the original MSI handle was created, you cannot do a lot of stuff with it. You cannot access the properties, directory variables or access the database in a deferred custom action.

At the risk of stating the obvious, you need a deferred custom action only if the custom action is altering the system. This would make sure that your custom action runs in the same security context of the standard actions thus enabling it to run using elevated privileges.

-Neo