Hi,

AutoIt is a basic-like scripting environment, which exposes parts of the 
lower-level Windows API. It’s free to use, no strings attached, but not open 
source. Documentation is also quite good. Look here for running a program in a 
different user context:

https://www.autoitscript.com/autoit3/docs/functions/RunAs.htm

Once you started the program, you can identify Elements in the  GUI, fill in 
fields, click buttons etc. and interact with them via ControlClick, 
ControlCommand inside the user session. No need for a “visible” screen, like an 
RDP session.

Cheers, Sebastian

From: Bangar Milind [mailto:[email protected]]
Sent: Thursday, April 6, 2017 8:19 PM
To: Jenkins Users <[email protected]>
Cc: Sebastian Glöckler <[email protected]>
Subject: Re: Invoke Windows Installer in Interactive mode Through Jenkins

Thanks Sebastian for the pointer..

We are using Powershell remote session using WinRM service and then trying to 
run the installation interactively.

We tried with the solution provided by Benjamin in earlier post ad are able to 
install interactively. However, require a user session available. Meaning when 
I am on windows box through RDP the installation goes through , but if I 
minimise the window or disconnect, then it does not work. Any further 
configuration required for the same?

Is Autoit an open source tool?

Regards
Milind

On Thursday, 6 April 2017 09:07:53 UTC+1, Sebastian Glöckler wrote:
Hi,

we also have a windows server product which needs to be installed 
interactively. We have (click-)automated the installation process with AutoIt.
To get around the issue mentioned below, you might want to run your script in 
the context of a “real” user and load the user’s profile. CMD.exe’s “runas” 
does not let you specify the password on the command line, so it is no good for 
scripts. Maybe psexec or even a Powershell session, but I have not tried that.
As said,  an Autoit Program, run from the Jenkins slave (running as a service), 
does the trick for us.

Cheers,
Sebastian

From: [email protected]<javascript:> 
[mailto:[email protected]<javascript:>] On Behalf Of Benjamin Lau
Sent: Thursday, April 6, 2017 9:51 AM
To: Jenkins Users <[email protected]<javascript:>>
Subject: Re: Invoke Windows Installer in Interactive mode Through Jenkins

Bangar,

I'd suspect the problem is similar to the one described in this thread about 10 
days ago:
https://groups.google.com/forum/#!topic/jenkinsci-users/zzECJya_vDY

Is your jenkins slave running the agent as a service? Try running the agent as 
a non-service as slide suggested and see if that works for you.

Cheers,
Ben

On Thu, Apr 6, 2017 at 12:17 AM, Bangar Milind 
<[email protected]<javascript:>> wrote:
Hi,

We are trying to automate the deployment of a windows application in which 
Setup.exe runs a MSI.

The MSI launches in interactive mode and has fields which will be required to 
updated dynamically.

We have written a Powershell script , which works fine when running on the 
Windows app server , but doesn't  when PS is called from Jenkins using a 
Windows slave.

If anyone has an experience on the same, request some help.

Please let me know, if further information is required.,

Regards
Milind
--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected]<javascript:>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/208c57d1-462e-4102-94c6-e6833faf7f12%40googlegroups.com<https://groups.google.com/d/msgid/jenkinsci-users/208c57d1-462e-4102-94c6-e6833faf7f12%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected]<javascript:>.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/CA%2BvtdQY5-8suoTWOG43Zc7UTBkHSCwug-uHFjiuPbKZcNV_YiQ%40mail.gmail.com<https://groups.google.com/d/msgid/jenkinsci-users/CA%2BvtdQY5-8suoTWOG43Zc7UTBkHSCwug-uHFjiuPbKZcNV_YiQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/F43D44A13A035247BEDF314F8ECFF2F331F95FBC%40ctd-exchange02.
For more options, visit https://groups.google.com/d/optout.

Reply via email to