On 26/06/2023 06:17, Diegam wrote:
> The installer of my app is being detected as a virus by Bitdefender and
> Google according to Virus Total. I have tried using "none" as the
> compression algorithm but the problem continues. I uploaded my
> compressed project without the installer to Virus Total and it does not
> detect any viruses, so I assume that the problem is with the installer.
As Eivind already noted, this is due to the AV vendors being
insufficiently careful when creating virus signatures, and capturing
part of the install/uninstall engine of Inno that's common to all apps
using Inno (including the malware). There isn't really any solution to
this other than reporting it as a false positive to the offending vendors.
> My application installs some files to AppData. I don't know if it's
> related, but it's worth mentioning
Separately: you should not rely on installing anything to {user*} paths
if you have a normal PrivilegesRequired=admin installation.
To put that a different way: your application is *required* (by
Microsoft) to still operate correctly if there is nothing at all
installed at installation time in the {user*} paths.
As such, any such "installation" should actually be performed by your
app (not the installer) when it starts up and finds the files are
missing, either from internal defaults or from read-only templates
installed to {app} or {common*} paths.
It's easy to test this: simply install your app using one user account
and then try to run it from a different user account without re-running
the installer.