This issue needs a solution.

LayerName variable in Virtual Composer

Created: 20 Jul 2012
Login to vote
0 0 Votes

Hi

We have a vb script embedded into Post Import event which permissions the Installdir and other folders within the layer for Everyone\Full Control

The script is ececuted via a line in Packager.ini

It needs the Layer Name passed to it as an argument for the script to work which we manually enter in the Add/Modify Execution Script windows in Composer

Does anyone know the variable name that composer uses which can be automated in packager.ini

Have tried this but no joy

packager.autoscript.5=Description=*BuildCheck*|Error=*BuildCheckError*|Type=OnPostImport|Attributes=15| _

Bundle=1|File=$packagerpath$\Samples\ExecutionScripts\Build_Check.bat|Parameters="ASPackage_Name"

 

Any help greatfully received..

 

 

 

 

 

 

 

 

 

Filed Under

Comments

ryanmc's picture
ryanmc
Symantec Employee
20
Jul
2012
Votes
0

RE: LayerName variable in Virtual Composer

Are you using the layer name as something to pass to SVSCmd or to get the location of the layer?  In most cases SVSCmd will take the layer ID as well as the layer name, so you could try the Layer ID instead.

In the current release the $ASPackage_GUID$ will return the package identifier which will match the layer ID.  However since this is a streaming variable it isn't processed during virtualization layer events (slightly different than streaming script stages).

24
Jul
2012
Votes
0

many thanks I'll try the GUID

many thanks

I'll try the GUID variable instead