Hello-
I believe I have some sort of a permissions issue when running a powershell script. Not certain...
For my script, two lines are:
$regkey_value = (Get-ItemProperty -path 'HKLM:SOFTWARE\Microsoft\Office\ClickToRun\Configuration').Platform
Out-File -FilePath $AccessPSLog -Append -InputObject "Office Registry Key: $regkey_value"
The first line reads a registry key, the second line writes the value to a log file. When this script is run via Advanced Installer, all I get is "Office Registry key: " in my log file. When I do a Set-ExecutionPolicy unrestricted and run the powershell script in a powershell window, I get either "Office Registry key: x86" or "Office Registry key: x64" in my log file. I have my installer set to Run As Administrator.
Hopefully this there is an straightforward solution. Thanks for any advice!