Re: Run WinForms Gui app as standard user
Adam Bruss <[email protected]> Sat, 19 May 2012 21:23:16 +0000
| Newsgroups | gmane.comp.java.cruise-control.user |
|---|---|
| Message-ID | <[email protected]> |
CruiseControl is running as a service under an admin user. That user could be changed to a normal user as you mentioned. The GUI app is being stopped before it reaches our code. The GUI app runs successfully as a normal user outside of Cruisecontrol so the problem is the CruiseControl environment, specifically the non-interactive desktop session it uses on Windows. I think best option is to try running the CruiseControl service as a standard user and then using psexec to do tasks that need admin rights like installing our software. Thanks, Adam Adam Bruss Senior Development Engineer AWR Corporation 11520 N. Port Washington Rd., Suite 201 Mequon, WI 53092 USA P: 1.262.240.0291 x104 F: 1.262.240.0294 E: [email protected] W: http://www.awrcorp.com<http://www.awrcorp.com/> From: Julian Simpson [mailto:[email protected]] Sent: Saturday, May 19, 2012 3:49 AM To: [email protected] Subject: Re: [Cruisecontrol-user] Run WinForms Gui app as standard user Are you running CruiseControl from a service? I think you can change the user that it runs as. Otherwise I guess you need to sniff out what the GUI app is trying to access. cheers J. On Monday, 14 May 2012, Adam Bruss wrote: Hello, I'm getting this error message from a child program ran by ant in a cruisecontrol build. "The application failed to initialize properly. Usually indicates that the application has been launched on a Desktop to which current user has no access rights. Another possible cause is that either gdi32.dll or user32.dll has failed to initialize." The flow of how the software is run is as follows: Java cruisecontrol -> ant -> ant exec task -> c++ console application -> PsExec -> GUI application(software) The GUI application is ran with PsExec as a standard user for testing purposes. The software runs successfully when ran by the console application and psexec from the command line. The problem starts when running through Cruisecontrol. The error message comes from the GUI application early before any of our code is executed. Has anyone tried to do something like this before or have any ideas for a solution? The main thing I need to do is run a Windows Forms application as a standard user from cruisecontrol. The Windows Forms application runs successfully as admin. Thanks, -Adam ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Cruisecontrol-user mailing list [email protected]<javascript:;> https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user -- Julian Simpson The Build Doctor Ltd. http://www.build-doctor.com [email protected]<mailto:[email protected]> (+44) 207 183 0323 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Cruisecontrol-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/cruisecontrol-user