Include Scripts folders

Got a problem you cannot solve? Try here.
ranquild
Posts: 4
Joined: Thu Nov 26, 2015 7:28 am

Include Scripts folders

Postby ranquild » Thu Jan 21, 2016 2:42 am

Is there any option to organize scripts in project in folders? Currently I have more than 20 scripts and grouping some of them into folders could help a lot.

bokkie
Posts: 767
Joined: Sun Feb 08, 2009 6:30 am

Re: Include Scripts folders

Postby bokkie » Thu Jan 21, 2016 5:19 am

The way I do it works for me but I don't know if it's the ideal approach. For example:

I created a new project and saved it. Inside the project's disk folder I created a new sub-folder with the Windows Explorer called, for example, MyScripts.

Select the Project tab in the IDE and select the Include Scripts node. Right-click and select the Create New Script. Select the folder name you just created (MyScripts) and enter a name for the new script file, for example Test123 and click the Save button. That will create a blank script file called MyScripts\Test123.mia.

Repeat for as many script files as you want to create and create new folders if you want to. After you've done that, exit from the IDE. Copy over the actual scripts files containing your code overwriting the mia files of the same name.

Open the project in the IDE. Select the Include Scripts node again. You should see all your script files that you've created. If you double-click on them you'll see your code. Select a line in any script file and include a script using the Include Script MSIcode statement and select the script file from the dropdown.

That's how I do things. A little long-winded perhaps but it's how I've done it in the past. I hope this helps you.
Peter. Smartly dressed, he still resembles an unmade bed.
InstallAware MVP

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Include Scripts folders

Postby FrancescoT » Thu Jan 21, 2016 12:52 pm

Instead I always use a separate folder to store all my custom scripts and when I need to use one of them, I just "Add the Existing Script" into the project.

Of course, this works for me and may not work for others.
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 120 guests