Question
· Jul 16, 2019

Working with variable from .cmd file in Ensemble manifest

Hi,

let me apprise you with my problem:

I want to install Ensemble by Unattended Custom Instalation which use my Installation Manifest. It should start from cmd. So I've got everything in .cmd file to start whole installation by only double click. The problem is that I want to set some variables here in .cmd file and use them in Installation Manifest for installation Ensemble. It is about variable with path to some packages which should be imported during instalation.

So are there some solutions, or can you give me link to documentation.

Thanks for all answers.

Zdeněk

Discussion (6)0
Log in or sign up to continue

1.Variables are defined or referenced via <var>, yes, but you can pass the values to the Installer from your script. For example, check MDX2JSON installer:

Set pVars("User")="web"
Set pVars("Password")="dsweb"
Set pVars("Namespace")="TEMP3"
Set pVars("Import")=1
Set pVars("SourceDir")="C:\temp\MDX2JSON\MDX2JSON"
Do ##class(MDX2JSON.Installer).setup(.pVars)

2. You set environment variable in cmd (Windows):

set NEWVAR=SOMETHING

And after that you can get it from installer with:

$system.Util.GetEnviron("NEWVAR")