Installing the package with AutoIt

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
Locked
User avatar
Mathieu
Messages: 91
Registration: August 18, 2016 - 10:24

August 14, 2017 - 09:04

Hello,

I'm currently testing WAPT for a future (I hope) integration into my company. I'm having trouble creating packages with AutoIt. We have three or four major applications that we launch with AutoIt, and we don't have any other solution for a silent installation.

During the testing phase, I can successfully launch the installation using PyScripter, but when I upload the package and perform the installation via the console, nothing happens.

I would like to know if you have a solution.

Thank you.
- WAPT 2.2.3.12463 Enterprise
- Debian 9.9
- Windows 10 21H2 & Windows 11 22h2
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

August 15, 2017 - 7:53 PM

I assume your AutoIt emulates keyboard and mouse actions?

The problem stems from the fact that Wapt is running as the system account.

Take a look here: https://social.technet.microsoft.com/Fo ... mgrgeneral

Perhaps you could try testing with a psexec command?

Alternatively, the other solution is to launch the installation in session-setup. (However, you'll need to configure the AutoIt installer to launch as runas!)


Simon
User avatar
Mathieu
Messages: 91
Registration: August 18, 2016 - 10:24

October 13, 2017 - 2:48 PM

I tested with psexec and got the same result. Installing with PyScrypter launches it, but once on the server, nothing happens.

Can you help me with
Alternatively, the other solution is to launch the installation in session-setup mode. (However, you will need to configure the AutoIt installer to launch in runas mode!)
because I don't quite see how to integrate it into the script,
- WAPT 2.2.3.12463 Enterprise
- Debian 9.9
- Windows 10 21H2 & Windows 11 22h2
User avatar
Mathieu
Messages: 91
Registration: August 18, 2016 - 10:24

October 13, 2017 - 2:50 PM

Hello,

I'm still stuck trying to use session-setup, can you help please?
- WAPT 2.2.3.12463 Enterprise
- Debian 9.9
- Windows 10 21H2 & Windows 11 22h2
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 14, 2017 - 3:39 PM

The solution I envisioned is this: (I know it's possible with AutoIt)

Create an installer using the runas system integrated into AutoIt (administrator username and password embedded in AutoIt).

This way, when the installation is launched with a user account, it's still executed with administrator privileges. If the installation is launched in a setup session, you'll get keyboard and mouse emulation.

However, you'll need to display a small popup to the user beforehand, telling them not to touch their keyboard or mouse.
Once the user clicks OK, you can launch the software installation with keyboard emulation.
Once the installation is complete, you can display another popup informing them that they can use their computer again.

It's not the cleanest solution, but it can work with AutoIt and keyboard emulation in general.

For curious free software enthusiasts, the method is also available by combining CPAU and AutoHotkey.
Floflobel
Messages: 135
Registration: Oct 15, 2015 - 5:32 p.m.

October 16, 2017 - 5:33 PM

Thank you for this valuable information, sfonteneau.

I do have a small question, though: is it possible to launch the package installation during shutdown using wapt-exit.exe? Since the session is closing, keyboard and mouse input might not work.

Sincerely,
Last edited by Floflobel on January 12, 2018 - 6:18 PM, edited 1 time.
User avatar
sfonteneau
WAPT Expert
Messages: 2318
Registered: July 10, 2014 - 11:52 PM
Contact :

October 16, 2017 - 11:43 PM

Good question!

We have to try it!
Locked