Add-Type : (0) : Warning as Error: Invalid search path 'C:\Program Files
(x86)\Sybase\OCS-12_0\lib' specified in 'LIB environment variable' -- 'The
system cannot find the path specified. '
(1) : using System;
At C:\Windows\ccmcache\v\AppDeployToolkit\AppDeployToolkitMain.ps1:7603 char:4
+ Add-Type -TypeDefinition $QueryUserSessionSource -Language CSharp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (error CS1668: W...th specified. ':
CompilerError) [Add-Type], Exception
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.
AddTypeCommand
Comments: I think the developers will need OS version/Type/ToolKit version/etc. The line ``` Add-Type -TypeDefinition $QueryUserSessionSource -Language CSharp ``` hints that the issue is in CSharp code to determine that satus of the current session (User / System, etc.) I googled __CS1668__ to find that it means: _Invalid search path 'path' specified in 'path string' -- 'system error message' The path supplied to /lib at the command line was not valid, or a path in the LIB environment variable is invalid. Check the path used to verify that it exists and can be accessed. The error message in single quotation marks is the error returned from the operating system._ But this says that LIB is not really needed: [http://www.bizicbojan.com/post/2012/07/09/Fixing-CS1668-Invalid-Search-path-in-LIB-environment-variable-.aspx](http://www.bizicbojan.com/post/2012/07/09/Fixing-CS1668-Invalid-Search-path-in-LIB-environment-variable-.aspx) __ I'm not one of the developers__ but I can tell you I don't have [C:\Program Files (x86)\Sybase\OCS-12_0\lib folder] folder on my boxes and this code works fine. You will have to provide more info to describe what makes your box so "special". You could also try the beta version 3.6 in the [__Source Code__] section -select __Toolkit__ and click the __download__ button.
(x86)\Sybase\OCS-12_0\lib' specified in 'LIB environment variable' -- 'The
system cannot find the path specified. '
(1) : using System;
At C:\Windows\ccmcache\v\AppDeployToolkit\AppDeployToolkitMain.ps1:7603 char:4
+ Add-Type -TypeDefinition $QueryUserSessionSource -Language CSharp
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (error CS1668: W...th specified. ':
CompilerError) [Add-Type], Exception
+ FullyQualifiedErrorId : SOURCE_CODE_ERROR,Microsoft.PowerShell.Commands.
AddTypeCommand
Comments: I think the developers will need OS version/Type/ToolKit version/etc. The line ``` Add-Type -TypeDefinition $QueryUserSessionSource -Language CSharp ``` hints that the issue is in CSharp code to determine that satus of the current session (User / System, etc.) I googled __CS1668__ to find that it means: _Invalid search path 'path' specified in 'path string' -- 'system error message' The path supplied to /lib at the command line was not valid, or a path in the LIB environment variable is invalid. Check the path used to verify that it exists and can be accessed. The error message in single quotation marks is the error returned from the operating system._ But this says that LIB is not really needed: [http://www.bizicbojan.com/post/2012/07/09/Fixing-CS1668-Invalid-Search-path-in-LIB-environment-variable-.aspx](http://www.bizicbojan.com/post/2012/07/09/Fixing-CS1668-Invalid-Search-path-in-LIB-environment-variable-.aspx) __ I'm not one of the developers__ but I can tell you I don't have [C:\Program Files (x86)\Sybase\OCS-12_0\lib folder] folder on my boxes and this code works fine. You will have to provide more info to describe what makes your box so "special". You could also try the beta version 3.6 in the [__Source Code__] section -select __Toolkit__ and click the __download__ button.