cancel
Showing results for 
Search instead for 
Did you mean: 
mumbles
Pilgrim

Command Line Custom Actions on Vista and 7

Question about running custom actions that run command line stuff.

We have special custom actions that call the command line and basically run the following:

C:\windows\microsoft.net\framework\v2.0bla\regasm.exe "C:\Program Files\Code Red\Red Alerts\bla.dll"

This is not executing on Windows Vista or 7. Do we need to do something special to get this to work?

Any help is greatly appreciated!
Labels (1)
0 Kudos
4 Replies
MichaelU
Pilgrim

Re: Command Line Custom Actions on Vista and 7

It's unclear what you mean by "not running" and perhaps a verbose MSI log will have more detail. To take a stab in the dark, however, this regasm call probably needs elevated privileges, and the action may currently be scheduled as something as other than "Deferred in System Context." If so, perhaps try changing it to that setting?
0 Kudos
mumbles
Pilgrim

Re: Command Line Custom Actions on Vista and 7

Is there an article on which 'deferred to system context' means in a technical fashion?
0 Kudos
MichaelU
Pilgrim

Re: Command Line Custom Actions on Vista and 7

You might try this Microsoft KB Article: http://support.microsoft.com/kb/305574
"InScript" corresponds to "Deferred" and "NoImpersonate" to "In System Context."
0 Kudos
mumbles
Pilgrim

Re: Command Line Custom Actions on Vista and 7

That worked, thanks Michael!
0 Kudos