question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot unzip files on Windows due to UAC rules

See original GitHub issue

ENOENT: no such file or directory, rename ‘C:\Users\aasmunds\AppData\Local\Temp\electron-packager\win32-x64\stox-win32-x64\electron.exe’ -> ‘C:\Users<user>\AppData\Local\Temp\electron-packager\win32-x64\stox-win32-x64\stox.exe’ npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! stox@1.0.0 package-win: electron-packager . <appname> --platform win32 --arch x64 --out dist/ --overwrite npm ERR! Exit status 1 npm ERR!

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:21 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
asmundskalevikcommented, Jul 1, 2019

using electron packager 14.0.0, than it crashed. had to downgrade to 13.1.1 then it worked fine. thanks package “main”: “index.js”, “scripts”: { “start”: “electron .”, “package-win”: “electron-packager . stox --platform win32 --arch x64 --out dist/ --overwrite --asar”,

From: Mark Lee [mailto:notifications@github.com] Sent: 01 July 2019 15:40 To: electron-userland/electron-packager electron-packager@noreply.github.com Cc: Skålevik, Åsmund aasmund.skaalevik@hi.no; Author author@noreply.github.com Subject: Re: [electron-userland/electron-packager] ENOENT error in 14.0.0 (#1024)

Thanks for filing an issue! In order to help you with your problem, we’re going to need more information about it. In particular:

· Operating System (Platform and Version) e.g. macOS 10.13.6 / Windows 10 (1803) / Ubuntu 18.04 x64

· Last Known Working Electron Packager version (if applicable) e.g. 11.0.0

· Console output when you run electron-packager with the environment variable DEBUG=electron-packager (instructions for Windowshttps://github.com/visionmedia/debug#windows-command-prompt-notes and non-Windowshttps://en.wikipedia.org/wiki/Environment_variable#Unix). Please include the stack trace if one exists.

· What does your package.json file look like?

· Please provide either a failing minimal testcase (with code) or detailed steps to reproduce your problem. Using electron-quick-starthttps://github.com/electron/electron-quick-start is a good starting point.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/electron-userland/electron-packager/issues/1024?email_source=notifications&email_token=ACWW3K7AYAEA45SEA2IEFYLP5ICKLA5CNFSM4H4RSAMKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODY6E5HQ#issuecomment-507268766, or mute the threadhttps://github.com/notifications/unsubscribe-auth/ACWW3K34IWMG5CVZOWMVZHTP5ICKLANCNFSM4H4RSAMA.

1reaction
asmundskalevikcommented, Dec 3, 2019

I played a bit with cross-zip (similar to what you did in your unzip.js) , and yes it may be prevented by the UAC. The Event viewer log shows that %OSDRIVE%\USERS<user>\APPDATA\LOCAL\TEMP__PSSCRIPTPOLICYTEST_S5NE442K.JV4.PSM1 was prevented from running. Maybe it is a wrong postscript policy in the UAC management.

const zip = require(‘cross-zip’) const { promisify } = require(‘util’) const unzip = promisify(zip.unzip) let zipPath = ‘C:\Users\aasmunds\AppData\Local\electron\Cache\httpsgithub.comelectronelectronreleasesdownloadv7.1.2electron-v7.1.2-win32-x64.zip\electron-v7.1.2-win32-x64.zip’; let targetDir = ‘C:\Users\aasmunds\AppData\Local\Temp\electron-packager\win32-x64-template’; unzip(zipPath, targetDir);

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't Extract All WinZip Files Due To Administrative Rights Issue
I have already gone to the folder, right-clicked and selected "properties", then selected the Security tab and changed the settings for all ...
Read more >
Windows 10 "Access Denied" Folder Errors: 5 Easy Fixes
Seeing "access is denied" in Windows 10 or 11 when you try to access certain folders or files? Here are several ways to...
Read more >
Error unzip my file in "C:\\Program Files (x86)" , No permissions
This is system folder and your application has to be ran with administrator privileges to write to it. Try to unzip to MyDocuments...
Read more >
WinRAR context menu's "Extract here" does not work in ...
I am however able to extract by opening the RAR file and then using the Extract option in the tool bar. It seems...
Read more >
[Guide] How to Train Your Pencil2D (Windows)
It is possible that the UAC (User Account Control) permission levels are set very high and is not allowing any kind of program...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found