small update and uninstall
Posted 18 February 2005 - 01:04
If I install v1.0 and then run the v1.1 installer performing a small update everything works great. When I go to Add/Remove programs I uninstall the product and only the files copied over in the small update are removed and nothing else is. Anyone know why that might be happening?
Thanks!
Posted 18 February 2005 - 14:24
Stefan Krüger
InstallSite.org twitter facebook
Posted 18 February 2005 - 18:19
Posted 18 February 2005 - 19:29
Same "ProductCode", same "ProductVersion", but different package code?
Posted 18 February 2005 - 19:33
Posted 18 February 2005 - 21:29
Is the product still installed as far as the Installer is concerned? You could use this script to check (obviously the ProductCode must be substituted):
Const sPRODCODE = "{17DAB648-906B-4C29-B296-6FD780708377}"
Set oInst = CreateObject("WindowsInstaller.Installer")
Msgbox oInst.ProductInfo(sPRODCODE, "InstallLocation")
Set oInst = Nothing
If it's not installed, you should get an error.
Posted 18 February 2005 - 21:50
There are no shortcuts created during either installation but I do create some registry entries. Those are created with the 1st install and not removed when I uninstall after applying the small update.
One thing to note is that I ran your code snip-it after each step. Here is what happened.
- Ran installer with v1.0 versioned file in it.
- Ran your code and it showed me the correct installdir.
- Ran installer with v1.1 versioned file in it. The file was updated in the install location.
- Ran your code and it showed me an empty installdir.
- I uninstalled from Add/Remove programs.
- Ran your code and it threw up the error your described.
Looks like the update is kinda messing things up. Does that sound right and if so any ideas?
Posted 18 February 2005 - 23:57
Unfortunately, I'm even more confused than before! The only thing I can come up with is this script, which you could run at the same points during your install that you ran the other one:
Const sPRODCODE = "{4D719053-5593-11D3-8F25-0060085C1758}"
i = 0
Set oInst = CreateObject("WindowsInstaller.Installer")
Set oCompList = oInst.Components
For Each sCompCode in oCompList
Set oCompClients = oInst.ComponentClients(sCompCode)
For Each sClient in oCompClients
If sClient = sPRODCODE Then Msgbox sCompCode : i = i + 1
Next
Next
Msgbox i & " components were counted."
Set oCompClients = Nothing
Set oCompList = Nothing
Set oInst = Nothing
I'm not entirely sure what I'm trying to prove with this yet, but I think there may be a point to this? It might require another couple of scripts before we get to the bottom of it.
Basically, it seems as though the installation known as "ProductCode" is being removed although the components are being left behind (or reinstalled). If this is the case, the next step will be to discover which product(s) these component are then associated with.
Posted 19 February 2005 - 00:38
- Ran installer with v1.0 versioned file in it.
- Ran latest code and it showed me 13 component codes and a count of 13 components.
- Ran installer with v1.1 versioned file in it. The file was updated in the install location.
- Ran your code and it showed me 13 component codes and a count of 13 components.
- I uninstalled from Add/Remove programs.
- Ran your code and it showed me 9 component codes and a count of 9 components. Of those 9 listed I have only 5 of them as components in my install package.
Don't know what that means, but the uninstall is removing the component that contains the file that is updated. All of the components left behind have no files updated in them.
Posted 21 February 2005 - 11:12
Can you generate a verbose log file during the update and the uninstall?
Does your setup uninstall properly if you do not install the update?
Stefan Krüger
InstallSite.org twitter facebook
Posted 21 February 2005 - 12:16
Can this behaviour be reproduced on another (clean) machine?
Posted 23 February 2005 - 23:16
The uninstall does work correctly if I do not update it.
I've also attached the install log to this post. I will attach the update log to the next post. These logs are from installing the v1.1 installer and then using the v1.2 installer to update the previous install. This was done on the clean machine that I mentioned above.
Attached Files
Posted 24 February 2005 - 09:24
Stefan Krüger
InstallSite.org twitter facebook
Posted 02 March 2005 - 17:19