login vsi company logo login vsi company logo 250x40
header-02.jpg
  • Home
  • Blog
  • Login AM
  • Creating Custom Scripts within Login AM by Using Custom Variables

Warning

JUser: :_load: Unable to load user with ID: 22029

Creating Custom Scripts within Login AM by Using Custom Variables

Creating Custom Scripts within Login AM by Using Custom Variables

The power of Login AM is the dynamic design. When I create a component I am able to fill in the settings on the top level of the component. These values can be used in Linked Values throughout the complete component from a Dynconf to a Citrix Published application.

Toplevel Component:

toplevel component

What often is forgotten is that the name and value is used as a system variable during execution of the component. This is very handy because this gives me the possibility to use these ‘custom’ variables inside a custom script.

In this example I am going to create a path from the variables SOURCEDIR and REVISION.

The easiest way to combine the SOURCEDIR and the REVISION is to create a PowerShell variable.

$APPV_SourcePath

Then we need to call the system variables in the powershell script. This can be done by using the following command: $env:<VariableName>

In my example it will look like this:

$env:SOURCEDIR
$env:REVISION

Now we need to combine all parts.

$APPV_SourcePath = $env:SOURCEDIR + '\'+ $env:REVISION

The command write-host plus the variable is a nice way to check what the outcome is during scripting. The result will be display in your PowerShell window.

Write-host $APPV_SourcePath

Some useful command for showing all system variables:

Get-ChildItem env:

I hope this information helps you in creating custom scripts within Login AM.

About the author

Tags: How-to, Login AM

What our customers are saying

Shaun Donaldson - Bitdefender

"As a software vendor, the reason that we became a Login VSI customer is that we wanted to see how we compared to our competitors. After talking to VMware and Citrix about how they test their products, it became clear to me that we needed to follow our strategic partners and be able to show how our product compares favorably to our competitors. We just completed a round of tests using Login VSI and you will see white papers showing performance data."

Shaun Donaldson, Alliances Director at Bitdefender


Keith Hageman - Micron

"When I joined Micron in June 2014, the first thing I did is find out if we have a copy of Login VSI and if we could run a 1000 user test case instance (which we could). We use Login VSI to run tests for customers and for case studies and I really have loved Login VSI for the last 3 or 4 years.”

Keith Hageman, Senior Solutions Architect at Micron Technology


Tony Reynolds - 23Technology

"As a cloud and virtualisation consultancy, 23Technology use Login VSI to prove the scalability of our paper designs for our customers. It has become an important part of our assurance process. In one instance, it helped us to successfully complete a project by showing that, with correctly configured anti-virus, the designed solution scaled to meet our client’s needs."

Tony Reynolds, Technical Director at 23Technology

Login VSI, Inc.

300 Tradecenter

Suite 3460
Woburn, MA 01801

Phone: +1 844 828 3693

Login VSI B.V.

De Entree 85
1101 BH Amsterdam
The Netherlands

Phone: +31 20 705 1200