Passing [APPDIR] or [TARGETDIR] parameter to .NET assembly - 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!

barmanekm
Posts: 1
Joined: Tue Mar 13, 2007 2:15 pm

Passing [APPDIR] or [TARGETDIR] parameter to .NET assembly

Hello,

I am running custom action from custom .NET Assembly at the end of the Install phase. Everything works fine, I can pass almost all parameters into this .NET assembly except APPDIR. When I am trying to pass APPDIR the exception is thrown. The strange thing is, that exception is thrown even when I am not using this property inside assembly. Just process of passing it cause an error and this not occurs when passing other properties.

Thanks for your help
Regards
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Please try to insert a space character after [APPDIR] when you add the parameter. Please let me know if this solves the problem.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Sandor
Posts: 6
Joined: Sun Apr 20, 2008 9:09 pm

Re: Passing [APPDIR] or [TARGETDIR] parameter to .NET assembly

I had exactly the same problem.
The space character after [APPDIR] solves the problem.

Thanks a lot

sándor

Return to “Common Problems”