Trouble packaging my VST using Inno Setup


#1

I tried to follow this tutorial to create an installer for my VST plugin on Windows:
https://docs.juce.com/master/tutorial_app_plugin_packaging.html#tutorial_app_plugin_packaging_installers_windows

My script looks something like this:

[Setup]
AppName=PluginName
AppVersion=0.9.0
DefaultDirName={cf}
DefaultGroupName=PluginName
OutputBaseFileName=PluginName-windows

[Files]
Source: "PluginName.dll"; DestDir: "{app}\VSTPlugins"
Source: "PluginData.bin"; DestDir: "{commonappdata}\CompanyName\PluginName"

Both the .dll and .bin files are located in the same folder as the .iss script.
When I run compile, it compresses the entire archive and pops up the dialog:

Compiler Error:
Resource update error: File isn't an EXE file (1)

Has anyone seen this error before? For the life of me I can’t seem to figure it out!


#2

It seems that the error was due to Norton identifying the generated .exe as a virus and deleting it immediately upon creation. After deactivating Norton I can compile the installer without problems!

(I also corrected the faulty paths in my script above)