471,578 Members | 1,513 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,578 software developers and data experts.

Want to perform unattended installation of SW using python

Hi,

I'm trying to automate an installation of some SW that is installed on
Windows (you know - 'Start' ==> 'Next' ==> 'Next' ==> 'Finish' kind of
installation). Is ther any way to perform that using python?

Thank you.

tommy

Nov 22 '05 #1
4 1678
aum
On Sun, 13 Nov 2005 02:57:04 -0800, 28tommy wrote:
Hi,

I'm trying to automate an installation of some SW that is installed on
Windows (you know - 'Start' ==> 'Next' ==> 'Next' ==> 'Finish' kind of
installation). Is ther any way to perform that using python?


Quick answer is yes, very much so. What /can't/ you do in python? :)

I presume that by 'start -> next -> next' you're referring to
'installation wizards'. You can write those in python, using any of the
available GUI programming libraries, such as Tkinter, wxPython, PyFLTK,
FoxPY, PyQt or whatever appeals. PyFLTK and wxPython have Wizard widgets
built in, and quite likely PyQt does as well.

--
Cheers
aum
Nov 22 '05 #2
Hi,

first of all- thanks for the quick answer.
You presumed correctly, but unfortunately, I Don't have control of the
preparation process of the package, so I get it as is. I just need to
answer it's questions on each screen of the wizard...

10x again
tommy

Nov 22 '05 #3
28tommy wrote:
I'm trying to automate an installation of some SW that is installed on
Windows (you know - 'Start' ==> 'Next' ==> 'Next' ==> 'Finish' kind of
installation). Is ther any way to perform that using python?


While that is possible in Python, it is very tedious to do: you
essentially have to generate mouse clicks for the application, using
the Win32 API.

Most packaging tools provide some support for unattended installation,
so I would rather research what options to pass to the installer to
make it non-interactive.

Regards,
Martin
Nov 22 '05 #4
Use AutoIt3 for it and be happy:
http://www.autoitscript.com/autoit3/.
And if you need Python to be involved in this process, just write out the
AutoIt script from Python and then run the AutoIt script from Python, what
makes you twice that happy.
If you want, you can reinvent the wheel using Python ctypes and the
Win32 API, but what for, if AutoIt is already there and has done it
all in an excellent way?

Claudio

"28tommy" <28*****@gmail.com> schrieb im Newsbeitrag
news:11**********************@o13g2000cwo.googlegr oups.com...
Hi,

first of all- thanks for the quick answer.
You presumed correctly, but unfortunately, I Don't have control of the
preparation process of the package, so I get it as is. I just need to
answer it's questions on each screen of the wizard...

10x again
tommy

Nov 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by The_Incubator | last post: by
5 posts views Thread by lyuan | last post: by
5 posts views Thread by Varun Hiremath | last post: by
reply views Thread by ric_deez | last post: by
29 posts views Thread by 63q2o4i02 | last post: by
1 post views Thread by beliavsky | last post: by
Chittaranjan
3 posts views Thread by Chittaranjan | last post: by
2 posts views Thread by Holger | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by lumer26 | last post: by
reply views Thread by Vinnie | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.