Hello, I am currently trying to install multiple services using ManagedInstallerClass.InstallHelper.
The code execution goes smoothly when I install the first service, then gives an error stating that a service with a same name already exists. However, if I exit the program then execute the same process starting from the second service, everything goes smoothly.
The function I use is this one.
ManagedInstallerClass.InstallHelper(arguments.ToArray());
I am 100% sure that the arguments are correct.
The exception I have is this one:
System.InvalidOperationException: "The installation failed, and the rollback has been performed."
Inner Exception: "The specified service already exists"
My gut feeling is that the ManagedInstallerClass keeps something in its belly and thus when executing the second call in the same process something goes wrong.
Anyone has an idea of what's happening and why?
Thank you very much in advance.