Deploy-Application.exe want to use custom parameters

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?

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.

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

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.