Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIWinAppHelper

Used on Windows only to do some work from a special process that gets created with elevated privileges.
1.0
28
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:

  • The operating system is at least Windows Vista
  • User Account Control is enabled
  • The user is an Administrator
  • The application is not already running with elevated permissions

Otherwise it returns false.

Methods

Obsolete since Gecko 1.9 (Firefox 3)

fixReg()

Invokes helper.exe with the /fixreg parameter. Note that this parameter was never actually supported.

void fixReg();
Parameters

None.

Obsolete since Gecko 1.9.2 (Firefox 3.6 / Thunderbird 3.1 / Fennec 1.0)

postUpdate()

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 to helper.exe as the /uninstalllog parameter.

Document Tags and Contributors

 Contributors to this page: Sheppy, Neil, trevorh
 Last updated by: Sheppy,