开发者

InstallShield battery level warning

开发者 https://www.devze.com 2022-12-09 03:17 出处:网络
Is there any way to display an warning message if the user tries to install my app when the battery level is under 5%? I\'m using InstallSh开发者_Python百科ield.Don\'t know if Installshield supports t

Is there any way to display an warning message if the user tries to install my app when the battery level is under 5%? I'm using InstallSh开发者_Python百科ield.


Don't know if Installshield supports this directly, but you could create a autorun menu program that gets run first, that checks battery level, then if its ok, runs setup ?


There are several .NET-related answers in this SO question. At least the GetSystemPowerStatusEx function could be helpful for you.


What version, edition of InstallShield and project type are you using? The answer depends, but generally InstallShield can call Win32, COM and Managed API's so it is very doable with a little bit of coding.

I'd wonder if you really want to check at 5% though. Most installs I've seen simply check that you are on line power instead of battery when gating the install. 5% is already pretty low and might now give you much time to do whatever you need.

0

精彩评论

暂无评论...
验证码 换一张
取 消