Results 1 to 4 of 4

Thread: #pragma problem

  1. #1

    Default #pragma problem

    Moin,
    Following problem:

    I have compiler variable:

    #ifcompvar [_PROG_] Equals "Test1" then
    #pragma IDEPLOY.CLI = "IDEPLOY1.CLI"
    #end

    #ifcompvar [_PROG_] Equals "Test2" then
    #pragma IDEPLOY.CLI = "IDEPLOY2.CLI"
    #end


    When i compile the setup and use "Test1" is the IDEPLOY.CLI NOT
    IDEPLOY1.CLI but IDEPLOY2.CLI

    What´s wrong ?

    Dirk Büchel

  2. #2

    Default Re: #pragma problem

    A "#pragma" is a very specific SetupBuilder compiler directive. It is
    always executed and you can't use conditional statements to control (e.g.
    exclude or include) its execution. The pragma is executed before the real
    compilation process begins.

    Friedrich
    Attached Images Attached Images  

  3. #3

    Default Re: #pragma problem

    In theory (I haven't tested it), the following code can do what you want
    (see attached screenshot).

    BTW, I don't know why you have to change the IDEPLOY.CLI name. But please
    note that you have to compile your own version of wupdate.exe / wucheck.exe
    to support your new file name. You have to change all instances of
    "IDEPLOY.CLI" in the wupdate.sb7 and wucheck.sb7 projects and then
    distribute your customized clients. You can't use the standard clients!

    Hope this helps.

    Friedrich
    Attached Images Attached Images  

  4. #4

    Default Re: #pragma problem

    thank you,

    i have make following:
    #ifcompvar [_PROG_] Equals "Test1" then
    #set comiler variable [_ZAHLEXE_] ="1"
    #end

    #ifcompvar [_PROG_] Equals "Test2" then
    #set comiler variable [_ZAHLEXE_] ="2"
    #end

    #pragma IDEPLOY.CLI = "IDEPLOY[_ZAHLEXE_].CLI"


    i think it´s work

    Dirk Büchel

Thread Information

Users Browsing this Thread

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

Posting Permissions

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