We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

bchetana
Posts: 95
Joined: Sat Dec 01, 2012 11:36 am

.Net installer class

Hi

I have a version (v1) with .net installer class. I have my coustom code in onAfterInstall method.
In V2 i made some changes in this method.

The problem is when i uninstall the v1 and install v2 , latest dll of .Net Installer Class is getting executed. But when I do upgrade,
its using the old dll any my latest code is not executed in onAfterInstall method.

I have selected "Uninstall old version first and install the new version" option in upgrade page. Still its some how using the cached dll.
How can I over come this problem, ?????
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: .Net installer class

Hello,

I'm afraid this behavior is generated by a Windows Installer limitation. As a workaround you can try to remove the older version using the "Uninstall previous versions" custom action. The uninstall custom action should be scheduled before "Wizard Dialogs Stage -> Paths Resolution" action group.

Also, as another solution you can develop your custom action as DTF managed custom action instead of as a .Net Installer Class one.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”