Deploy-Application.exe want to use custom parameters

//Deploy-Application.exe want to use custom parameters
Deploy-Application.exe want to use custom parameters 2017-02-13T19:39:29+00:00

The Toolkit Forums Deployment Scripts Deploy-Application.exe want to use custom parameters

  • Author
    Posts
  • Deepak
    Participant
    Post count: 2
    #1939 |

    Hi Experts,

    I want custom parameter with Deploy-Application.exe

    For example : We have single citrix application (Receiver), Each region we have to deploy with custom url.

    I have created the .bat file for 4 different region. now my issue is how can I create single package and give the parameter for each batch file?

  • Daniel
    Participant
    Post count: 2

    Hi Deepak,

    can’t you get the location from the Computername?

    We got one Single Receiver Package and have a config for each location and the Location is generated on the runtime of the package.

  • Justin
    Participant
    Post count: 13

    Hi,

    You could try this. Add an additional variable in the Param block of you Deploy-Application.ps1 file.

    Param (
    [Parameter(Mandatory=$false)]
    [ValidateSet(‘Install’,’Uninstall’)]
    [string]$DeploymentType = ‘Install’,
    [Parameter(Mandatory=$false)]
    [ValidateSet(‘Interactive’,’Silent’,’NonInteractive’)]
    [string]$DeployMode = ‘Interactive’,
    [Parameter(Mandatory=$false)]
    [switch]$AllowRebootPassThru = $false,
    [Parameter(Mandatory=$false)]
    [switch]$TerminalServerMode = $false,
    [Parameter(Mandatory=$false)]
    [switch]$DisableLogging = $false,

    # Custom citrix URL
    [string]$CustomURL = ‘https://locationToDefaultCitrixSite’
    )

    In your installation parameters for citrix you can call for $CustomURL.

    The bat files you created can now have something like this configured:

    Deploy-Application.exe -CustomURL http://Someothercitrixsite

You must be logged in to reply to this topic.