+ Reply to Thread
Results 1 to 3 of 3

Thread: Passing a Constant or Variable Name to Install File(s)

  1. #1

    Default Passing a Constant or Variable Name to Install File(s)

    I have a file which I wish to "Install", whose name will change from time to time. I'd like set a constant (or variable) to the name, so that I can easily change it, and avoid doing a massive find/replace.

    Unfortunately, the following throws an error on the Install File line:

    #const $FNAME$ = "HelloWorld.txt"
    Install File "D:\$FNAME$ to %_SB_INSTALLDIR%\$FNAME$

    Any suggestions?
    Thx

  2. #2
    Join Date
    Mar 2004
    Posts
    4,307

    Default Re: Passing a Constant or Variable Name to Install File(s)

    Yes Use compiler variables instead of constants.

    #set compiler variable "[FNAME] = $FNAME$
    Install File "D:\[FNAME] to %_SB_INSTALLDIR%\[FNAME]

    Does this help?

  3. #3

    Default Re: Passing a Constant or Variable Name to Install File(s)

    Thx. Works Great!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Best way to restore deleted files if install is aborted?
    By ljwilson in forum SetupBuilder 'How Do I' Questions
    Replies: 3
    Last Post: 04-20-2006, 08:56 AM
  2. Using a variable in Install Files
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 11
    Last Post: 01-24-2006, 01:30 AM
  3. Passing a variable to the Web Update file
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 13
    Last Post: 12-14-2005, 12:19 AM
  4. Cannot open and compress service file - error
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 6
    Last Post: 12-06-2005, 04:40 AM
  5. Conditional copy files
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 1
    Last Post: 02-22-2005, 01:59 AM

Tags for this Thread

Posting Permissions

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