I'm sure I'm just missing some Monday detail (yeah, I know it's Thursday, but it's been a long week for me), but I can't seem to get my service to run properly when installed using the Advanced Installer. Using our old installer, the service runs fine, so I know the service itself works, but when I try to get it to start after being installed by AI, I get the message:
Error 14001: This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
Please send to support at advancedinstaller dot com a zipped archive containing the following files:
* the .AIP project file, if it doesn't contain any confidential information or a similar, simplified project reproducing the issue.
* the resulting MSI file.
They will help us greatly to provide a solution in the shortest possible time.
Got it, apparently I didn't have the CRT libraries in the correct space. We recently 'upgraded' from VS2003 to VS2005. The part that was frustrating was I assumed they were there because I'd added the redistributable package to our install. For some reason, the service still couldn't find the correct libraries. By adding the libraries to sit side-by-side with our applications, the issue has been resolved. So, long and the short is that it wasn't AI's fault, there was an error between my chair and my keyboard.
Speaking of errors between the chair and keyboard, I'm beating myself stupid trying to figure out why I can't seem to properly pass arguments to the service at startup. We need the service to be aware of newly added/modified environment variables, but would like to avoid forcing a reboot (the SCM won't update it's view of the environment unless you do), so we pass the variables at the command line on the first startup so that it can operate properly until the next reboot. Am I correct in my belief that the "Arguments" field in the "Service Context" box on the "Service Properties" page are the arguments that are to be passed to the service on startup? The service seems to work fine in taking the argument from our old installer. While it's plausible that there's another problem that's arisen due to the VS2k3 to VS2k5 switch, it's more likely that I just messed up somewhere in the installer.
hehe, looks like the problem was on my end again. Turned on logging in the service (didn't know how before) and we're getting the correct text passed in at startup. Sorry 'bout that
FOLLOW US
Get the latest news in Application Packaging