Scripting - Advanced Installer Community
Morantex
Posts: 16
Joined: Tue Jun 18, 2013 7:56 pm

Scripting

I can't find much in the Help system for "scripts".

Is there any kind of documentation or tutorial for writing scripts?

In my case I'd like to package a set of registry checks as a set of 'functions' so I can call them (stuff like see if any versions of Visual Studio are installed, if so what versions etc).

Thx

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

Re: Scripting

Hello,
Is there any kind of documentation or tutorial for writing scripts?
In this article you can find some information and examples about VBScript.

We also recommend you to use a DLL, 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 .
In my case I'd like to package a set of registry checks as a set of 'functions' so I can call them (stuff like see if any versions of Visual Studio are installed, if so what versions etc).
You can also use a custom search, where the object of your search can be either a component, registry key, folder, a file etc.
In order to search for a registry entrance you can go in the “Search” page and use the [New Search Wizard] toolbar button and follow step-by-step wizard directions. The result of your search will be stored in a public property(e.g. VS_SEARCH ).

Indeed, if you use your own custom action you have the main advantage that you can call it whenever you need instead of a predefined search action which will be performed only once during AppSearch standard action and you can only use the property of the regarding search.

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

Return to “Common Problems”