How do I use the exact path if the Software Package Location in a Batch Script?

Document ID : KB000044393
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction:       

        When deploying a software package that contains a .bat file, at times you will need the
        exact path location of the batch script, to run the program after it is transferred to the agent.                                

Question:

        How do I determine the exact Path of the Software Package Location in a Batch Script?

 

Environment:                                          

        Client Automation 12.8 or Newer.

 

Answer:

       You can use a a Software Package Location in a batch script by changing the following settings.
       First you need to go into the Procedure properties under the 'Embedded File' tab there is an
       option to add parameters.
       The parameter that needs to be added is under "Software Location Related Macros' and
        is '$msi MSI Administrative Installation path'

                                    SD options.jpg

              Once that is added you can declare the location in the batch script as shown in the example below.

 

      Script.png