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

  • SEARCH
  • Home
  • 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 8018285
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T21:05:49+00:00 2026-06-04T21:05:49+00:00

Ok, so I want to have a script that will run an install process.

  • 0

Ok, so I want to have a script that will run an install process. One of the parts of this is installing Microsoft Office products. I want to launch a Microsoft installer and then programmatically (currently using the Python library ‘Pywinauto’) insert keys and press buttons.

However, the program stops executing when it reaches the launch of the Office installer, and only resumes once it closes.

Is there anyway to have like, two separate “paths” the program takes, at the same time? Launch the Office installer and while that is still open, have another path insert the correct code into it?

EDIT: Here’s some pseudocode, I figured it might end up being helpful.

if x == blah:
    Path 1:
    subprocess.call("installer.exe")
    Path 2 (at exactly the same moment):
    pywinautoify-insert serial key, clicky buttons
    Both end at the same time, merge back into standard program code
  • 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-04T21:05:50+00:00Added an answer on June 4, 2026 at 9:05 pm

    If you just need to spawn a process without waiting for it you can simply use os.spawnl with the os.P_NOWAIT flag.

    But the fundamental error is trying to automate an installation process in this way. Almost all installers (especially if they are installers for “big” products) allow silent, automated installation to simplify the life of system administrators. The usual switch for silent installs is /q or -q, and you often can specify the settings for the installation in some way (with a special configuration file or with an MSI transform, for example).

    In particular, for Office 2007 and 2010 you can read here and here.

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

Sidebar

Related Questions

I have created one ruby script that I want to run with some flags
I have this script that collects data from users and I want to check
I have a Iron Python script that I want to run and then have
I want to run a cron job every minute that will launch a script.
I have a script that I want to exit early under some condition: if
I have a script that creates a random string and I want to turn
I have a script that uses BeautifulSoup that I want to make into a
I have a script that create a new div element. Then, I want to
I have a python script that want to ping a few (quite a few!)
I have a php script that is running in CLI and 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.