Prevent the warning of "this file can harm your computer"?

Dear,
when a user download my application, a security warning window appears indicates that this software my harm his PC.
How to prevent this from appearing?
Thx
hassanayoub85Asked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
DhaestConnect With a Mentor Commented:
Like bigeven2002 already mentioned, the only way to overcome is to digital sign your app.

Code Signing – It’s Cheaper and Easier than You Thought
http://www.wintellect.com/cs/blogs/jrobbins/archive/2007/12/21/code-signing-it-s-cheaper-and-easier-than-you-thought.aspx

Authenticode Sign Your Application
http://msdn.microsoft.com/en-us/library/bb530410.aspx#vistauac_topic6h

Authoring a Fully Verified Signed Installation
http://msdn.microsoft.com/en-us/library/aa367762(VS.85).aspx
0
 
bigeven2002Connect With a Mentor Commented:
I don't think you can without getting a digital signature for your application.

http://msdn.microsoft.com/en-us/library/ms537361%28v=vs.85%29.aspx

Also, this may have worked in XP, but not sure for Vista and 7, but after downloading your app to a client machine, they can right-click on the app and go to Properties.  There is a button there at the bottom of the General tab called "Unblock".  Doing this may remove the warning.
0
 
hassanayoub85Author Commented:
As I understood from you guys, there is no other solution to prevent this security risk else in signing the assemblies, right?
If so, so how the viruses and Trojans skip this security warning?
Thx
0
 
bigeven2002Connect With a Mentor Commented:
The viruses and trojans tend to exploit vulnerabilities in the operating system, thus using security flaws to bypass those warnings illegally.
0
All Courses

From novice to tech pro — start learning today.