When I try to include a post-install script in my MSI built with
bdist_msi, it seem to be included and unpacked properly, but it doesn't
run successfully.  Here's what's in the script (after unpacking):


#!c:\Python26\python.exe

# do nothing much
import sys, os, time
print "Hello, World"

time.sleep(10)
sys.exit(0)


And here's what I get in my install log (generated with
"msiexec /i foo.msi /L*v foo.log"):


Action 18:35:46: install_script. 
Action start 18:35:46: install_script.
MSI (s) (40:E0) [18:35:46:882]: Note: 1: 1722 2: install_script 3: 
C:\Python26\\python.exe 4: C:\Python26\Scripts\foo-install-script.py 
MSI (s) (40:E0) [18:35:46:882]: Note: 1: 2262 2: Error 3: -2147287038 
MSI (c) (FC:78) [18:35:46:902]: Note: 1: 2262 2: Error 3: -2147287038 
DEBUG: Error 2835:  The control ErrorIcon was not found on dialog ErrorDlg
The installer has encountered an unexpected error installing this package. This 
may indicate a problem with this package. The error code is 2835. The arguments 
are: ErrorIcon, ErrorDlg, 
Error 1722. There is a problem with this Windows Installer package. A program 
run as part of the setup did not finish as expected. Contact your support 
personnel or package vendor.  Action install_script, location: 
C:\Python26\\python.exe, command: C:\Python26\Scripts\foo-install-script.py 
MSI (s) (40:E0) [18:35:50:978]: Note: 1: 2262 2: Error 3: -2147287038 


Any ideas?  What's a postinstall script supposed to return or exit with
to indicate success or failure, anyway?

What does "The control ErrorIcon was not found on dialog ErrorDlg" mean?

Bill
_______________________________________________
Distutils-SIG maillist  -  Distutils-SIG@python.org
http://mail.python.org/mailman/listinfo/distutils-sig

Reply via email to