.NET Custom action compile with VS 2008 - 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!

marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

.NET Custom action compile with VS 2008

Hi

I'm trying to use a .NET custom action that was compiled with VS 2008 (using Framework 2.0).
Everything attaches fine, but when I run the setup, i get the following error:

Exception occurrect while initializing the installation:
System.IO.FileNotFoundException: Could not load file or assembly 'file:///C:\Windows\system32\Files\Microsoft' or one of its dependencies. The system cannot find the file specified.

It is an empty project.. all it has is the install class calling their base methods. (i removed all the custom stuff from it.)

I also tried compiling the project using VS 2005 but no luck..

What did I forget this time?
THanks
Marcelo
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

This happens because you haven't used quotation marks (") for a path (perhaps in a custom action you use). Note that when using paths with spaces (even when using referenced files, for example [#file.txt]), these paths must be enclosed by quotes.

Let me know if the problem persists after making the necessary modifications.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

Hi Cosmin,

I'm not sure it is the case. here is the action DATA for my .net custom action:

/LogFile= /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install /APPDIR="[APPDIR] " /VS20005INSTALLED="[VS2005INSTALLED]" "[#my.Policies.Checkin.BuildDBOrg.dll_1]" "[TempFolder]dotNetCustAct.dll_Config.xml"

As you can see all parameters are automatically wrapped by quotes.
VS2005INSTALL is a registry search result (a file path).

I'm running this Custom action on InstallExecuteSequence/Install and the execute option is at Deferred (i tried also Deferred with no impersonation).

Thanks,
Marcelo
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Hi,

Please send us the AIP (if it doesn't contain confidential information) or a small test case that reproduces this behavior to support at advancedinstaller dot com so we can investigate the problem.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
marcelo
Posts: 103
Joined: Fri Sep 28, 2007 2:07 pm

sent! :D

Return to “Common Problems”