Advertisement

11.12.2007 at 07:56AM PST, ID: 22954749
[x]
Attachment Details

msi uninstall access denied on custom action dll

Asked by zoseri in MSI

Tags: uninstall, msi, custom, access, dll

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
[+][-]11.13.2007 at 06:38PM PST, ID: 20277260

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: MSI
Tags: uninstall, msi, custom, access, dll
Sign Up Now!
Solution Provided By: kcehtrak
Participating Experts: 2
Solution Grade: A
 
 
[+][-]01.05.2008 at 11:32AM PST, ID: 20590325

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628