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!

987346342
Posts: 4
Joined: Wed Dec 30, 2015 4:52 pm

Built in scripting

Does Advanced Installer have any built in scripting or do the Powershell and VB scripts require Powershell and VB be installed on the target machine? I would like to add a custom action script without assuming the user has anything installed.

Thanks!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Built in scripting

Hello,

The Windows Scripting Host dates back to Windows 98, so VBScript can be deployed to all of your Windows clients “out of the box.” On the other hand, PowerShell was released in 2006 and requires at least Windows XP. More importantly, it is not included in Windows distributions predating Windows Server 2008 and Windows 7, so you will need to deploy and install PowerShell on all of your XP, Vista, and Server 2003 hosts before you can get up and running with it.

Note that you can add the PowerShell prerequisite from our predefined list of prerequisites.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
987346342
Posts: 4
Joined: Wed Dec 30, 2015 4:52 pm

Re: Built in scripting

Thanks for the response Dan.

Are there any advantages or disadvantages or using VBScript vs JScript? I'm wondering if things like JScript being disabled for security reason but having VBScript still enabled are possible. I just want to make sure my installer will work in as many situations as possible.

Thanks again :)
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Built in scripting

Hello,

Note that we recommend you to use a DLL custom action for example, you can create your custom action as a custom action written in C# or a custom action written in C++, instead of VBScript and you can see some reasons why not to use VBScript.

You can take a look on the How to integrate and debug custom actions? article to see how you can execute your dll custom action, in this case a DTF C# custom action.

If there is anything else I can help you with, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
987346342
Posts: 4
Joined: Wed Dec 30, 2015 4:52 pm

Re: Built in scripting

Thanks for your help again Dan, I came to the same conclusion after finding this:

http://blogs.msdn.com/b/robmen/archive/ ... 36530.aspx

Although I decided to add the functionality to our app so that it happens on startup instead of in the installer.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Built in scripting

You're always welcome,

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”