Hi, I need to manipulate some files maintained by my app in order to support migrating it to a version with a breaking feature.
In order to do that, I need to reference the installation folder (defined by Manufacturer variable) and app folder (ProductName variable) so I can access them.
I am yet to succeed doing so.
Have tried:
$manufacturer=[Environment]::GetEnvironmentVariable('Manufacturer')
Write-Output "Manufacturer variable: [$manufacturer]" > $logPath
Write-Output "Manufacturer variable: $env:Manufacturer > $logPath
The same for ProductName.
Not working.
How should I be doing this ?