Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

Text Replacement


2 replies to this topic

finding_this_difficult

finding_this_difficult
  • Members
  • 21 posts

Posted 03 August 2005 - 21:33

I am trying to do a text replacement through a Basic MSI project. I want to replace a certain string with a Property. I have tried:

"Replace this string" with [MYPROPERTY]

"Replace this string" with {MYPROPERTY}

"Replace this string" with <MYPROPERTY>

and every time I get an error during the execution. Is it possible to replace strings in the SQL script with a property like that?

Thanks,
A

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 09 August 2005 - 14:43

Not sure if you can replace strings that consist of multiple words. Try
ReplaceThisString
instead, and replace it with [MYPROEPRTY]
Of course you should also make sure that [MYPROPERTY] contains a valid value.

finding_this_difficult

finding_this_difficult
  • Members
  • 21 posts

Posted 10 August 2005 - 23:10

Actually, as it turns out I had another problem that was causing the text replacement not to execute. I was still having some problems with the text replacement, but once I tried the property in brackets [] it worked.

Thanks,
A