Adding SQL script from command line - 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!

kettch
Posts: 28
Joined: Wed Dec 03, 2008 9:34 pm

Adding SQL script from command line

Is there a way to add a SQL script to an AI project from the advancedinstaller.com command line calls?

Judging from the documentation http://www.advancedinstaller.com/user-g ... iting.html it doesn't appear to be an option, but want to double check that there isn't a trick to it before editing the AIP XML to add new scripts via our build application.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Adding SQL script from command line

Hi,

I'm afraid we don't have this option available for our command line interface, I shall add it on our TODO list for a future version. Until then
the only solution is to edit the project using the GUI of Advanced Installer.

Please note that it is not recommended to manually edit the aip file for performing customizations like this one.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hollystyles
Posts: 4
Joined: Fri Jul 23, 2010 3:16 pm

Re: Adding SQL script from command line

Hi,

Actually what would be nicer is to be able to synchronise Sql Scripts, just like you can with files and folders.

Currently my build server automatically builds the installers, but I have to remember that if any changes to the sql scripts were checked in, I must go and manually open the installer in the GUI, remove and re-add the scripts that changed and re-drag them to there correct position in the list.

Is the "TODO" list viewable anywhere?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Adding SQL script from command line

Hi,
Is the "TODO" list viewable anywhere?
I'm afraid not, we only make public the release notes, once we release a new version of Advanced Installer.

Regarding the SQL Scripts, the scenario you've described is already covered. So if you have a script added to the project and the modify its source Advanced Installer automatically detects this and updates the setup package. You don't have to delete it and re-add it to the list of scripts.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hollystyles
Posts: 4
Joined: Fri Jul 23, 2010 3:16 pm

Re: Adding SQL script from command line

Hi,
if you have a script added to the project and the modify its source Advanced Installer automatically detects
this and updates the setup package.
What might prevent that happening? as this is not my experience. I am using version 8.0.2 and this is my command line:

Code: Select all

C:\Program Files\Caphyon\Advanced Installer 8.0.2\bin\x86 /rebuild C:\Setup\AdvancedInstallerSetupFiles\myproject\dual\Database\setup.aip
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Adding SQL script from command line

Hi,
What might prevent that happening?
We've never met this behavior from what I now. Are you sure you the scripts from the package point to the resource you are modifying on the HDD?
Also, can you open the GUI of Advanced Installer and issue a build command from there. The effect should be the same in both cases, but just to check.

Regarding the command line, I assume you are calling "AdvancedInstaller.com" tool, as the sample comma line did not contained the full path.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
hollystyles
Posts: 4
Joined: Fri Jul 23, 2010 3:16 pm

Re: Adding SQL script from command line

Hi
Regarding the command line, I assume you are calling "AdvancedInstaller.com" tool, as the sample comma line did not contained the full path.
Yes I am using AdvancedInstaller.com that was a typo in my post.

I did a specific test of this feature this afternoon with my existing build set-up, and the installer did indeed pull the modified script into the installer package, just as you said it should. So this would appear to be working after all. :oops:

Thanks for your time.

Return to “Common Problems”