Yesterday I went to a customer's site to install a new version of software that gets installed with Advanced Installer. There is a bit of a story here to tell, so bear with me.
The first installation I ever did for the customer didn't involve an installer yet. I had went and manually installed the software on their PC, got it up and running. In order to do this, I had a couple services to install, I had to activate IIS, configure a website, copy and paste some files manually. That kind of stuff. About a month later, some other people at my company went and visited this customer and used a early version of the installer to install new software. I'm not sure what kinds of implications this has, but the services I manually installed (which had the same name) got installed over it. They told me they were unable to get it running (which in hindsight makes sense). Yesterday morning, I went out with a polished version of the installer that has been tested and worked to install the new software for them. I had completely spaced the fact that they had used the installer previously, and I went about manually uninstalling my services and deleting files. I then tried running my installer, and got an error claiming that a version of the software already existed on that computer. It is worth noting that the customer is using a version of Windows 7 (not sure exactly which, but it's at least SP1+). So, I tried using the uninstall "Add or Remove Programs" tool on Windows to remove the application. The uninstaller failed.
At this point I thought maybe what I did was the reason the installer failed. I hadn't done anything besides manually deleting the install directory and using "sc" to delete the services. Something to note here is that I have 2 services, and when I opened the Services window in Windows, I noticed that I had two services with about the same name (I'm guessing a name discrepancy in the services is the reason here). I tried deleting both of those manually but one would fail when I used "sc delete".
Anyway, I ultimately decided to resort to internet wisdom to try and learn how to delete a program forcefully from Windows, which led to me to the regedit, where I deleted the key containing the name of my application from HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\<GUID for my program>. This caused the application to no longer show up in the "Add or Remove Programs" tool, but I could still not install.
So, I'm in a bit of a pickle here. I've attempted to recreate the situation the best I remember how to.
I've tried recreating the original situation, manually installing everything, running the installer over it, deleting services and folders, and then running the uninstaller. This worked fine however and didn't give any issues (I did have to do a reboot for one of the services, but everything recovered).
I tried a fresh installation and tried deleting this, but Advanced Installer compensated for everything I screwed with.
I tried manually with a fresh installation deleting HKEY_LOCAL_MACHINE\SOFTWARE\CompanyName\Product and HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\<ProgramGUID> to see if I could fool the installer into forgetting about the installation, but I must have missed a key or something because it still knew about the installation when rerunning the installer.
So I'm basically at a situation here where I have an unreproducable bug at a customer site where I cannot uninstall the older software and cannot install the new software and this puts me in a pickle.
Anyone have any tips what I can do to try to completely jack up a installation so that I can attempt to figure out how to fix it? Also, any ideas what I could try on the customer's PC to fix this darn issue? Thanks for your time and sorry for the rambling.
FOLLOW US
Get the latest news in Application Packaging