.NET Custom Actions - Assembly is not found - Advanced Installer Community

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!

mfagadar
Posts: 3
Joined: Wed Oct 28, 2009 3:52 pm

.NET Custom Actions - Assembly is not found

Hello,

In my Advanced Installer 7.2.1 Professional Project I have set 2 custom actions: one on Install and one on Commit. The custom actions to be executed use the same Installer derived class, located in an assembly called TESLA.exe, which is the application executable and is installed by the setup in the [APPDIR] folder.

When running the setup, I get the following error message:
Error 1001. Exception occurred while initializing the installation:
System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\WINNT\system32\Files\TESLA\TESLA.exe' or one of its dependencies. The system cannot find the file specified..


The APPDIR set in the installation is Program Files\TESLA.

It seems that when running the custom action, the installer searches for the assembly in the wrong place. Where did I go wrong ?

All the best,
Mihai
mfagadar
Posts: 3
Joined: Wed Oct 28, 2009 3:52 pm

Re: .NET Custom Actions - Assembly is not found

I forgot to send you the action data generated by the Advanced Installer:
/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install /targetdir="[APPDIR]" "[#TESLA.exe]" "[TempFolder]dotNetCustAct.dll_Config.xml"
mfagadar
Posts: 3
Joined: Wed Oct 28, 2009 3:52 pm

Re: .NET Custom Actions - Assembly is not found

I found the cause, it was described in the article http://www.advancedinstaller.com/user-g ... question50 ("Why do I receive the
2869 error?").

Return to “Common Problems”