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

Parsing command line parameters


4 replies to this topic

igodunov

igodunov
  • Full Members
  • 61 posts

Posted 10 January 2006 - 10:55

I need to determine (in a custom action) if certain property was passed through command line. Is it possible?


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 10 January 2006 - 15:06

How about MsiGetProperty ?

igodunov

igodunov
  • Full Members
  • 61 posts

Posted 10 January 2006 - 17:18

It doesn't work in my case. I need to determine if property passed through commandl line - not it's value.

VBScab

VBScab
  • Full Members
  • 436 posts

Posted 11 January 2006 - 16:10

Maybe the Installer object has something? If not, I think you need to create a custom DLL and ask the Windows API what parameters were passed to MSIExec.

Or how about interrogating the log file?

Edited by VBScab, 11 January 2006 - 16:32.

- Don't know why 'x' happened? Want to know why 'y' happened? ProcMon will tell you.
- Try using http://www.google.com before posting.
- I answer questions only via forums. Please appreciate the time I give here and don't send me personal emails.

igodunov

igodunov
  • Full Members
  • 61 posts

Posted 12 January 2006 - 09:00

>WinApi
Witty smile.gif. Will try.