Page 2 of 2
Re: Setup.py script template
Published: May 11, 2016 - 2:59 PM
by sfonteneau
Hello,
we need the package error.
Click on your machine in the console, then on the package with the error.
You'll see the error message right below.
- Simon
Re: Setup.py script template
Published: May 11, 2016 - 3:02 PM
by so37
I'm getting this message on the console:
Code: Select all
Installing test-nuxeobrowser
Exception: Error during install of test-nuxeobrowser (=2.1.3-7): errors in packages test-nuxeobrowser
Traceback (most recent call last):
File "C:\wapt\waptservice\waptservice.py", line 2063, in run
self.running_task.run()
File "C:\wapt\waptservice\waptservice.py", line 1323, in pwrapper
return func(*arg, **kwargs)
File "C:\wapt\waptservice\waptservice.py", line 1383, in run
self._run()
File "C:\wapt\waptservice\waptservice.py", line 1807, in _run
','.join([ p[1].package for p in self.result['errors']]),
Exception: Error during install of test-nuxeobrowser (=2.1.3-7): errors in packages test-nuxeobrowser
I have nothing else
Re: Setup.py script template
Published: May 11, 2016 - 3:06 PM
by so37
I hadn't seen this message
Code: Select all
EWaptSetupException: Fatal error : msi file Nuxeo-MSIEBrowserExtension.msi /quiet /norestart not found in package
Re: Setup.py script template
Published: May 11, 2016 - 3:07 PM
by so37
He probably didn't like the argument I added to the MSI
Re: Setup.py script template
Published: May 11, 2016 - 3:19 PM
by so37
Now I'm getting this error:
Code: Select all
CalledProcessError: Command '('msiexec /norestart /q /i "Nuxeo-MSIEBrowserExtension.msi" ',)' returned non-zero exit status 1612
I've had it up to here !!
Re: Setup.py script template
Published: May 11, 2016 - 4:54 PM
by sfonteneau
The error codes are Windows errors:
MSI Error 1612: 'Installation source for this product is not available'
The error message indicates that the installation source for this product is not available.
Without using Wapt, have you tried launching it from the command line?
Code: Select all
msiexec /norestart /q /i "Nuxeo-MSIEBrowserExtension.msi"
Does the MSI work well when launched manually?
Simon
Re: Setup.py script template
Published: May 12, 2016 - 08:46
by so37
Yes, by launching this command
Code: Select all
msiexec /norestart /q /i "Nuxeo-MSIEBrowserExtension.msi"
It works, the installation goes smoothly in silent mode!
Re: Setup.py script template
Published: May 12, 2016 - 10:31 PM
by sfonteneau
It is possible that your installation does not allow installation in system account:
On your administrator machine, can you run the following command:
Code: Select all
wapt-get install --direct test-nuxeobrowser
If the installation works, you have the explanation
Simon
Re: Setup.py script template
Published: May 18, 2016 - 09:40
by so37
Code: Select all
if iswin64():
install_msi_if_needed('PXCViewer_x64.msi',key='PDF-XChange Viewer',silentflags='/quiet /norestart KEY="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" USERNAME="XXX" ORGANIZATION="XXX"',min_version='2.5.205.0',killbefore=['PDFXCview.exe'], accept_returncodes=[0, 1602, 1615, 1603], timeout=300)
install_msi_if_needed('PXCViewer_x86.msi',key='PDF-XChange Viewer',silentflags='/quiet /norestart KEY="XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXX" USERNAME="XXX" ORGANIZATION="XXX"',min_version='2.5.205.0',killbefore=['PDFXCview.exe'], accept_returncodes=[0, 1602, 1615, 1603], timeout=300)
Hello, when inserting an `install msi if needed`, can I add a `silentflags` argument like I just did, or does that only work for `install exe if needed`?
Re: Setup.py script template
Published: May 18, 2016 - 10:35
by sfonteneau
Good morning
Yes, it's possible:
https://github.com/tranquilit/WAPT/blob ... s.py#L3323
But it's not "silentflag", it's "properties" (see the function in the setuphelper above)
But the basic arguments for making the MSI silent have already been covered:
https://github.com/tranquilit/WAPT/blob ... s.py#L3363
For LibreOffice, for example:
Code: Select all
install_msi_if_needed(msi,killbefore=['soffice.bin'],timeout=1200,properties='SELECT_WORD':1,'SELECT_EXCEL':1,'SELECT_POWERPOINT':1,'CREATEDESKTOPLINK':0,'RebootYesNo':'No','ALLUSER':1,'ISCHECKFORPRODUCTUPDATES':0,'QUICKSTART':0)
Simon