Any way to run a .exe without complaints from Windows?

I need to write a very basic program in C to do some calculations for a colleague at work (not at all an entirely IT literate workplace) and from my experience, running any .exe in windows (7) makes it have an absolute fit, sometimes preventing it from running the program at all. Is there any way I can make the program just run without a fuss for my colleague?

EDIT: By 'have an absolute fit' I mean windows will either stop the user from running the .exe entirely, or ask for user permission x amount of times etc. It would probably be solved by turning UAC off, but trying to explain something even as simple as that down the phone probably isn't an option.


Two suggestions: a) Use static linking, try to include all exec you need to your application. Provide all dependencies that you can not link statically with your app. To check dependencies, use DependencyWalker for example.

b) Run as administrator your program on win7.

If your problem in UAC then simply arrange that your app doesn't do anything that requires administrator rights. In particular:

  • Don't write to the HKLM part of the registry.
  • Don't save files in restricted folders system32, Program Files etc.

Whatever you do don't ask users to turn off UAC and don't ask them to run as administrator.

Need Your Help

Use Mutex to synchronize C# object: “Object synchronization method was called from an unsynchronized block of code” error

c# object synchronization mutex

I have a C# application code in which I use a mutex to synchronise some code during the creation of an object. The object constructor acquires the mutex and ONLY releases it when the object is no l...

JQuery and Custom Tabs using addClass & removeClass


So I am pretty new to JQuery and just spent 5 hours getting this working. If anyone has a better approach please I would love to hear.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.