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!

johan
Posts: 1
Joined: Thu Aug 20, 2015 11:50 am

VBScript & Wscript

Good Day.

We have a VB script which executes an application (exe) on Windows when the installation of our application is happening. Below is the code we use to execute the exe:

cmdLine = "<application>"
Dim WshShell
Set WshShell = CreateObject("WScript.Shell")
WshShell.Exec(cmdLine)

This vbscript works when you run it on the command line, but in AI the application is not executed. Further research yielded this: "http://www.advancedinstaller.com/user-guide/faq-ca.html". It states that the windows installer does not support wscript objects. Is there any other way to execute the application from AI? The VB script enumerates all the drives in the system and then calls the application for each of the drive letters.

Any help appreciated.

Johan
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: VBScript & Wscript

Hi Johan and welcome to our forums.

I'm not sure why the script does not work for you when you try to execute it in Advanced Installer, but I tested your code in an Advanced Installer project and it worked as expected.

Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com, so we can investigate them?

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

Return to “Common Problems”