I'm trying to install Python on Windows using the 2.7.3 .msi file from Python.org. This command line works from a command prompt on Windows XP.

start /wait msiexec /qn /L*v "C:\users\tahoar\Temp\python-2.7.log" /I "C:\users\tahoar\Temp\python-2.7.3.msi" ALLUSERS=1 REBOOT=ReallySuppress

It fails using <runProgram>. Any suggestions?

<runProgram>
    <program>start</program>
    <programArguments>/wait msiexec /qn /L*v "${system_temp_directory}\python-2.7.log" /I "${python_setup_cmd}" ALLUSERS=1 REBOOT=ReallySuppress</programArguments>
    <show>0</show>
</runProgram>

Here is the relevant part of InstallBuilder output log:

Executing start /wait msiexec /qn /L*v "C:\users\tahoar\Temp\python-2.7.log" /I "C:\users\tahoar\Temp\python-2.7.3.msi" ALLUSERS=1 REBOOT=ReallySuppress
Script exit code:

Script output:

Script stderr:

Unknown error while running start /wait msiexec /qn /L*v "C:\users\tahoar\Temp\python-2.7.log" /I "C:\users\tahoar\Temp\python-2.7.3.msi" ALLUSERS=1 REBOOT=ReallySuppress
Problem running post-install step. Installation may not complete correctly
 Unknown error while running start /wait msiexec /qn /L*v "C:\users\tahoar\Temp\python-2.7.log" /I "C:\users\tahoar\Temp\python-2.7.3.msi" ALLUSERS=1 REBOOT=ReallySuppress
Creating Shortcut for Uninstall Corpus Filtergraph
Creating Uninstaller
Creating uninstaller 25%
Creating uninstaller 50%
Creating uninstaller 75%
Creating uninstaller 100%
Installation completed
Log finished 05/13/2012 at 22:49:28

asked 13 May '12, 12:03

tahoar's gravatar image

tahoar
201313236
accept rate: 42%


Found the solution. Without InstallBuilder, I have to use the "start /wait" command to force the command prompt to wait until msiexec finishes. With InstallBuilder, this is not necessary. So, this code works:

<runProgram>
    <program>msiexec</program>
    <programArguments>/qn /L*v "C:\users\tahoar\Temp\python-2.7.log" /I "C:\users\tahoar\Temp\python-2.7.3.msi" ALLUSERS=1 REBOOT=ReallySuppress</programArguments>
    <show>0</show>
</runProgram>
link

answered 13 May '12, 21:09

tahoar's gravatar image

tahoar
201313236
accept rate: 42%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×176
×54
×8

Asked: 13 May '12, 12:03

Seen: 4,458 times

Last updated: 13 May '12, 21:09