PDA

View Full Version : Search & Replace



NewsArchive
01-24-2010, 05:11 AM
Friedrich,

Is script wide Search & Replace on the list for a future release?

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
01-24-2010, 05:13 AM
> Is script wide Search & Replace on the list for a future release?

I didn't provide much of a reason, did I?!<g>

I can easily take care of changes in the "Link To" paths since I use
variables for all of them. But, I have version specific file names
which don't lend themselves to variable use.

A script wide Search & Replace would allow me to search for, in this
case, 6545 and replace it with 6695 without having to edit every
instance of 6545. It sure would make it easier on this old man!<g>

Lee White

NewsArchive
01-24-2010, 06:12 AM
Hi Lee,

I don't think that we'll see a script wide Search & Replace in the near
foreseeable future. The underlying "binary script structure" of SetupScript
is too complex and there is more involved than just replacing an old value
with a new one.

Friedrich

NewsArchive
01-25-2010, 01:40 AM
Friedrich,

> I don't think that we'll see a script wide Search & Replace in the near
> foreseeable future. The underlying "binary script structure" of SetupScript
> is too complex and there is more involved than just replacing an old value
> with a new one.

Any possibility for a Search & Replace just for filenames? That's the
place where it gets rather tedious. In my case it's filenames that
match the build - and there are a fair number of them.<g>

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
01-25-2010, 01:41 AM
Hi Lee,

> Any possibility for a Search & Replace just for filenames? That's the
> place where it gets rather tedious. In my case it's filenames that
> match the build - and there are a fair number of them.<g>

Well, why don't you use a compiler variable instead of a fixed filename <g>
For example, instead of using RPM7_6695A.LIB or RPM7_6695L.LIB or
RPM7_LEG6695A.LIB you define RPM7_[BUILD]A.LIB or RPM7_[BUILD]L.LIB or
RPM7_LEG[BUILD]A.LIB. Then you only have to change the value of your
[BUILD] compiler variable.

[BUILD] = 6695 will result in RPM7_6695A.LIB, RPM7_6695L.LIB,
RPM7_LEG6695A.LIB

[BUILD] = 6670 will result in RPM7_6670A.LIB, RPM7_6670L.LIB,
RPM7_LEG6670A.LIB

No need to search and replace at all <g>. You can even automate this
process and just pass the compiler variable value via the command line and
SetupBuilder will do the rest.

Or enable the "SKU Management Configuration" option in your [BUILD] (or
[MY_BUILD] or whatever compiler variable name you use) and when you compile,
a wizard will ask for the value of the compiler variable.

"Search and Replace" is so old school for this kind of task <bg>

What do you think?

Friedrich

--
Friedrich Linder
Lindersoft
www.lindersoft.com
+1.954.252.3910

SetupBuilder is Windows 7 installation -- "point. click. ship"

-- Official Comodo Code Signing and SSL Certificate Partner

NewsArchive
01-25-2010, 01:42 AM
Friedrich,

> Well, why don't you use a compiler variable instead of a fixed filename <g>

Well, why didn't you say that to begin with?!<g>

Too damned easy is all I can say... well that and, THANK YOU!

> "Search and Replace" is so old school

Yeah, but so am I!<g>

--
Lee White

Enroll Today at http://CWaddons.com

Reports....: http://www.cwaddons.com/products/rpm/
Free Review: http://www.clarionmag.com/cmag/v11/v11n06rpm.html
Faxing.....: http://www.cwaddons.com/products/afe/

NewsArchive
01-25-2010, 01:42 AM
You are the only old dog that can be taught new tricks <g>

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm

NewsArchive
01-25-2010, 01:43 AM
I think you're wasting your life with this computer junk - you should be
having a career in politics <G>

jf

NewsArchive
01-25-2010, 01:43 AM
Troll <bg>

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm

NewsArchive
01-26-2010, 01:15 AM
I do a similar thing, except that I have SB retrieve the value from an
INI file (along with the password and a few other goodies).

Mike Hanson
www.boxsoft.net

NewsArchive
01-26-2010, 01:16 AM
INI files are so 90s! <g>

--
Russell B. Eggen
www.radfusion.com
Clarion developers: www.radfusion.com/devs.htm