[build/debug] Command failed - postbuild-win.bat

I am getting this error trying to build the midi effect vst3 on windows:

Severity	Code	Description	Project	File	Line	Suppression State
Error	MSB3073	The command "CALL "C:\Users\username\Dev\iPlug2\Examples\MyMidiEffect\scripts\postbuild-win.bat" ".vst3" "MyMidiEffect" "x64" "1" "C:\Users\username\Dev\iPlug2\Examples\MyMidiEffect\build-win\vst3\x64\Debug\MyMidiEffect.vst3" "C:\Program Files\VstPlugins" "C:\Program Files\VstPlugins" "C:\Program Files\Common Files\VST3" "C:\Program Files\Common Files\VST3" "C:\Program Files\Common Files\Avid\Audio\Plug-Ins" "C:\Program Files\Common Files\Avid\Audio\Plug-Ins" "C:\Users\username\Dev\iPlug2\Examples\MyMidiEffect\build-win" "C:\Users\username\Dev\iPlug2\Examples\MyMidiEffect\projects\..\..\..\Scripts\icons\VST_Logo_Steinberg.ico" "C:\Users\username\Dev\iPlug2\Examples\MyMidiEffect\projects\..\..\..\Dependencies\IPlug\AAX_SDK\Utilities\PlugIn.ico" "C:\Users\username\Dev\iPlug2\Examples\MyMidiEffect\projects\..\..\..\Scripts\create_bundle.bat"
:VCEnd" exited with code 4.	MyMidiEffect-vst3	C:\Program Files\Microsoft Visual Studio\2022\Community\MSBuild\Microsoft\VC\v170\Microsoft.CppCommon.targets	161	

I would really appreciate some help as I am a total newbie with both iPlug2 and Visual Studio/Windows coding. Thanks in advance

Can I get some help on this one?
I haven’t been able to do anything with iPlug2 yet

VST folder write privileges?
Check if the plugin exists in the Build folder in your project folder.

Discord iPlug2 is a bit more alive than this forum.

1 Like

Yeah it looks like the post build script is failing since it can’t write to the "C:\Program Files\Common Files\VST3" folder

2 Likes

Yes, finally it builds! Thank you guys.
I’ll get on the discord then

2 Likes