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

Replace String in .sql file


1 reply to this topic

halikkat

halikkat
  • Members
  • 7 posts

Posted 15 September 2005 - 09:33

Hi,

I am trying to replace string in a file

My file is file.sql (SQL scirpt that inserts lines to SQL tables)

file.sql is installed during setup. What I am trying to do is change "c:\program files\program\xxx.exe" string to "[INSTALLDIR]" inside the file.

I know I can do this with SQL connections and script directly to the database, but I don't want to do that. I just want to replace string in a file.

Is there easy way to do this ??

Help me, please



Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 15 September 2005 - 17:46

There's no built in functionality to replace a string in a file (except in the SQL view) so you would have to create a custom action (DLL for instance) for that purpose.