Execute inline Script Code - Advanced Installer Community
m.blinio
Posts: 7
Joined: Tue Jan 20, 2015 10:02 am

Execute inline Script Code

Hi,

I have a problem with custom action "Execute Inline Script Code".

In vbs code:

Code: Select all

Set WshShell = CreateObject("WScript.Shell")		
WshShell.Run """C:\\Windows\\SETUP\\Setup.exe""",, True
With the following parameter:
- Custom action deferred;
- Wait for custom action to finish before proceeding;
- Fail installation if custom action return an error;
- Execution stage condition : Install

The custom action return the following error code 1720

Thanks,
Mark.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Execute inline Script Code

Hi Mark and welcome to Advanced Installer forums.

I'm not sure why you encounter that problem. It may appear if the file specified on the second line of your script is not found at that location. I tested it with the file present at the specified location and it was correctly launched for me.

Also, please note that if you want to launch another installation package from your current installation package, you should use the Prerequisites support as detailed in the Add Prerequisites tutorial. It will not work through a custom action.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
m.blinio
Posts: 7
Joined: Tue Jan 20, 2015 10:02 am

Re: Execute inline Script Code

Thanks, resolved.
The path of the file contained the character "_", this caused the error.

Best regards,
Mark.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Execute inline Script Code

You're welcome Mark. I'm glad you got this working.

Just let us know anytime you need help.

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

Return to “Common Problems”