Community Forums
Results 1 to 5 of 5

Thread: Increment numerical value in InstallAnywhere

  1. #1
    Join Date
    Aug 2018
    Posts
    1

    Increment numerical value in InstallAnywhere

    have a question for those of you who have worked with InstallAnywhere:

    I essentially have written a while loop in an InstallAnywhere project. What I would like to find is an easy and simple way to implement a counter inside this "While loop". Here is some pseudo code of my attempt:

    Set InstallAnywhere Variable: $COUNT$ = 0
    Jump Label: while
    Execute Script/Batch File:
    @echo off
    set /a TEMP_NUM=$COUNT$+1 > nul
    echo %TEMP_NUM%
    Set InstallAnywhere Variable: $COUNT$ = $EXECUTE_STDOUT$
    Jump: while Rule: $COUNT$ [Less Than or Equal to] 100
    The above code sets $COUNT$ to the following:
    Nox Showbox Mobdro

    Loop 0:
    1
    Loop 1:
    1
    Loop 2:
    1
    ...
    I wonder if this happens because InstallAnywhere is replacing $COUNT$ inside the batch file with 0 in the first loop, and then in subsequent loops it re-uses the same batch file with $COUNT$ already substituted in (like in a batch for loop or if statement).
    Last edited by williamsgopal; 08-10-2018 at 01:57 PM.

  2. #2
    Join Date
    Aug 2018
    Posts
    1

    Yes it Allow

    Yes, InstallAnywhere allows you to create "actions" and you just fill in the details. There is an action that executes whatever you type into the Text Area and stores the output in a variable ($EXECUTE_STDOUT$). I am unsure how these actions are implemented except that they are implemented using java. It could be that the Text Area that holds the batch code is saved to a batch file with the Install Anywhere variables substituted in punjabi status and then when the action is executed again, it just reruns the saved batch file instead of recreating it. That would mean my solution would not work.

  3. #3
    Join Date
    Aug 2018
    Posts
    1

    Installanywhere problem

    Hellow Community, I'M Jaisuff and I have Windows 8.1 and am trying to update a program (ROS offline - Irish tax authority's prog) I get this message -The installer cannot run in this UI mode. To specify the interface mode, use the – i command-line option, followed by the UI mode identifier. The valid UI modes are GUI, Console, and Silent. What can I do quickpayportal

  4. #4
    Join Date
    Aug 2018
    Posts
    1
    Quote Originally Posted by williamsgopal View Post
    have a question for those of you who have worked with InstallAnywhere:

    I essentially have written a while loop in an InstallAnywhere project. What I would like to find is an easy and simple way to implement a counter inside this "While loop". Here is some pseudo code of my attempt Mobdro:

    Set InstallAnywhere Variable: $COUNT$ = 0
    Jump Label: while
    Execute Script/Batch File:
    @echo off
    set /a TEMP_NUM=$COUNT$+1 > nul
    echo %TEMP_NUM%
    Set InstallAnywhere Variable: $COUNT$ = $EXECUTE_STDOUT$
    Jump: while Rule: $COUNT$ [Less Than or Equal to] 100
    The above code sets $COUNT$ to the following:
    Nox Showbox Mobdro

    Loop 0:
    1
    Loop 1:
    1
    Loop 2:
    1
    ...
    I wonder if this happens because InstallAnywhere is replacing $COUNT$ inside the batch file with 0 in the first loop, and then in subsequent loops it re-uses the same batch file with $COUNT$ already substituted in (like in a batch for loop or if statement).
    Can you describe easily?
    Thanks
    James

  5. #5
    Join Date
    Aug 2018
    Posts
    1

    Lightbulb Increment numerical value in InstallAnywhere

    Set InstallAnywhere Variable: $COUNT$ = 0
    Jump Label: while
    Execute Script/Batch File:
    @echo off
    set /a TEMP_NUM=$COUNT$+1 > nul
    echo %TEMP_NUM%
    Set InstallAnywhere Variable: $COUNT$ = $EXECUTE_STDOUT$
    Jump: while Rule: $COUNT$ [Less Than or Equal to] 100
    In line 5 and 6, what you are essentially doing is: echo $COUNT$+1

    In line 7, you are setting COUNT to $EXECUTE_STDOUT$ ( which is usually 0, I believe? ) That would explain why it prints Jio4GVoice 1 everytime because $COUNT$ gets set to 0 at the end of each loop.

Posting Permissions

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