Hyper-V OS: Windows 7 x64
PSAppDeployScript Version: 3.5.0
Powershell 3.0
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'm not asking for the PSAppDeployKit to create the path, however, it appears that the psappdeploykit is enumerating the SYSTEM environment variables and testing validity of the paths. I updated the issue to provide additional environmental info. If nobody else can reproduce with psappdeploykit 3.5.0 then I'll need to do additional testing to further isolate the issue, however, creating the "lib" folder certainly resolved the issue I found on the one machine.
PSAppDeployScript Version: 3.5.0
Powershell 3.0
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'm not asking for the PSAppDeployKit to create the path, however, it appears that the psappdeploykit is enumerating the SYSTEM environment variables and testing validity of the paths. I updated the issue to provide additional environmental info. If nobody else can reproduce with psappdeploykit 3.5.0 then I'll need to do additional testing to further isolate the issue, however, creating the "lib" folder certainly resolved the issue I found on the one machine.