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

Check battery state


1 reply to this topic

cornel_gav

cornel_gav
  • Full Members
  • 10 posts

Posted 12 March 2008 - 13:30

is there a way to check the battery state from InstallScript.
I'm using InstallShield

Thanks

VBScab

VBScab
  • Full Members
  • 436 posts

Posted 12 March 2008 - 13:37

This type of thing is available from WMI but I wouldn't know how you script WMI in InstallScript.

I found this which led to this - I think the entry by 'Somebody' in that second link has a code example.

The nub seems to be that you can't iterate through a collection in IS without kludging sad.gif

Here is a VB Script example

Edited by VBScab, 12 March 2008 - 15:45.

- 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.