windows distribution support

1 view
Skip to first unread message

Donkyhotay

unread,
Feb 19, 2010, 9:36:26 AM2/19/10
to project-tether
Currently I'm writing a script that will help automate the process of
publishing/distributing MoonPy for when version 0.8.00 comes out. When
done it will create a source archive, a debian package, and a RPM
package. Although great for linux users this kind of leaves windows
and osX users having to get the source package, download/install all
the dependencies, then run the program. I'd prefer to make things a
little easier. I was looking at using py2exe and py2app however
programs created by py2exe requires a copyrighted .dll from MS to
work. py2app has almost no documentation and I have no access to an
osX system anyways so someone else would have to figure it out and do
it for me. I'm wondering if there are any alternatives I've missed in
making MoonPy easier to install. I have considered creating install
scripts that checks for all the dependencies and helps the user
download/install them if they're missing, while I could probably
manage this for osX (since it uses bash like linux), I haven't written
a windows .bat script since win95 and I don't remember that much, and
what I do remember is that there isn't a lot of tools compared to
bash. Anyone have any other ideas?

O.I.B.

unread,
Feb 19, 2010, 1:31:51 PM2/19/10
to project-tether
You may use autoit instead of batch scripting, its a bit more powerful
(and open-source) but only for windows.
Here is a bit of code in autoit that can checks if python, pygame and
pill folder exist in C:
if it doesn't exist it will bring up a download window.
http://www.moonbase.pastebay.com/86738
If you use COM you can download the files whit the script itself (that
opens the possibility to auto install everything)
I don't really know how to work whit them but what follows is an
example:

;next lines show how to het index.html and store it in $HTMLSource
$oHTTP = ObjCreate("winhttp.winhttprequest.5.1")
$oHTTP.Open("GET","http://www.AutoItScript.com")
$oHTTP.Send()
$HTMLSource = $oHTTP.Responsetext

Donkyhotay

unread,
Feb 19, 2010, 3:04:40 PM2/19/10
to project-tether
Thats exactly what I was looking for! A scripting language for windows
that is capable of compiling a standalone .exe file, no
proprietary .dll's, no dependencies. The fact it's windows only is a
little problematic but I really only need a script to check for python
and download/install it if it's missing. From there I can do
everything else I need with python itself. I think what I'll do is use
autoit to create a standalone .exe that checks for python, downloads
and installs it if it's missing, then passes control to a python
script that will check for remaining dependences and download/install
any that are missing. This way if dependencies change I can just
update the python scripts rather then recompiling the entire
executable whenever I can borrow a friends computer.

http://www.autoitscript.com/autoit3/index.shtml

On Feb 19, 10:31 am, "O.I.B." <stijndw1...@gmail.com> wrote:
> You may use autoit instead of batch scripting, its a bit more powerful
> (and open-source) but only for windows.
> Here is a bit of code in autoit that can checks if python, pygame and
> pill folder exist in C:

> if it doesn't exist it will bring up a download window.http://www.moonbase.pastebay.com/86738

> > bash. Anyone have any other ideas?- Hide quoted text -
>
> - Show quoted text -

Reply all
Reply to author
Forward
0 new messages