Page 1 of 1
Installing the package with AutoIt
Published: August 14, 2017 - 09:04
by Mathieu
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.
Re: Installing a package with AutoIt
Published: August 15, 2017 - 7:53 PM
by sfonteneau
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
Re: Installing a package with AutoIt
Published: October 13, 2017 - 2:48 PM
by Mathieu
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,
Re: Installing a package with AutoIt
Published: October 13, 2017 - 2:50 PM
by Mathieu
Hello,
I'm still stuck trying to use session-setup, can you help please?
Re: Installing a package with AutoIt
Published: October 14, 2017 - 3:39 PM
by sfonteneau
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.
Re: Installing a package with AutoIt
Published: October 16, 2017 - 5:33 PM
by Floflobel
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,
Re: Installing a package with AutoIt
Published: October 16, 2017 - 11:43 PM
by sfonteneau
Good question!
We have to try it!