Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8446783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:00:46+00:00 2026-06-10T10:00:46+00:00

I have programs packed by pyinstaller with –onefile mode on windows. one for main

  • 0

I have programs packed by pyinstaller with –onefile mode on windows. one for main process and one for toolkit, and I want update them on the fly.

I plan the update flow like below:

  • When main process exe startup, check if there a patch file. If does, copy toolkit to update.exe, and start “update.exe upgrade” on detached mode. The main process quickly quit and let the update.exe do its job.
  • update.exe is never in the package, so it can do the replace job well.
  • after that, update.exe start the main process exe, also detached mode.

I think it should work, but the program doesn’t start another one.

Codes to start detached process:

subprocess.Popen(command, stdin=None, stdout=None, stderr=None, close_fds=True,
               creationflags=0x00000008)

The codes works when start a pyinstaller exe by python script, and start a normal program like memcached.exe by a pyinstaller exe. It seems just program packed by pyinstaller can’t start another one.

Is there a way to fix it, or other solutions for update

updated:
This is a bug in pyinstaller2.0, it has been fixed in the latest dev branch.
http://www.pyinstaller.org/ticket/569

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T10:00:47+00:00Added an answer on June 10, 2026 at 10:00 am

    I had the same error with two PyInstaller applications created with Version 2.0 (app1 must run app2)

    I tried os.system, subprocess.call and os.startfile from app1 to run app2, all of them fail and can’t fetch information about the problem.

    Finally, I rebuilt app1 with PyInstaller 1.5.1 and could run app2 (built with V 2.0) without problems.

    I think to report the bug to PyInstaller Team.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have several programs I want to uninstall from my computer (Windows 7 64bit).
I have two programs: one CLI program, and one GUI. The GUI is a
I have two begininer programs, both using the 'while' function, one works correctly, and
I have a challenging situation; we will have programs on Mac, PC, iOS and
Many programs have created a huge amount of swap files. They annoy me, because
I have two programs, the first is a producer: public class Producer { public
I have two programs, Writer and Reader. I have a FIFO from Writer to
I've been programming with Qt libraries for 3 years. All programs have been designed
I have several Delphi programs that maintain connections to a database (some Oracle, some
I am currently have a small program in Common Lisp, which I want to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.