AdvancedInstaller.com and Batch Files - Advanced Installer Community
btmi
Posts: 4
Joined: Wed Feb 23, 2011 4:36 am

AdvancedInstaller.com and Batch Files

This is a strange one. Since upgrading to the latest build (9.9) on an XP system all of my batch files I use to rebuild my programs stopped working.

If I create a batch file like this:
echo HELLO WORLD
pause
"C:\Program Files\Caphyon\bin\x86\AdvancedInstaller.com" /edit "MyInstallerZB2B.aip" /SetVersion -increment

and run it, I cannot run the SAME batch file or any other batch file again (they open and close without doing anything) until I reboot my machine.

So if I have a batch file that increments and rebuilds, it does not work.

Running each line in the batch file separately in the command line does work - it is just the batch files that are broken (CMD and BAT).
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: AdvancedInstaller.com and Batch Files

Hi,

I've tested your scenario, but I cannot reproduce the behavior. Can you reproduce the problem on multiple clean machines?

Also, make sure you use the correct path for "AdvancedInstaller.com" file ("C:\Program Files\Caphyon\Advanced Installer 9.9\bin\x86\AdvancedInstaller.com" is the default path in Windows XP).

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
debian69
Posts: 9
Joined: Mon May 02, 2011 3:57 pm

Re: AdvancedInstaller.com and Batch Files

Hi folks!
I have exactly the same problem. My Scripts worked fine for a couple of months and stopped working with the new version 9.9.
I seperated the two function calls from my scripts for you:

Code: Select all

"C:\Programme\Caphyon\Advanced Installer 9.9\bin\x86\AdvancedInstaller.com" /edit "K:\installation\msi\Advanced Installer\Lupus\Corba\LUPUS_Startfenster_Corba.aip" /SetVersion 47.47
"C:\Programme\Caphyon\Advanced Installer 9.9\bin\x86\AdvancedInstaller.com" /execute "K:\installation\msi\Advanced Installer\Lupus\Corba\LUPUS_Startfenster_Corba.aip" "K:\installation\msi\Advanced Installer\Lupus\Corba\BuildBatch\OutputDefStart.aic" -nofail
The file "OutputDefStart.aic" looks like this:

Code: Select all

;aic
SetOutputLocation -buildname BAT -path C:\temp\AdvancedInstaller
Rebuild
The edit-call works properly. The GUI of Advanced Installer tells the right version number after the call. If there is a second call in the next line of the script (like my sample) it does not do anything. I tried to put a "call" in front - no difference.

Hope you can help us...

Kind regards,
Thorsten Baumeister
debian69
Posts: 9
Joined: Mon May 02, 2011 3:57 pm

Re: AdvancedInstaller.com and Batch Files

Hi folks (2),
you don't have to reboot the computer, if you use a fresh cmd-window every time you want to use the script. But that's no real solution, maybe it's a work around...

Kind regards,
Thorsten Baumeister
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: AdvancedInstaller.com and Batch Files

Hi,

Indeed, this seems to be an Advanced Installer issue. A fix will be available in a future version of Advanced Installer, thank you for bringing it to our attention.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: AdvancedInstaller.com and Batch Files

Hi,

This issue was fixed in Advanced Installer 10.0 which will be available very soon. Just send us an e-mail to support at advancedinstaller dot com if you need an urgent fix.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”