我得到以下異常時,當我嘗試運行安裝程序並設置服務:發生System.BadImageFormatException安裝服務
# ./InstallUtil ../../../../Applications/GasPosApp/bin/Wrapper.exe -s ../../../
../Applications/GasPosApp/properties/DispenserViewerApplication.wrapper.conf
Microsoft (R) .NET Framework Installation utility Version 4.0.30319.1
Copyright (c) Microsoft Corporation. All rights reserved.
異常在初始化安裝:
System.BadImageFormatException: Could not load file or assembly 'file:///C:\Appl
ications\GasPosApp\bin\Wrapper.exe' or one of its dependencies. The module was e
xpected to contain an assembly manifest..
當你混合32,拋出此異常和64位組件。嘗試編譯AnyCPU中的所有項目。 – Damien
我只是從命令提示符運行這個。你可以請直到如何完成這一點? – user1280096
@ user1280096您在答案中提供了所有需要的信息。只要使用其他版本的InstallUtil,你就會好的。 –