Page 1 of 1

Script Reuse

Posted: Thu Jul 24, 2008 3:00 pm
by wfox
Is there an easy way to extract a section of an installaware script for reuse in another install script? I have a certain things I do in each of my installs that I end up copying / pasting into each of the installs. If I need to make changes to the sections, I need to go back and edit multiple times. It would be great to be able to set these common sections of scripts aside and reuse them in multiple installations.
Thanks.

Posted: Thu Jul 24, 2008 4:58 pm
by Alex_Ronquillo
This is easy to do. Create an empty script in any project, copy and paste the code you want to reuse in your projects. Once you have this script, copy the .mia and .mia.fld files to a place where you will remember. Now, all you need to do, is include this script to your projects, and once you modify it in one project, it will be modified for all.