Reply to Thread

Post a reply to the thread: Passing a Constant or Variable Name to Install File(s)

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)

  • 12-13-2005, 11:15 AM
    LoboMgr

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

    Thx. Works Great!
  • 12-13-2005, 12:28 AM
    linder

    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?
  • 12-13-2005, 12:11 AM
    LoboMgr

    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

Posting Permissions

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