Using ProgramMenuFolder Property for Custom Action fails - 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!

adevia
Posts: 4
Joined: Fri Oct 23, 2009 8:05 pm

Using ProgramMenuFolder Property for Custom Action fails

I am converting a Visual Studio 2008 project to Advanced Installer, but I am having difficulties installing the package. I keep getting an error Code 2869. The logs were not much help. In this particular install I have a custom action to update a shortcut. I use the ProgramMenuFolder as a parameter value to my custom action to tell me the location of the program's menu folder. I finally was able to narrow it down to that property as being the source of the error. Every time I use the property [ProgramMenuFolder] in a parameter, the install fails. This works fine in the msi created by the VS 2008 setup project. When I look at the log, I do see the parameter with its value for the property of the custom action, but somewhere it fails. Help!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Using ProgramMenuFolder Property for Custom Action fails

Hello and welcome to Advanced Installer Forums,

Please note that this error is caused by the fact that ProgramMenuFolder's value ends with a backslash, as described in our Errors FAQs page. The problem can easily be solved by adding a space or another backslash after the property:

Code: Select all

"[ProgramMenuFolder] " or
"[ProgramMenuFolder]\"
Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
adevia
Posts: 4
Joined: Fri Oct 23, 2009 8:05 pm

Re: Using ProgramMenuFolder Property for Custom Action fails

Thank you. That did it.

Return to “Common Problems”