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!

aweber
Posts: 63
Joined: Mon Jun 18, 2018 7:45 pm

Error 1001 during upgrade

This error only happens during an upgrade of a previous version of my application...

The install log says:
An exception occurred while trying to find the installers in the (MYASSEMBLY) assembly.
System.Reflection.ReflectionTypeLoadException: Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
My Installer class in my assembly has not changed in a very long time (many versions). The package appears to include all my dependencies (but I have not figured out precisely the one that it thinks is missing -- how do I determine this?).

The major difference is that in my previous version my package/assembly used .Net 4.6.2, this one is packaging and using 4.7.2. Could the uninstall/upgrade part be tricked by the .Net difference?

Please advise asap. We are unable to distribute our new version until this is fixed.

EDIT: It is likely this is during the "UnInstall"...how can I ensure AI runs my Installer Class's uninstall code BEFORE uninstalling all the dependencies? (Like virtually first.)?

EDIT2: The previous version uninstalls cleanly if I just choose to uninstall it from control panel. The new version installs fine if it is a "fresh install" (no previous version found). The issue is only during "Upgrade".

Return to “Common Problems”