I've had serious installer trouble after adding a C# project's content file to a Visual Studio Setup project. Try as I might, each time I tried to use a content-file output from another project I got a failed install. Repeated attempts to install gave me an erroneous error saying the service was already installed. This was because the failed install left an orphaned registry entry. Wonderful. I had to use "sc delete" to get rid the registry entry.
Lesson learned: just right click on the installer and select "add file." I referenced a file in the other project in this manner and the installer project created a relative reference. Should do the trick.
The reason for adding a content file to the install was to allow a perl script to be executed by the application.
No comments:
Post a Comment