nsIWinAppHelper 编辑
toolkit/xre/nsIWinAppHelper.idl
Scriptable Used on Windows only to do some work from a special process that gets created with elevated privileges. 1.0 66 Introduced Gecko 1.8 Inherits from: nsISupports
Last changed in Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)Implemented by: @mozilla.org/xre/app-info;1
. To create an instance, use:
var xulAppInfo = Components.classes["@mozilla.org/xre/app-info;1"] .getService(Components.interfaces.nsIWinAppHelper);
The nsIXULAppInfo
and nsIXULRuntime
interfaces are also implemented by "xre/app-info".
Method overview
void fixReg(); Obsolete since Gecko 1.9 |
void postUpdate(in nsILocalFile logFile); Obsolete since Gecko 1.9.2 |
Attributes
Attribute | Type | Description |
userCanElevate | boolean | Read only. Returns true only if all the following conditions are all true at once:
Otherwise it returns false. |
Methods
fixReg()
Obsolete since Gecko 1.9 (Firefox 3)Invokes helper.exe
with the /fixreg
parameter. Note that this parameter was never actually supported.
void fixReg();
Parameters
None.
postUpdate()
Obsolete since Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)Invokes helper.exe
with the /postupdate
parameter. This updates the uninstallation log so that the application can be uninstalled correctly after an update.
void postUpdate( in nsILocalFile logFile );
Parameters
logFile
The file to use for the uninstallation log. The path is passed tohelper.exe
as the/uninstalllog
parameter.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论