run application as Admin

Questions about WAPT Packaging / Requests and help regarding Wapt packages.
Forum Rules
Community Forum Rules
* English support on www.reddit.com/r/wapt
* French community support is available on this forum
* Please prefix the topic title with [RESOLVED] if it is resolved.
* Please do not edit a topic that is tagged [RESOLVED]. Open a new topic referencing the old one.
* Specify the installed WAPT version, full version, and build number (2.2.1.11957 / 2.2.2.12337 / etc.) as well as the Enterprise/Discovery edition.
* Versions 1.8.2 and earlier are no longer supported. The only questions accepted regarding version 1.8.2 are related to upgrading to a supported version (2.1, 2.2, etc.).
* Specify the server OS (Linux/Windows) and version (Debian Buster/Bullseye - CentOS 7 - Windows Server 2012/2016/2019).
* Specify the OS of the administration/package creation machine and the machine with the problematic agent, if applicable (Windows 7/10/11/Debian 11/etc.).
* Avoid asking multiple questions when opening a topic, otherwise it may be ignored. If there are multiple topics, open separate topics, preferably one after the other and not all at the same time (i.e., do not spam the forum).
* Include code snippets, screenshots, and other images directly in the post. Links to Pastebin, Bitly, and other third-party sites will be systematically removed.
* As with any community forum, support is provided voluntarily by members. If you require commercial support, you can contact Tranquil IT's sales department at 02.40.97.57.55
rylo
Messages: 8
Registration: Apr 26, 2016 - 10:14

May 2, 2016 - 8:23 PM

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.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 3, 2016 - 08:49

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
rylo
Messages: 8
Registration: Apr 26, 2016 - 10:14

May 3, 2016 - 10:28

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
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 3, 2016 - 10:41

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
rylo
Messages: 8
Registration: Apr 26, 2016 - 10:14

May 3, 2016 - 10:44

Yes, running cmd as admin works perfectly, hence my question about admin rights.
Even when I use runas it works, I don't understand. :?: :!:
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 3, 2016 - 2:26 PM

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
rylo
Messages: 8
Registration: Apr 26, 2016 - 10:14

May 3, 2016 - 3:39 PM

Yes, that works, well, I'll have to find an alternative
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

May 3, 2016 - 3:48 PM

so37
Messages: 23
Registration: Apr 10, 2016 - 1:43 p.m.

May 3, 2016 - 4:04 PM

Is there a way to ensure that a domain admin launches the installation and not the system in WaptConsole?
rylo
Messages: 8
Registration: Apr 26, 2016 - 10:14

May 3, 2016 - 4:37 PM

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.
Locked