You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It will show popup to request admin permission from your computer.
3. After choose yes for the request admin permission.
App run, and all the feature work, but it can't create shortcut in desktop.
(May be admin don't have permission to create shortcut in desktop)
If i don't add --win32metadata.requested-execution-level=requireAdministrator . And do all the same step. App work perfectly. But some case we need to write or read file in computer. We need admin permission.
Code create shortcut may be helpful
const squirrelEvent = process.argv[1];
switch (squirrelEvent) {
case '--squirrel-install':
case '--squirrel-updated':
// Install desktop and start menu shortcuts
spawnUpdate(['--createShortcut', shortcutName]);
setTimeout(application.quit, 1000);
return true;
case '--squirrel-uninstall':
// --squirrel-updated handlers
// Remove desktop and start menu shortcuts
spawnUpdate(['--removeShortcut', shortcutName]);
setTimeout(application.quit, 1000);
return true;
case '--squirrel-obsolete':
// This is called on the outgoing version of your app before
// we update to the new version - it's the opposite of
// --squirrel-updated
application.quit();
return true;
}
};
The text was updated successfully, but these errors were encountered:
👋 Thanks for opening your first issue here! If you have a question about using Electron Packager, read the support docs. If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. Development and issue triage is community-driven, so please be patient and we will get back to you as soon as we can.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
STEP TO REPRODUCE
Build by electron-packager with cmd --win32metadata.requested-execution-level=requireAdministrator Miniique
"scripts": {
"build-prod": "electron-packager src --platform=win32 --arch=x64 --icon=icon.ico Miniique prod && node build.js",
"build-stag": "electron-packager src --platform=win32 --arch=x64 --icon=icon.ico Miniique stag && node build.js",
"build-dev": "electron-packager src --platform=win32 --arch=x64 --icon=icon.ico --win32metadata.requested-execution-level=requireAdministrator Miniique dev && node build.js"
}
When install app After build
It will show popup to request admin permission from your computer.
3. After choose yes for the request admin permission.
App run, and all the feature work, but it can't create shortcut in desktop.
(May be admin don't have permission to create shortcut in desktop)
If i don't add --win32metadata.requested-execution-level=requireAdministrator . And do all the same step. App work perfectly. But some case we need to write or read file in computer. We need admin permission.
Code create shortcut may be helpful
const squirrelEvent = process.argv[1];
switch (squirrelEvent) {
case '--squirrel-install':
case '--squirrel-updated':
}
};
The text was updated successfully, but these errors were encountered: