I\'m experiencing an error when using the windows installer to install an event source in a product I am deploying.
The error message I receive states the following
My problem was that I was using the 64 bit version of installutil.exe instead of the 32 bit version.
32 bit path - C:\Windows\Microsoft.NET\Framework\v4.0.30319
64 bit path - C:\Windows\Microsoft.NET\Framework64\v4.0.30319
I had the same problem. The solution was to copy to the service's folder all dll's etc. from the bin\debug or bin\release folder
The "Detected Dependencies" of your setup project are not up to date. In my case refreshing the dependencies does not work. Due to adding an dll to the setup project dependencies visual studio refreshed them all. After rebuilding the setup project and the error didn't occurred any more!
I have never seen that error, but the path c:\temp\program.exe is very strange. Are you trying to run the installer from the c:\temp\ directory?
Are you certain the output of all projects and all third-party DLLs you use are included in the Deployment project? Click on all included files in the Deployment project and check their SourcePath property; are they to the original source files and not the target output folder? Not the temp folder?
I had exactly the same problem.
I guess your program is referencing other DLLs which the installer install in the GAC or somewhere else outside of the application directory. You can't count on those DLLs being installed before your install action runs.
Solution: Create a separate DLL for your install action and make sure that DLL does not reference any other DLL (directly or indirectly) that are not installed inside your application folder.
BTW, if you can, switch to some other technology. I don't know which competitors are better, but if you do non-standard stuff, the VS install project will cause you nothing but trouble.