Reply to Thread

Post a reply to the thread: Write a text file with embedded variables

Your Message

Click here to log in

What's the name of our main installation product (in uppercase letters), directly followed by the current year?

 

You may choose an icon for your message from this list

Additional Options

  • Will turn www.example.com into [URL]http://www.example.com[/URL].

Topic Review (Newest First)

  • 03-12-2007, 08:49 AM
    Jack T.

    Re: Write a text file with embedded variables

    Perfect!
  • 03-12-2007, 08:43 AM
    linder

    Re: Write a text file with embedded variables

    Yes, this should work fine.

    BTW, you can even go trough the file at runtime and then "replace" your own "text variables" with the real values. The "Handle String Function" function can do this.

    For example, if the text file includes **NAME** then just search for **NAME** and replace it with the real value.

    HTH,
    Friedrich
  • 03-12-2007, 08:35 AM
    Jack T.

    Re: Write a text file with embedded variables

    What I was looking for was a way to embed a text file with variables in it, then writing it to a variable named file. (Seems I did something like this a long time ago with an INI file.) However, this will work also. I just need to have a generically named file, edit it during install using the function you described, and then renaming it with your rename function.
  • 03-12-2007, 08:30 AM
    linder

    Re: Write a text file with embedded variables

    Great

    Friedrich
  • 03-12-2007, 08:28 AM
    Jack T.

    Re: Write a text file with embedded variables

    It's perfect.
  • 03-12-2007, 08:21 AM
    linder

    Re: Write a text file with embedded variables

    Jack,

    What about using the "Handle Text File Operations..." script function?

    Friedrich

    Friedrich Linder
    Lindersoft
    www.lindersoft.com
    +1.954.252.3910

    "point. click. ship" - that's SetupBuilder 6
    Create Windows Vista ready installations in minutes

    -- Official Comodo Code Signing and SSL Certificate Partner
  • 03-12-2007, 08:17 AM
    Jack T.

    Re: Write a text file with embedded variables

    Hmm. Apparently I'm on my own for that one.
  • 03-09-2007, 01:18 PM
    Jack T.

    Write a text file with embedded variables

    How can I write a text file that expands embedded variables? EG: I need to be able to create a text file that contains embedded variables to be expanded that can personalize the content and also have a file name controlled by a variable.

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •