Kryptonic
Posts: 10
Joined: Thu Oct 16, 2008 12:43 pm

Uninstall - LaunchDotNetCustomAction - Help!

Hi guys,

I have a small problem! I have a .net (3.5) dll (setup.dll) that has the Install and Uninstall methods overriden... When the application is installed it does it magic and it works fine, but when the user comes to uninstall the application i get an installer error saying it cannot find setup.dll, and when I check the folder it appears the uninstaller has deleted the file before the custom actions have been launched?

How would I get round this error?

Many thanks,
Will
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall - LaunchDotNetCustomAction - Help!

Hi,

I'm not sure why are you encountering this behavior. Where is the uninstall custom action scheduled? Please note that it should be scheduled under "InstallExecuteSequence" -> "Uninstall". If this is the case and the problem persists, please send us the AIP with the problem to support at advancedinstaller dot com so we can investigate it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kryptonic
Posts: 10
Joined: Thu Oct 16, 2008 12:43 pm

Re: Uninstall - LaunchDotNetCustomAction - Help!

Hi Cosmin,

Thanks for the fast reply!

I have it under the InstallExecuteSequence, under the Uninstall section. The Action Data is :

/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Uninstall "[#GroupDataTransfer3.Setup.dll]" "[TempFolder]dotNetCustAct.dll_1_Config.xml"

The execution properties are: Asynchronous execute, wait for return at the end of the sequence
Exection options: Defered with no impersonation
Sheduling options: Always Execute

Does that look ok?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Uninstall - LaunchDotNetCustomAction - Help!

Hi,

Perhaps the problem is caused by the fact that the custom action runs asynchronously (the install process may remove the file before the custom action tries to access it). Can you please try running the custom action synchronously?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Kryptonic
Posts: 10
Joined: Thu Oct 16, 2008 12:43 pm

Re: Uninstall - LaunchDotNetCustomAction - Help!

Hi Cosmin,

That appears to have done the trick! Thanks alot for your help!!!!!

Cheers
Will

Return to “Common Problems”