我使用Inno Setup为我的应用程序创建了一个设置。该问题是,当我尝试执行设置或通过电子邮件发送设置时,它被认为是病毒...
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
[Setup]
; NOTE: The value of AppId uniquely identifies this application.
; Do not use the same AppId value in installers for other applications.
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
AppId={{F6D8837D-F542-4326-A245-4B64AE8E8CD0}
AppName=S24
AppVersion=1.0
;AppVerName=S24 1.0
AppPublisher=Pierre Lagoutte
AppPublisherURL=https://s24.plagoutte.eu/
AppSupportURL=https://s24.plagoutte.eu/
AppUpdatesURL=https://s24.plagoutte.eu/
DefaultDirName={pf}\S24
DefaultGroupName=S24
AllowNoIcons=yes
LicenseFile=C:\Users\Pierre\Documents\Qt\build-S24-Desktop_Qt_5_7_0_MSVC2013_32bit-Release\release\licence.txt
OutputDir=C:\Users\Pierre\Documents\Qt\S24\setup\1.0
OutputBaseFilename=S24-Setup-22062018
Compression=lzma
SolidCompression=yes
[Languages]
Name: "english"; MessagesFile: "compiler:Default.isl"
Name: "brazilianportuguese"; MessagesFile: "compiler:Languages\BrazilianPortuguese.isl"
Name: "catalan"; MessagesFile: "compiler:Languages\Catalan.isl"
Name: "corsican"; MessagesFile: "compiler:Languages\Corsican.isl"
Name: "czech"; MessagesFile: "compiler:Languages\Czech.isl"
Name: "danish"; MessagesFile: "compiler:Languages\Danish.isl"
Name: "dutch"; MessagesFile: "compiler:Languages\Dutch.isl"
Name: "finnish"; MessagesFile: "compiler:Languages\Finnish.isl"
Name: "french"; MessagesFile: "compiler:Languages\French.isl"
Name: "german"; MessagesFile: "compiler:Languages\German.isl"
Name: "greek"; MessagesFile: "compiler:Languages\Greek.isl"
Name: "hebrew"; MessagesFile: "compiler:Languages\Hebrew.isl"
Name: "hungarian"; MessagesFile: "compiler:Languages\Hungarian.isl"
Name: "italian"; MessagesFile: "compiler:Languages\Italian.isl"
Name: "japanese"; MessagesFile: "compiler:Languages\Japanese.isl"
Name: "norwegian"; MessagesFile: "compiler:Languages\Norwegian.isl"
Name: "polish"; MessagesFile: "compiler:Languages\Polish.isl"
Name: "portuguese"; MessagesFile: "compiler:Languages\Portuguese.isl"
Name: "russian"; MessagesFile: "compiler:Languages\Russian.isl"
Name: "scottishgaelic"; MessagesFile: "compiler:Languages\ScottishGaelic.isl"
Name: "serbiancyrillic"; MessagesFile: "compiler:Languages\SerbianCyrillic.isl"
Name: "serbianlatin"; MessagesFile: "compiler:Languages\SerbianLatin.isl"
Name: "slovenian"; MessagesFile: "compiler:Languages\Slovenian.isl"
Name: "spanish"; MessagesFile: "compiler:Languages\Spanish.isl"
Name: "turkish"; MessagesFile: "compiler:Languages\Turkish.isl"
Name: "ukrainian"; MessagesFile: "compiler:Languages\Ukrainian.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
[Files]
Source: "C:\Users\Pierre\Documents\Qt\build-S24-Desktop_Qt_5_7_0_MSVC2013_32bit-Release\release\S24.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Pierre\Documents\Qt\build-S24-Desktop_Qt_5_7_0_MSVC2013_32bit-Release\release\platforms\*"; DestDir: "{app}\platforms"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "C:\Users\Pierre\Documents\Qt\build-S24-Desktop_Qt_5_7_0_MSVC2013_32bit-Release\release\libgcc_s_dw2-1.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Pierre\Documents\Qt\build-S24-Desktop_Qt_5_7_0_MSVC2013_32bit-Release\release\libstdc++-6.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Pierre\Documents\Qt\build-S24-Desktop_Qt_5_7_0_MSVC2013_32bit-Release\release\libwinpthread-1.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Pierre\Documents\Qt\build-S24-Desktop_Qt_5_7_0_MSVC2013_32bit-Release\release\Qt5Core.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Pierre\Documents\Qt\build-S24-Desktop_Qt_5_7_0_MSVC2013_32bit-Release\release\Qt5Gui.dll"; DestDir: "{app}"; Flags: ignoreversion
Source: "C:\Users\Pierre\Documents\Qt\build-S24-Desktop_Qt_5_7_0_MSVC2013_32bit-Release\release\Qt5Widgets.dll"; DestDir: "{app}"; Flags: ignoreversion
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\S24"; Filename: "{app}\S24.exe"
Name: "{group}\{cm:ProgramOnTheWeb,S24}"; Filename: "https://s24.plagoutte.eu/"
Name: "{group}\{cm:UninstallProgram,S24}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\S24"; Filename: "{app}\S24.exe"; Tasks: desktopicon
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\S24"; Filename: "{app}\S24.exe"; Tasks: quicklaunchicon
[Run]
Filename: "{app}\S24.exe"; Description: "{cm:LaunchProgram,S24}"; Flags: nowait postinstall skipifsilent
我的应用程序非常简单,我的防病毒软件在启动时没有报告我是病毒。这实际上是Inno Setup的设置和卸载向导。
答案 0 :(得分:4)
运行安装程序exe:不清楚“被视为病毒”的含义。我猜您在谈论标准警告“此程序可能会损害您的计算机”。好吧,对于需要管理特权才能运行的所有程序,它都可以显示(所有安装程序都可以)。您在此处有两个选择:1)查找可以在用户模式下运行的安装程序,或2)购买代码签名证书。第二个选项不会删除警告,但会使其变得非常友好。
将exe作为电子邮件附件发送。算了吧。那就像十年前一样停止了工作。世界上几乎每个邮件服务器都会阻止可执行附件。将您的exe上传到某处并发送链接,而不是exe本身。
将您的exe文件上传到www.virustotal.com并进行检查。防病毒程序确实会偶尔显示误报。没什么大不了的,只需联系防病毒开发人员并说明问题(并提供指向exe的链接)。他们可以很快地纠正误报。
答案 1 :(得分:0)
我目前正在对此进行调查。这里还有更多要考虑的事情。 第一。 Inno setup是一个广泛使用的安装软件包制造商,即使是恶意软件也是如此。因此,防病毒软件非常可疑地处理在其上创建的任何软件包。 第二。大多数防病毒软件都设置为检查在线文件的“信誉”。以我为例,我正在创建一个.exe软件包进行下载,因此我的防病毒软件检查了其“信誉”。由于每次编译后它总是某种程度上是新的,因此它被很少的用户下载,因此声誉不高。就我而言,这是“ Heur.AdvML.B”威胁。
如果其他用户的建议答案都不适合您。我会忽略该消息,直到.exe软件包完成,然后将其发送到防病毒数据库,该数据库会检查服务器上的电子邮件,作为误报。