post build event, path to AdvancedInstaller.com? - Advanced Installer Community
aweber
Posts: 62
Joined: Mon Jun 18, 2018 7:45 pm

post build event, path to AdvancedInstaller.com?

Using the info from the forum and docs, we're trying to just "chain" an update/build of our updater.txt file from our default, project build.

This works using the Command ...\AdvancedInstaller.com (and the build args).

However, this breaks immediately when an upgrade to AI itself happens. So when v16.1 upgraded to v16.2, the hard-coded path to AdvancedInstaller.com is now invalid.

Is there an AI, build-time variable for the "Path to AI"? At least up to the \bin\x86\AdvancedInstaller.com part? I could then insert that into the front part of the Command in the post-build event and not have to worry about it.

Thanks,
AJ
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: post build event, path to AdvancedInstaller.com?

Hello AJ,

I am afraid this is not possible when using our CLI support. A workaround solution would be to install Advanced Installer at a custom path without including the version number. For instance you can use an install path like this:

Code: Select all

C:\Program Files (x86)\Caphyon\Advanced Installer
Another approach to avoid this limitation will be to use our PowerShell Automation support via COM Object. This way the AdvancedInstall com object is always registered for the current installed version of Advanced Installer.

Hope this helped.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”