The setup program for Intergraph GeoMedia included an executable named SETCFREDIRNT that makes changes to the registry. In my case it was attempting to make changes to Flash Player 9 registry keys that had a deny entry for Everyone. The application would then report and error in a dialog with an OK button, similar to this:
—————————
SetCFRedir
—————————
Failed to open registry key: HKEY_CLASSES_ROOT\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}
—————————
OK
—————————
To supress these errors I used SETACL to make changes to the registry permissions and then reverse the changes after setup was complete. The GeoMedia files are located in a folder named Install and the latest hotfix is unpacked to a folder named Hotfix. The variables GEOWORKSPACES_2DIR and WAREHOUSES_10DIR are used to place the GeoWorkspaces and Warehouses folders in seperate locations to the default.
@ECHO OFF
ECHO Intergraph GeoMedia 5.2..
REM Modify permissions on regsitry key to prevent SetCFRedirNT.exe error
SetACL.exe -on "HKCR\CLSID\{1171A62F-05D2-11D1-83FC-00A0C9089C5A}" -ot reg -actn list -lst "f:sddl;w:d,s,o,g" -bckp perms1.txt
SetACL.exe -on "HKCR\CLSID\{1171A62F-05D2-11D1-83FC-00A0C9089C5A}" -ot reg -actn trustee -trst "n1:Everyone;n2:ANONYMOUS LOGON;ta:remtrst;w:dacl"
SetACL.exe -on "HKCR\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}" -ot reg -actn list -lst "f:sddl;w:d,s,o,g" -bckp perms2.txt
SetACL.exe -on "HKCR\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}" -ot reg -actn trustee -trst "n1:Everyone;n2:ANONYMOUS LOGON;ta:remtrst;w:dacl"
SetACL.exe -on "HKCR\CLSID\{D27CDB70-AE6D-11cf-96B8-444553540000}" -ot reg -actn list -lst "f:sddl;w:d,s,o,g" -bckp perms3.txt
SetACL.exe -on "HKCR\CLSID\{D27CDB70-AE6D-11cf-96B8-444553540000}" -ot reg -actn trustee -trst "n1:Everyone;n2:ANONYMOUS LOGON;ta:remtrst;w:dacl"
SetACL.exe -on "HKCR\CLSID\{D4304BCF-B8E9-4B35-BEA0-DC5B522670C2}" -ot reg -actn list -lst "f:sddl;w:d,s,o,g" -bckp perms4.txt
SetACL.exe -on "HKCR\CLSID\{D4304BCF-B8E9-4B35-BEA0-DC5B522670C2}" -ot reg -actn trustee -trst "n1:Everyone;n2:ANONYMOUS LOGON;ta:remtrst;w:dacl"
SetACL.exe -on "HKCR\CLSID\{06849E9F-C8D7-4D59-B87D-784B7D6BE0B3}" -ot reg -actn list -lst "f:sddl;w:d,s,o,g" -bckp perms5.txt
SetACL.exe -on "HKCR\CLSID\{06849E9F-C8D7-4D59-B87D-784B7D6BE0B3}" -ot reg -actn trustee -trst "n1:Everyone;n2:ANONYMOUS LOGON;ta:remtrst;w:dacl"
REM Install GeoMedia
SET OPTIONS=
SET OPTIONS=ALLUSERS=TRUE
SET OPTIONS=%OPTIONS% REBOOT=SUPRESS
SET OPTIONS=%OPTIONS% GEOWORKSPACES_2DIR=D:\GeoMedia\GeoWorkspaces
SET OPTIONS=%OPTIONS% WAREHOUSES_10DIR=D:\GeoMedia\Warehouses
START /WAIT MSIEXEC /I Install\GeoMedia.MSI %OPTIONS% /QB-
REM Install hotfix, unpacked to folder: Hotfix
START /WAIT Hotfix\HotfixInstaller.exe /S
REM Fix NTFS permissions modified by Setup
CACLS D:\GeoMedia\GeoWorkspaces /E /T /G Administrators:F /P Everyone:C
CACLS D:\GeoMedia\Warehouses /E /T /G Administrators:F /P Everyone:C
REM Restore registry permissions
SetACL.exe -on "HKCR\CLSID\{1171A62F-05D2-11D1-83FC-00A0C9089C5A}" -ot reg -actn restore -bckp perms1.txt
SetACL.exe -on "HKCR\CLSID\{D27CDB6E-AE6D-11cf-96B8-444553540000}" -ot reg -actn restore -bckp perms2.txt
SetACL.exe -on "HKCR\CLSID\{D27CDB70-AE6D-11cf-96B8-444553540000}" -ot reg -actn restore -bckp perms3.txt
SetACL.exe -on "HKCR\CLSID\{D4304BCF-B8E9-4B35-BEA0-DC5B522670C2}" -ot reg -actn restore -bckp perms4.txt
SetACL.exe -on "HKCR\CLSID\{06849E9F-C8D7-4D59-B87D-784B7D6BE0B3}" -ot reg -actn restore -bckp perms4.txt







