Reputation: 136
I am trying to delete some file associations key in registry for our previous product so that when our new product is installed using MSI it prevents conflicts and opens the correct product.
My problem is when i try to add an .exe
using custom action in the MSI install process, it is not able to get the correct registry key (probably because of security reasons because the trace message doesn't get all the subkeys
in HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\
folder).
I wanted to know if there is any other way to delete keys from registry during MSI
installation using custom actions.
Any help is appreciated.Thanks in Advance .
Upvotes: 1
Views: 6252
Reputation: 11878
Don't use custom actions to do things which Windows Installer can handle.
Instead of using custom action to delete a registry key, add a row into RemoveRegistry Table, and set Name
column to -
.
The steps to do it are different for each MSI authoring tool.
Upvotes: 2