Page 1 of 2

run application as Admin

Published: May 2, 2016 - 8:23 PM
by Rylo
Hello,

I'm currently experimenting with WAPT. I can create packages except for one application;
I know how to install it silently, but only in admin command prompt mode. How can I specify this in the .py file? :?:
If anyone can help, that would be great.

Thanks in advance.

Re: Running application as administrator

Published: May 3, 2016 - 8:49 AM
by sfonteneau
Normally, all of this is handled automatically.

If the installation is launched from the console, it will be done using the system account.
Therefore, the installer will have full privileges.

If the installation is done via the command line (wapt-get install tis-monsoft), and the user is not an administrator, a username and password will be required to access the Wapt service, which uses the system account.

Simon

Re: Running application as administrator

Published: May 3, 2016 - 10:28 AM
by Rylo
Thank you for this answer, if that's it I don't see here is the log



installing qlikview
2016-04-29 11:28:21,420 CRITICAL Fatal error in install script: CalledProcessError: Command '('"QlikViewDesktop_x64Setup.exe" /S /v/qn',)' returned non-zero exit status 1619:
Traceback (most recent call last):
File "C:\wapt\common.py", line 3178, in install_wapt
exitstatus = setup.install()
File "c:\windows\temp\waptkaqffm\setup.py", line 8, in install
run(r'"QlikViewDesktop_x64Setup.exe" /S /v/qn')
File "C:\wapt\common.py", line 3025, in run
return setuphelpers.run(*arg,pidlist=self.pidlist,**args)
File "C:\wapt\setuphelpers.py", line 1020, in run
raise subprocess.CalledProcessError(proc.returncode,cmd,''.join(output))
CalledProcessError: Command '('"QlikViewDesktop_x64Setup.exe" /S /v/qn',)' returned non-zero exit status 1619

2016-04-29 11:28:21,467 CRITICAL Package qlikview (=11.0.11414.0-0) not installed due to errors: CalledProcessError: Command '('"QlikViewDesktop_x64Setup.exe" /S /v/qn',)' returned non-zero exit status 1619
2016-04-29 11:28:21,467 CRITICAL Exception: Error during install of qlikview (=11.0.11414.0-0): errors in packages qlikview
2016-04-29 11:28:23,217 ERROR Traceback (most recent call last):
File "C:\wapt\lib\site-packages\rocket\main.py", line 143, in start
time.sleep(THREAD_STOP_CHECK_INTERVAL)
IOError: [Errno 4] Interrupted function call

Re: Running application as administrator

Published: May 3, 2016 - 10:41
by sfonteneau
This is error 1619 (Windows error)

Does it work when you run your command as administrator?

Code: Select all

QlikViewDesktop_x64Setup.exe" /S /v/qn
Simon

Re: Running application as administrator

Published: May 3, 2016 - 10:44 AM
by Rylo
Yes, running cmd as admin works perfectly, hence my question about admin rights.
Even when I use runas it works, I don't understand. :?: :!:

Re: Running application as administrator

Published: May 3, 2016 - 2:26 PM
by sfonteneau
It is possible that your application does not support installation under a system account

You can make a

Code: Select all

wapt-get install tis-monsoft
with an administrator account (right-click on cmd, run as administrator)

If the installation works via the command line, that would explain the problem

Simon

Re: Running application as administrator

Published: May 3, 2016 - 3:39 PM
by Rylo
Yes, that works, well, I'll have to find an alternative

Re: Running application as administrator

Published: May 3, 2016 - 3:48 PM
by sfonteneau

Re: Running application as administrator

Published: May 3, 2016 - 4:04 PM
by so37
Is there a way to ensure that a domain admin launches the installation and not the system in WaptConsole?

Re: Running application as administrator

Published: May 3, 2016 - 4:37 PM
by Rylo
Thanks for the link, but I had already looked at that information without success.
I solved my problem using Fog, which manages application deployment.

Thanks again for your help.