Kevin2341
Posts: 7
Joined: Thu Jul 26, 2018 5:15 pm

Got a broken installation at a customer site that I cannot fix and cannot reproduce

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.
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Got a broken installation at a customer site that I cannot fix and cannot reproduce

Hello Kevin,

First of all, in what way did the uninstall process failed? Did it give you any error message? If yes, could you please tell me which message you've got?

In what regards the following message:
Another version of this product is already installed. Installation of this version cannot continue. To configure or remove the existing version of this product, use Programs and Features in the Control Panel.
this is mainly given where you try to install two products having the same "ProductCode". The "ProductCode" property is a unique GUID used to identify your application. This identifier varies from version to version or between different languages of the same installer. You can check this first hand from Advanced Installer by going to Project->Options->Project IDs.

By changing the "ProductCode", you could create a major upgrade. A major upgrade is essentially the removal of an older product which is replaced by a newer product. In Advanced Installer the upgrades can be configured from the "Upgrades" page. But taking in consideration that you have said that the uninstall process failed, I am not sure this will help.

The only thing that comes to my mind right now is a re-cache of the MSI on the user's machine. To do that, you can proceed as follows:

- open a command line shell

- type in the following:

Code: Select all

msiexec /fv path_to_your_msi
where "path_to_your_msi" is the path to the fixed msi file (the one that you were trying to install). After doing so, try again to uninstall the broken MSI.

Hope this helps.

Kind regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”