LayerName variable in Virtual Composer
Created: 20 Jul 2012
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..
Comments
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).
many thanks I'll try the GUID
many thanks
I'll try the GUID variable instead
Would you like to reply?
Login or Register to post your comment.