PDA

View Full Version : Installed files list



NewsArchive
06-07-2010, 01:44 AM
Hi Friedrich,

If my templates are installed for C7 I need to go through the *.tp* files
and do a search/Replace on ",WIN32" and ",PASCAL" for the different
implementation of #RUNDLL in C7 compared to C6 and older. Currently I use a
DLL to do the search/replace and it works great but in I have to call it for
each .tp* file that has #RUNDLL in it, in each of my install scripts. Can
you think of a good way to make this generic so I don't have to do this in
each script? I can't come up with anything<g> In some of the scripts
#RUNDLL is only in .tpl while in others it is only in .tpw files.

Best regards,

--
Arnor Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com

NewsArchive
06-07-2010, 01:45 AM
Hi Arnór,

> If my templates are installed for C7 I need to go through the *.tp* files
> and do a search/Replace on ",WIN32" and ",PASCAL" for the different
> implementation of #RUNDLL in C7 compared to C6 and older. Currently I use
> a DLL to do the search/replace and it works great but in I have to call it
> for each .tp* file that has #RUNDLL in it, in each of my install scripts.
> Can you think of a good way to make this generic so I don't have to do
> this in each script? I can't come up with anything<g> In some of the
> scripts #RUNDLL is only in .tpl while in others it is only in .tpw files.

I do a similar thing in the LSZip installation. But I use the "Handle Text
File Operation" to handle the search/replace stuff.

As I understand it, your DLL approach works great. So my advice is, "don't
touch it" <g>.

Friedrich

NewsArchive
06-07-2010, 01:45 AM
Hi Friedrich,

> I do a similar thing in the LSZip installation. But I use the "Handle Text
> File Operation" to handle the search/replace stuff.
>
> As I understand it, your DLL approach works great. So my advice is, "don't
> touch it" <g>.

The issue isn't the S&R - I had problems with using the "Handle Text File
Operation" in SB and had some problems reported from users where it would
take the text being searched for and add it at the bottom of the file if the
text wasn't found so I rolled my own.

The issue is with the list of files to do the S&R on. Right now I have to
do this in each script for each template file that I may need to change and
have to be careful if I add .tpw files using #RUNDLL to any of the products
in the future to remember to add them to this. This is fragile at best. I
understand that at install time I cannot get a list of the files that were
installed so I'm looking for an alternative method, either within SB or
outside. Guess I could create a file in BA with a list of the .tp* files
and include that in the install, put that someplace special and then use my
dll to read the file and do the S&R there... Hmmm.... Sorry, just thinking
out loud here...

Best regards,

--
Arnór Baldvinsson - Icetips Alta LLC
Port Angeles, Washington
www.icetips.com - www.buildautomator.com - www.altawebworks.com

Icetips product subscriptions at http://www.icetips.com/subscribe.php