install in cmd with no interaction
All-In-One PyGI/PyGObject for Windows Installer
Status: Abandoned
Brought to you by:
tumagonx
I want to install pygobject in appveyor for packaging my app with pyinstaller
I found that setup.bat can take arguments.
I launch setup.bat mypathtopython34 GTK
and I have set sourcepath to pygi-aio directory
but I get errors (log are in attachment)
is there a way to do that. Have you an idea what am doing wrong.
the code in appveyor:
mklink "C:\Program Files\7-Zip\7zr.exe" "C:\Program Files\7-Zip\7z.exe"
appveyor DownloadFile "https://sourceforge.net/projects/pygobjectwin32/files/pygi-aio-3.18.2_rev12-setup_549872deadabb77a91efbc56c50fe15f969e5681.exe/download" -FileName "pygi-aio-setup.exe"
mkdir pygi-aio-setup
cd pygi-aio-setup
set SOURCEPATH=%cd%
7z x ..\pygi-aio-setup.exe
cd setup
rm 7zr.exe
7z x ..\setup.exe
set GIR=True
setup.bat C:\Python34 GTK
mklink /D C:\Python34\share C:\Python34\Lib\site-packages\gnome\share
cd ..\..
I think the unintended arguments is for setup.exe not for setup.bat directly.
(You could see in zsetup.txt there is some preparation)
passing argument to setup.exe has no effect.
But I finally have something that works.
I launch setup.bat with rcmd.exe:
rcmd.exe /c setup.bat C:\Python34 GTK
there is still some warning about file not found etc... (but I believe the same are raised in the GUI application) and it exits correctly.
if some people are interested the whole script for appveyor is:
I don't know how to close the ticket
Last edit: thiolliere 2017-05-15
Glad you work it out, took me a while to understand why you try to do it that way :)