I'm trying to package Oracle Forms 10g within Intune to deliver to some users. In order to install this ancient dev app, it must run in WINXPSP3 compat mode. I'm using a batch file to install it, so naturally, I want to add a registry key to prompt setup.exe to run in compat mode.
I add a line in the batch file...
rem SETUP_APPCOMPATFLAG
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers" /v "C:\ProgramData\AnF\Oracle10GStaging\disk1\setup.exe" /t REG_SZ /d "WINXPSP3" /f
Before running my exe file...
rem RUN INSTALL
%OF10gfiles%\disk1\setup.exe -responsefile %OF10gfiles%\install_oracle10g.rsp -silent -noconsole -nowelcome -waitforcompletion
Running this batch file locally on a test machine works flawlessly. I have other additions to the registry in this batch file that are added without issue. For whatever reason, these additions cannot be added to this specific area.
It's not like it's added and needs a reboot, it's simply doesn't get added. I don't think it's a syntax issue; I assume it's being denied access to add it here, but I've no clue by what or why.
The Intune package is set to run as SYSTEM, not user. All other functions in the batch file run as expected, but without this compat-mode addition, setup.exe will not run. I've been googling for a day, and others have had this problem but I haven't found anyone who has figured out why.
Any help or suggestions would be greatly appreciated. Thank you all in advance.