Book a Demo

Author Topic: Completely suppress EA UI when automating from C#?  (Read 2879 times)

eru

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Completely suppress EA UI when automating from C#?
« on: January 20, 2009, 08:10:44 am »
Hi,

I've created a service in C# that runs in the background and creates an updated HTML report every 30 minutes. How can I suppress the EA "Import Source Directory" window that appears every time Project.ImportDirectory() is called?

I've tried calling Project.ShowWindow(0), but the windows still appear.

Thanks,
Emory

eru

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Re: Completely suppress EA UI when automating from
« Reply #1 on: January 21, 2009, 01:14:16 pm »
Ok, I've figured it out.

Now that I'm not in trial mode anymore, I made the C# Windows Service serviceProcessInstaller1 class use "LocalSystem" for the "Account" class member property.

After the Service is installed, under the Log On tab of the Service Properties dialog, I set the account to log on under an account that has domain network access. That way, I get the best of both worlds of having full local privileges while still being able to publish to a Windows UNC network share (e.g. \\network\share).

Set up in this way, the EA windows do not appear and everything runs smoothly in the background.