Page 1 of 1

Installing .NET protected service

Posted: Mon Oct 01, 2012 10:24 am
by Enigma
We have been noted about problems installing protected .NET exe service using standard Windows installer utility - Installutil.exe ... S.80).aspx

The workaround for this - making a custom utility for service installation as written there: ... 21#1195621

The problem appears because Installutil.exe is trying to read NET assembly data from the exe file. When exe is protected, the assembly data is not accessible and Installutil.exe raises System.BadImageFormatException exception.
Apart of this scenario, custom installation utility just run the service, without reading assembly, that's working well in case the file is protected.