+ Reply to Thread
Results 1 to 5 of 5

Thread: Changing [EXENAME] at compile time

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1

    Default Changing [EXENAME] at compile time

    I like the compiler directives capabilities a lot and have created one script to make slightly different versions of the same app.

    I would love to be able to do a SET VARIABLE on the [EXENAME] (or something similar), so that when I run my script with a different passed var, I can tell my script to use a different compiled name and final location for my newly created single-file image.

    As it currently stands, I can't even give SB5 a full path and filename value for [EXENAME] at all. So, SB5 places the final compiled exe where it seems fit and then requires me to dig around in Win Explorer to get the file myself to include in my CD Build.

    I find this area to be the only real weakness in the product thus far. This is somewhat important to me to be able to tell SB5 the where and what of the final created [EXENAME]. Hope that Friedrich can work some magic on this one.
    Last edited by Doug I; 05-04-2005 at 09:16 AM.

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

    Default Re: Changing [EXENAME] at compile time

    Dough,

    What we need is a function to set the value of a compiler variable. The "Set Value" function only works on installer variables (e.g. %TEST%). Compiler variables are defined on the Compiler Variables screen.

    BTW, very good idea I'll see what I can do here. It should not be a problem to add a new Script Management function so we can set the value of a compiler variable at compile time.

    Thanks,

  3. #3

    Default Re: Changing [EXENAME] at compile time

    Damn Linder... you were quick to reply.

    Please note the edits I made to the original post.
    I forgot to mention that the path of where the [EXENAME] is stored is also important as well. This is currently lacking, even in the IDE.

    Thanks,
    Doug

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

    Default Re: Changing [EXENAME] at compile time

    Dough,

    <g>

    I fear that we cannot modify the path of where the [EXENAME] is stored. The location of the project file determines where the setup.exe is saved.

    If your test1234.sb5 project is located under c:\my projects then SB5 compiles the [EXENAME] under c:\my projects\test1234

    If you compile a web installer, its located under c:\my projects\test1234\Web

  5. #5

    Default Re: Changing [EXENAME] at compile time

    Well if the path thingie cant be done with [EXENAME], at least there will be other workarounds I could employ if you address the other 2 enhancements I suggested.

    I could have the compiler call a .bat file at the end of the script that would copy my setup.exe files to where I want. The other suggestion of renaming the [EXENAME] in the script would also still help. Then I won't have to worry about which exe is which from the same run install script.

    That being said, maybe you should at least allow the [EXENAME] in the General Information Settings to have a path name option. So, in the IDE I could say something like [ROOT]\setup.exe for the [EXENAME] value.

    Just a thought.

+ 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. #00010: How to get the setup.exe compile date?
    By FAQ in forum SetupBuilder FAQs, Tips and Techniques
    Replies: 0
    Last Post: 02-08-2006, 01:03 AM
  2. #00006: Compile a script using SetupBuilder command line switches
    By FAQ in forum SetupBuilder FAQs, Tips and Techniques
    Replies: 0
    Last Post: 02-02-2006, 03:44 AM
  3. Question on getting value from INI file at compile time
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 2
    Last Post: 10-13-2005, 04:55 AM
  4. Setting [EXENAME] at compile time
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 6
    Last Post: 07-27-2005, 10:26 AM
  5. SB5 / Atomic Clock Time Test
    By NewsArchive in forum SetupBuilder - NNTP
    Replies: 21
    Last Post: 07-27-2005, 10:25 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
  •