[GH-ISSUE #218] change pyinstaller temp directory #201

Closed
opened 2026-02-26 12:20:48 +03:00 by kerem · 3 comments
Owner

Originally created by @rstudiocode on GitHub (Nov 18, 2021).
Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/218

Originally assigned to: @brentvollebregt on GitHub.

Hello, I noticed that when auto-py-to-exe creates an .exe file, it first stores it in a temporary folder before putting it in the output folder. I would like to know how to change the location of this temporary folder. Indeed, my antivirus incorrectly detects the file created in the temporary folder and quarantines it. this error results:
image
image

I could very well add an exclusion to the C: \Users\Alexa\AppData\Local\Temp\folder
but it could be dangerous for the computer. So I would like to make sure that the temporary folder is created in C: \ Users \ Alexa \ Downloads \ tempor
To avoid risks: this folder would be only devoted to auto-py-to-exe temp files. I would add an exclusion only for this folder. ?
Thanks in advance for your answer.

Originally created by @rstudiocode on GitHub (Nov 18, 2021). Original GitHub issue: https://github.com/brentvollebregt/auto-py-to-exe/issues/218 Originally assigned to: @brentvollebregt on GitHub. Hello, I noticed that when auto-py-to-exe creates an .exe file, it first stores it in a temporary folder before putting it in the output folder. I would like to know how to change the location of this temporary folder. Indeed, my antivirus incorrectly detects the file created in the temporary folder and quarantines it. this error results: image ![image](https://user-images.githubusercontent.com/63545838/142480399-4c0487ae-1074-4b01-8127-9b30372c60a0.png) I could very well add an exclusion to the C: \Users\Alexa\AppData\Local\Temp\folder but it could be dangerous for the computer. So I would like to make sure that the temporary folder is created in C: \ Users \ Alexa \ Downloads \ tempor To avoid risks: this folder would be only devoted to auto-py-to-exe temp files. I would add an exclusion only for this folder. ? Thanks in advance for your answer.
kerem 2026-02-26 12:20:48 +03:00
Author
Owner

@brentvollebregt commented on GitHub (Nov 24, 2021):

This is a pretty fair request and will be nice to get around the antivirus issues I see a lot of people having.

Passing the temporary directory as an argument will be the best option as it's usually created on startup.

<!-- gh-comment-id:977763134 --> @brentvollebregt commented on GitHub (Nov 24, 2021): This is a pretty fair request and will be nice to get around the antivirus issues I see a lot of people having. Passing the temporary directory as an argument will be the best option as it's usually created on startup.
Author
Owner

@brentvollebregt commented on GitHub (Nov 28, 2021):

@rstudiocode I've just added the argument --build-directory-override to develop. Could you checkout develop and see if it works for you? Argument details have been added to the README on the develop branch.

<!-- gh-comment-id:980841948 --> @brentvollebregt commented on GitHub (Nov 28, 2021): @rstudiocode I've just added the argument `--build-directory-override` to develop. Could you checkout develop and see if it works for you? Argument details have been added to the README on the develop branch.
Author
Owner

@brentvollebregt commented on GitHub (Dec 5, 2021):

This feature has been released in v2.12.0

<!-- gh-comment-id:986211996 --> @brentvollebregt commented on GitHub (Dec 5, 2021): This feature has been released in v2.12.0
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/auto-py-to-exe#201
No description provided.