Squirrel.Windows icon indicating copy to clipboard operation
Squirrel.Windows copied to clipboard

Releasify - Access to path '*_ExecutionStub.exe' is denied

Open alexmacdonald5290 opened this issue 3 years ago • 3 comments

I've been using squirrel since November last year with no problems.

Today i've gone to release my latest changes to test using my usual method of create a new package and use the releasify command to package it up.

The releasify command is still working in my prod environment but in my test environment it's giving me the below.

"squirrel : System.UnauthorizedAccessException: Access to the path 'Plexus POS System Test_ExecutionStub.exe' is denied."

Any suggestions? I haven't changed anything with Squirrel recently.

alexmacdonald5290 avatar Feb 02 '21 15:02 alexmacdonald5290

A temporary ExecutableStub is created by the releasify command and it is stored under %localappdata%\SquirrelTemp. Does your test account has the privilege to access that location?

chingchang avatar Feb 10 '21 22:02 chingchang

I have checked and permissions look fine. The account i use is the same account for executing "releasify" for both production and test.

Running releasify for production is fine.

Update: I've just run the command and watched the squirreltemp folder. I can see it generate the stub but it's marked as readonly?

Update 2: Deleting the releases file in my release directory before releasify allows the command to run

alexmacdonald5290 avatar Feb 11 '21 13:02 alexmacdonald5290

I have a similar issue. When I run releasify I get a lengthy error message. It begins with: squirrel : System.AggregateException: One or more errors occurred. ---> System.IO.IOException: The process cannot access the file 'C:\Users\rharbert\AppData\Local\SquirrelTemp\tempd\lib\net472\DesignDB_UI_ExecutionStub.exe' because it is being used by another process. At line:1 char:1

  • squirrel --releasify DesignDB.2.1.920.nupkg
  • 
    

When I navigate to the SquirrelTemp folder there is no tempd folder

royharbert avatar May 05 '23 20:05 royharbert