dotNetCustAct.dll Exception - 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!

Jonathan
Posts: 22
Joined: Wed Jan 28, 2009 5:12 pm

dotNetCustAct.dll Exception

Hello,

I'm trying to use a dotNetCustAct.dll on Install to call a dot net exe that has code in place to handle an install. Unfortunately I get an error during installation:

Exception occured while initializing the installation: System.IO.FileNotFound: Could no load file or assembly 'file///C:WINDOWS\System32\Files\Pear' or one of its dependencies. The system cannot find the file specified..

The file names looks like a mixture of the [APPDIR] and system32 paths. APPDIR is C:\Program Files\Pear Technology\MapLInk

The Action data is /LogFile="[APPDIR]log001" /ReqVersion=2.0.50727 /InstallType=notransaction /Action=Install /DIR="[APPDIR]" "[#PT_MapLink.exe]" "[APPDIR]dotNetCustAct.dll_Config.xml"

Execution is synchronous, deferred with no impersonation

Scheduling Always Execute

Condition expression NOT Installed

Hope you can help,
Jonathan
Jonathan
Posts: 22
Joined: Wed Jan 28, 2009 5:12 pm

Re: dotNetCustAct.dll Exception

I think I have fixed this one. The error message was actually from the application being installed (I think) and the problem was the extra parameter /DIR=[APPDIR] that needed to be in the format /DIR='[APPDIR]'
Jonathan
Posts: 22
Joined: Wed Jan 28, 2009 5:12 pm

Re: dotNetCustAct.dll Exception

I was mistaken in thinking it was fixed. It got a lot further but was passing the path with single quotes deeper into the application and causing problems later on.

Is there a way of including double quotes around a value in the New Installer Class Parameter dialogue ?

For example
Name: DIR
Value: "[APPDIR]"

Although that maybe what already happens? In which case maybe I need to pass folder paths as shortnames? Is that possible?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: dotNetCustAct.dll Exception

Hi,
Is there a way of including double quotes around a value in the New Installer Class Parameter dialogue ?
I'm afraid that this is not supported for a parameter value.
I'm not sure I understand what you need to do. Can you please give me more details about this?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jonathan
Posts: 22
Joined: Wed Jan 28, 2009 5:12 pm

Re: dotNetCustAct.dll Exception

I found an explaination in an earlier thread which helped. Instead of [APPDIR] as the value I need to use [APPDIR] followed by a space as the final / in the resolved path name was being interpreted as an escape char and removed the final double quote.

The thread involved somebody called cbono and is at http://www.advancedinstaller.com/forums ... 667#p18667

I would prefer not to have to add a space as I that is likely to cause other problems.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: dotNetCustAct.dll Exception

Hi,
I would prefer not to have to add a space as I that is likely to cause other problems.
You can try adding a backslash character after the property:

Code: Select all

"[APPDIR]\"
This way the backslash in the property escapes the backslash after the property, so in the end the attribute is the actual property value.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Jonathan
Posts: 22
Joined: Wed Jan 28, 2009 5:12 pm

Re: dotNetCustAct.dll Exception

Thanks, I'll give that a try very soon but makes good sense. I had modified the application code to trim spaces so it is working OK but I think your solution is neater. It may be worth a mention in Advanced Installer help - near where it covers not using double quotes in case other people have a similar problem in the future?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: dotNetCustAct.dll Exception

Hi,

I'm glad the problem is solved.
It may be worth a mention in Advanced Installer help - near where it covers not using double quotes in case other people have a similar problem in the future?
This is already mentioned in a FAQ:
Errors FAQ's

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”