<p>Regarding the same program as <a href="https://stackoverflow.com/questions/20061/store-data-from-a-c-application">my question a few minutes ago</a>... I added a setup project and built an MSI for the program (just to see if I could figure it out) and it works great except for one thing.  When I tried to install it on my parent's laptop, their antivirus (the free Avast Home Edition) set off an alarm and accused my setup.exe of being a Trojan.</p>

<p>Does anyone have any idea why this would be happening and how I can fix it?</p>

[{'answer_id': 20177, 'author': 'Greg Hurlman', 'author_id': 35, 'author_profile': 'https://Stackoverflow.com/users/35', 'pm_score': -1, 'selected': False, 'text': '<p>The very first thing to do would be to scan your build PC for viruses.</p>\n'}, {'answer_id': 20181, 'author': 'jsight', 'author_id': 1432, 'author_profile': 'https://Stackoverflow.com/users/1432', 'pm_score': 3, 'selected': True, 'text': '<p>Indeed, boot from a clean CD (use a known good machine to build <a href="http://nu2.nu/pebuilder/" rel="nofollow noreferrer">BartPE</a> or something similar) and scan your machine thoroughly.  Another good thing to check, though, would be exactly which virus Avast! thinks your program is.  Once you know that, you should be able to look it up in one of the virus databases and insure that your software can\'t contain it.</p>\n\n<p>The odds are that Avast! is just getting a false positive for some reason, and I don\'t know that there\'s much you can do about that other than contacting Avast! and hoping for a reply.</p>\n'}, {'answer_id': 20229, 'author': 'Chris Miller', 'author_id': 206, 'author_profile': 'https://Stackoverflow.com/users/206', 'pm_score': 1, 'selected': False, 'text': '<p>I would do what jsight suggested and make sure that your machine did not have a virus.  I would also submit the .msi file to <a href="http://onlinescan.avast.com/" rel="nofollow noreferrer" title="avast! Online Scanner">Avast\'s online scanner</a> and see what they identified as being in your package.  If that reports your file as containing a trojan, contact Avast and ask them to verify that your .msi package does contain a trojan.  </p>\n\n<p>If it doesn\'t contain a trojan, find out from Avast what triggered their scanner.  There may be something in your code that matches a pattern that Avast looks for,  They may be able to adjust their pattern to ignore your file or you could tweak your code so that it doesn\'t trigger their scanner.</p>\n'}, {'answer_id': 20234, 'author': 'jl23x', 'author_id': 2143, 'author_profile': 'https://Stackoverflow.com/users/2143', 'pm_score': 0, 'selected': False, 'text': '<p>I don’t know “Avast”, but in Kaspersky if the configuration is set to high almost every installer fires an alarm (iTunes, Windows Update, everything) especially if the installer modify some registry key or open a port.\nIf avast checks for behavior and your program open a port probably that’s be the cause.</p>\n'}, {'answer_id': 20238, 'author': 'DavidWhitney', 'author_id': 1297, 'author_profile': 'https://Stackoverflow.com/users/1297', 'pm_score': 0, 'selected': False, 'text': '<p>Rebuild the setup file, check the exact file size.\nCheck the exact file size of the "suspected" setup file.</p>\n\n<p>If the source code hasn\'t changed and the two file sizes are different, there\'s a pretty good chance it got contaminated in transit.</p>\n\n<p>I\'d do that as a bit of a sanity check first.</p>\n'}]
['https://Stackoverflow.com/questions/20168', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/271/']