Scripting AI: Popup in case of errors - 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!

canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Scripting AI: Popup in case of errors

Hello everyone.

I am trying to script AI and noticed that AI popups its commandline parameter help popup in case of errors

start /wait AdvancedInstaller.exe /edit myproduct.aip /SetVersion

After closing of the interactive dialog the environment variable ERRORLEVEL is set to -536805276 (echo %errorlevel%).

For scripting it might be useful to be able to turn the help dialog off, with a further switch for example, or to print the help into stdout/stderr, if available, instead of showing the dialog. Can this be configured?


With best regards

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

Re: Scripting AI: Popup in case of errors

Hi,

Please use "AdvancedInstaller.com" instead of "AdvancedInstaller.exe" and let me know if the problem persists. Note that "AdvancedInstaller.com" handles the command line interface.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Scripting AI: Popup in case of errors

Hello Cosmin,

excellent, I wasn't sure which to use as the help dialog used .exe, so I went with that.

Thank you.



Bye bye

clemens

Return to “Common Problems”