d79ima
Posts: 24
Joined: Fri Feb 08, 2013 10:28 pm

calling AdvancedInstaller.com in a batch script

Hello,

I made a batch script where I am calling AdvancedInstaller.com to build the installer and then i have several other commands that i need to execute in my batch script.
But it seems like calling AdvancedInstaller.com exits the batch script and none of the other commands that appear afterwards can run.

Here is what my simple batch script looks like:

Code: Select all

call AdvancedInstaller.com /build "C:\Advanced Installer Setup\setup.aip"
echo "Done building installer!!"
xcopy /y /s /q "C:\Advanced Installer Setup\Setup Files\*" "C:\CD" /E
I never see the text "Done building installer!!" and the xcopy never executes

Thanks,
Dmitry
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: calling AdvancedInstaller.com in a batch script

Hello Dmitry,

I'm not sure why you are encountering this behavior. However, can you use a command line like this:

Code: Select all

call "C:\Program Files (x86)\Caphyon\Advanced Installer 9.9\bin\x86\AdvancedInstaller.com" /build "C:\Advanced Installer Setup\setup.aip"
and see if the behavior still persist?

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
d79ima
Posts: 24
Joined: Fri Feb 08, 2013 10:28 pm

Re: calling AdvancedInstaller.com in a batch script

Hi Daniel,

I am still seeing the same behavior when I use your command line.
Not sure why it's happening but can you reproduce this?

Thanks,
Dmitry
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: calling AdvancedInstaller.com in a batch script

Hi Dmitry,

I tested the command my colleague Daniel wrote to you and it worked well to me. Please make sure that your project file is already created when you want to build it from command line.

If you also want to create a project from command line you can use the /newproject command instead of /build and make sure that the parameter's value points to an existing full path, otherwise the operation will fail. Also, if you want to create it in the Windows Volume (i.e. C:\), you must launch your batch file using "Run as administrator" option otherwise it will fail.

Let us know if this helped, otherwise give us more details about your scenario.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
d79ima
Posts: 24
Joined: Fri Feb 08, 2013 10:28 pm

Re: calling AdvancedInstaller.com in a batch script

The command works well, the problem is that if you have other commands that follow this command in a .bat script they don't get executed. Have you tried to reproduce this scenario?
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: calling AdvancedInstaller.com in a batch script

Hello Dmitry,

I'm not sure why this happens. I've tested your scenario and I was able to reproduce the behavior only on Windows Vista machines. Thank you for bringing this to our attention.

Please give us some time to investigate this and we'll get back to you as soon as we have a conclusive answer. Thank you for your patience and understanding.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
d79ima
Posts: 24
Joined: Fri Feb 08, 2013 10:28 pm

Re: calling AdvancedInstaller.com in a batch script

Ok thanks. Just FYI I am seeing this behavior on my Windows Server 2003 machine currently.
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: calling AdvancedInstaller.com in a batch script

Hello Dmitry,

We put this issue under investigation, but until now we weren't able to identify the root cause of this behavior. We'll investigate this further and we'll let you know when a resolution for this issue if found. Until then, as a workaround you can use an ANT or MSBuild script in order to build your project. You can take a look on our "ANT integration" article which could be helpful for you.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: calling AdvancedInstaller.com in a batch script

Hello Dmitry,

We've managed to resolve this issue. A fix will be included in the next version (10.0) of Advanced Installer which should be released soon.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Daniel
Posts: 8276
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: calling AdvancedInstaller.com in a batch script

Hello,

This was fixed in version 10.0 of Advanced Installer released on March 21, 2013.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
d79ima
Posts: 24
Joined: Fri Feb 08, 2013 10:28 pm

Re: calling AdvancedInstaller.com in a batch script

Thank you! That's great!

Return to “Building Installers”