Problems Removing Our App.
Hi There,
I hope someone can help. We have a customer that installed our software by deploying system images. The application was installed by a certain user on the images and that user is no longer with the end user's company.
We are trying to find a way to force uninstallation of our product for the customer. Currently, they log in as an Admin (Vista or Win 7 machine I believe) then rt click the original .msi and click Run As Administrator. They choose remove, but the uninstall croaks on a .ico file that was in the users profile (that is no longer with the company) then rolls back.
Do I have to run msiexec as Admin with a runas utility?
I thought there was a way to force an uninstall, maybe using the System Account. ???
Any help would be greatly appreciated!!
I hope someone can help. We have a customer that installed our software by deploying system images. The application was installed by a certain user on the images and that user is no longer with the end user's company.
We are trying to find a way to force uninstallation of our product for the customer. Currently, they log in as an Admin (Vista or Win 7 machine I believe) then rt click the original .msi and click Run As Administrator. They choose remove, but the uninstall croaks on a .ico file that was in the users profile (that is no longer with the company) then rolls back.
Do I have to run msiexec as Admin with a runas utility?
I thought there was a way to force an uninstall, maybe using the System Account. ???
Any help would be greatly appreciated!!
0 Comments
[ + ] Show comments
Answers (8)
Please log in to answer
Posted by:
jmcfadyen
14 years ago
if you are saying this was installed per user then an admin can remove using the API.
windowsinstaller.installer and msiEnumProductsEx will get you the SID of the user who did the installation as PER user.
From there you can use the InstallProduct Method to remove the product using the GUID and SID of the named user found previously.
windowsinstaller.installer and msiEnumProductsEx will get you the SID of the user who did the installation as PER user.
From there you can use the InstallProduct Method to remove the product using the GUID and SID of the named user found previously.
Posted by:
anonymous_9363
14 years ago
It might be quicker to be delete the registry keys which flag its status as per-user. Off the top of my head:.
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Managed\[UserSID]
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\[UserSID]
Group policy installs feature here:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\AppMgmt\[ProductCode]
There may be a HKCU equivalent of the above.
Once you've deleted this junk, the engine believes it to be a vanilla, per-machine install and you can uninstall it in the usual way.
Another useful dodge, if you know exactly what gets installed by your product (!), is to remove the files and registry data manually then run MSIZap to clean out the installer data.
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Managed\[UserSID]
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\[UserSID]
Group policy installs feature here:
HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Group Policy\AppMgmt\[ProductCode]
There may be a HKCU equivalent of the above.
Once you've deleted this junk, the engine believes it to be a vanilla, per-machine install and you can uninstall it in the usual way.
Another useful dodge, if you know exactly what gets installed by your product (!), is to remove the files and registry data manually then run MSIZap to clean out the installer data.
Posted by:
Superfreak3
14 years ago
I forgot to add what we see in the logged uninstall attempt...
I don't know if this gives any valuable information based on your responses or not.
Action start 15:20:56: InstallFinalize.
DEBUG: Error 2330: Error getting file attributes: \\COMPNAME\Users1\MSmfld\Home\My App WorkArea. GetLastError: 4350
MSI (s) (D8:C0) [15:21:02:097]: Product: Our 8.0 Client -- Internal Error 2330. 4350, \\COMPNAME\Users1\MSmfld\Home\My App WorkArea
Internal Error 2330. 4350, \\COMPNAME\Users1\MSmfld\Home\My App WorkArea
Action ended 15:21:02: InstallFinalize. Return value 3.
Action ended 15:21:04: INSTALL. Return value 3.
I don't know if this gives any valuable information based on your responses or not.
Posted by:
anonymous_9363
14 years ago
Posted by:
Superfreak3
14 years ago
Posted by:
Superfreak3
14 years ago
Posted by:
anonymous_9363
14 years ago
Posted by:
jmcfadyen
14 years ago
take a look here there is plenty of examples on how to use the automation interface to enum products.
http://blogs.technet.com/b/alexshev/archive/2008/06/30/from-msi-to-wix-part-17-windows-installer-automation-interface-part-2.aspx
http://blogs.technet.com/b/alexshev/archive/2008/06/30/from-msi-to-wix-part-17-windows-installer-automation-interface-part-2.aspx
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.