Re: Run WinForms Gui app as standard user

Julian Simpson <[email protected]> Sat, 19 May 2012 09:48:40 +0100
Newsgroups gmane.comp.java.cruise-control.user
Message-ID <CANwBkz_ZNxAkVxyCjZ936vz7D5jkfstGY3yshCuBkHNr4VBOJA@mail.gmail.com>
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]
(+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