+ Reply to Thread
Results 1 to 7 of 7

Thread: Set Compiler Variable [OUTPUTDIR] problem

  1. #1

    Default Set Compiler Variable [OUTPUTDIR] problem

    I have a line in one of my scripts that checks a compiler variable and then set the [OUTPUTDIR] variable accordingly. It never works. I tried moving the line to the earliest possible location in the script, just under the heading
    ! Important: Initialize Default install folder and program group variables.

    The actual line that does not work is:

    #Set Compiler Variable [OUTPUTDIR] = "C:\CMSSR507\SglUsrUP"

    In the Visualizer the [OUTPUTDIR] is set to C:\CMSSR507\Inst

    The Compiler places the output files (Web Install) in the C:\CMSSR507\Inst folder pointed to in the visualizer, not in the C:\CMSSR507\SglUsrUP folder that was specified in the "Set Compiler Variable" command.

    What am I doing wrong?

    -O. D.-

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

    Default Re: Set Compiler Variable [OUTPUTDIR] problem

    Hello,

    The [OUTPUTDIR] compiler variable is set before the first script is compiled. The same is true for [EXENAME]. You have to use a "Release" (see Releases Visualizer) to compile the same script to different output locations.

    Does this help?

    Friedrich

  3. #3

    Default Re: Set Compiler Variable [OUTPUTDIR] problem

    Aha! Now it works. This leads to a new question. We sell Single User, Network 5 User and Network 10 user versions of our software. We would like to make sure the user is running the correct updateinstaller (usually a web install package). If they upgrade from Single User to network user, that is a new install and we expect the new version to be different from the old version.

    Here's the question. Would you recommend that each of the three versions listed above get their own unique ProductGUID? Perhaps their own UpGradeGUID also?

    We had originally planned to only give unique GUIDs to different products so that MyProg1.exe gets one GUID for Single User, Network, Demo, etc. and OtherProg2.exe gets a different GUID for all its releases.

    I am now wondering if each version (release) should get its own GUID and what the advantages would be?

    -O. D.-
    "That's very funny, Scotty, now beam down my clothes."

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

    Default Re: Set Compiler Variable [OUTPUTDIR] problem

    It depends on your system.

    Is there a difference between the Single User, Network 5 User and Network 10 user edition? I assume, the main executable is different and the license key that identifies the edition?

    Friedrich

  5. #5

    Default Re: Set Compiler Variable [OUTPUTDIR] problem

    Yes, the EXE files are different. Sometimes the differences are minor, but they are still there.

    Thanks for the prompt reply.

    -O. D.-

  6. #6

    Default Re: Set Compiler Variable [OUTPUTDIR] problem

    Hello,

    In answer to your question, "I assume, the main executable is different and the license key that identifies the edition?
    ".

    Yes, they are different, so do you recommend unique Product/Upgrade GUIDs or identical GUIDs?

    I have searched the documentation and can't find any explanation or suggestions on when to use unique GUIDs and when to share GUIDs.

    Can you give us a guidline as to when unique GUIDs are a good idea and when shared GUIDs are a good idea?

    -O. D.-

  7. #7
    Join Date
    Mar 2004
    Posts
    4,315

    Default Re: Set Compiler Variable [OUTPUTDIR] problem

    Hello,

    Because your Single User and Network X editions have different (binary) files, it's similar to different products. In this case I would suggest to use different GUIDs here.

    The Product GUID must be unique across all Windows software because it is used to uniquely identify your product on Windows systems, to power web update, and to store the uninstallation information.

    Friedrich

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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
  •