Hi,
We're running AI 12.8 and I'm trying to set the APPDIR from a value that's in the registry. I've tried using the search facility in AI, but it doesn't seem to quite work in my case.
Our main software can run either x86 or x64, so I need to search HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\<Company>\<Product>\data_dir and HKEY_LOCAL_MACHINE\SOFTWARE\<Company>\<Product>\data_dir for a value.
I can get it to work in Powershell, using these two single commands:
(Get-ItemProperty -Path HKLM:\SOFTWARE\Wow6432Node\Oracle\Database\11).data_dir
(Get-ItemProperty -Path HKLM:\SOFTWARE\Oracle\Database\11).data_dir
However, does anyone know how I can do the following:
[1] Set the APPDIR if the first command returns a value
[2] If the first fails, set the APPDIR using the second command returned value
Any ideas would be appreciated!
FOLLOW US
Get the latest news in Application Packaging