OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to create a Windows installer with UAC prompt using electron-forge?

  • Thread starter Thread starter Julio de Leon
  • Start date Start date
J

Julio de Leon

Guest
Is it possible for electron-forge to display a UAC prompt before installation? I looked at the Electron Forge documentation, and it doesn't have any configuration to allow a UAC prompt before installation. I know this is possible with electron-builder using allowElevation:true.

Code:
"build": {
    "appId": "your.id",
    "win": {
      "target": [
        "nsis"
      ]
    },
    "nsis": {
      "oneClick": false,
      "perMachine": true,
      "allowElevation": true
    }
  }

However, I want to build my Windows desktop app using electron-forge, how can I achieve this?

enter image description here

<p>Is it possible for electron-forge to display a UAC prompt before installation? I looked at the Electron Forge documentation, and it doesn't have any configuration to allow a UAC prompt before installation.
I know this is possible with electron-builder using <strong>allowElevation:true.</strong></p>
<pre><code>"build": {
"appId": "your.id",
"win": {
"target": [
"nsis"
]
},
"nsis": {
"oneClick": false,
"perMachine": true,
"allowElevation": true
}
}
</code></pre>
<p>However, I want to build my Windows desktop app using electron-forge, how can I achieve this?</p>
<p><a href="https://i.sstatic.net/X69sAScg.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/X69sAScg.png" alt="enter image description here" /></a></p>
 

Latest posts

Top