Problem with Custom Action - 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!

Trax
Posts: 46
Joined: Wed May 06, 2009 5:24 pm

Problem with Custom Action

I have a custom action that runs a batch file during the Commit of the installation. I pass in the Command Line of "[#REGOCX.bat]" "[APPDIR]" "[SOURCE_PATH]" where "[SOURCE_PATH]" is the property of a Search that I have that returns a shared folder path stored in the registry. A sample command in the bat file is COPY /Y "%~2\logo.bmp" "%~1\bmp". The problem is that the "[SOURCE_PATH]" parameter is returning Formatted text as its result so my command is running as COPY /Y "Formatted text\logo.bmp" "C:\Program Files\Application\bmp". Is there a reason why this is happening?

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

Re: Problem with Custom Action

Hi,

I'm not sure why you are encountering this behavior. Can you please send us the .AIP you are using to support at advancedinstaller dot com so we can investigate it?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Trax
Posts: 46
Joined: Wed May 06, 2009 5:24 pm

Re: Problem with Custom Action

The file TraxSetupE3.old.zip has been sent which contains TraxSetupE3.old.aip
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problem with Custom Action

Hi,

The SOURCE_PATH property is modified by a "Property set with formatted" custom action scheduled under "InstallUISequence" -> "CostFinalize". The "CostFinalize" action runs after "AppSearch" (which performs the searches), so the result of the search is replaced. Try removing the custom action which sets the property and let me know if the problem persists.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Trax
Posts: 46
Joined: Wed May 06, 2009 5:24 pm

Re: Problem with Custom Action

Thanks for the help. I think it's ok now I'm still wating on the build to finish. One question though. I removed the custom action scheduled under "InstallUISequence" -> "CostFinalize" but I can't remove the "CostFinalize" part. I'm guessing it should be OK since there is nothing to be done under there. Am I right?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Problem with Custom Action

Hi,
I can't remove the "CostFinalize" part. I'm guessing it should be OK since there is nothing to be done under there. Am I right?
You don't need and you shouldn't remove the standard action. It will be hidden automatically the next time you open the project if there are no custom actions scheduled under it.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Trax
Posts: 46
Joined: Wed May 06, 2009 5:24 pm

Re: Problem with Custom Action

Thanks for the help :D

Return to “Common Problems”