I have a project on VS2015 that was working well. However it's installer was written with the InstallShield addon.
I now need to maintain the project on VS2017, which has a different installer project.
Now I am getting a BadImageFormatException when it tries to install the windows service.
My research so far points to this being due to my service being 64bit, and the installer using a 32bit version of installutil.exe.
My question is how do I change the project to use the 64bit version of this file?
The method I have used to write the installer and service are detailed here.. How to create a setup project for a Windows Service application in Visual C#
I have made sure that my build config is 64bit, and the installer targets a 64bit system.
My question is not really a duplicate, as I am asking how to fix it (which isn't answered in the other questions).
To replicate the issue.. if you follow the instructions in ... How to create a setup project for a Windows Service application in Visual C#
It will compile and work. If you then change the active config to 64bit, and set the targetplatform to 64bit in the properties of the installer project; it will compile fine, and give you a setup.exe and .msi. However these will not install due to the bad image format exception.
My question is how do I change the project so that it works?
Hoping someone can help.