Hi,
I am trying to create an msi package with custom action install and uninstall. Everything works fine with the install. With the uninstall, I get an error that tells me "access denied" on the custom action dll itself. This makes some sense to me because the last action I am trying to perform is to delete the install directory, which is where the custom action dll is (custom action dll is set to go to Application Folder)
I tried to move the custom action dll to the system folder but when I did this, I get an "object reference not set to an instance of an object" on the install when the custom dll tries to get Context.Parameters.
The only other thing I can think of to try is to set the install directory for delete on reboot, but I can't seem to find a straightforward way to do this.
i am new to msi, obviously, but it seems that it should not be this dang hard to do a clean uninstall.
Can someone enlighten me as to the proper way to remove the install directory cleanly when a custom action dll is involved? Examples I have seen show the custom action dll going to the Application Folder, but then...how can I do a delete on that directory during the uninstall?
THe answer should be simple...but WHAT IS IT???
Thanks for any help...
Start Free Trial