I have now some workstations using XP and others using Seven. I use SapSetup server to deploy SAP Logon 7.30.
I wanted to set a central configuration file using registry entry "ConfigFileOnServer", but since the path to this registry value is different from XP and Seven, I need to script it in order to detect if the system is XP or Seven.
I wanted to keep it simple using the scripting available in SapSetup, so I added this on the installation and update end :
If NwEngine.Shell.RegValueExist("HKLM\SOFTWARE\Wow6432Node\SAP\SAP Shared\SAPsourcedir") Then
NwEngine.Shell.SetRegValue "HKLM\SOFTWARE\Wow6432Node\SAP\SAPLogon\Options\ConfigFileOnServer", "REG_EXPAND_SZ", "\\share\SAP\SapLogonTree.xml"
NwEngine.Shell.SetRegValue "HKLM\SOFTWARE\SAP\SAPLogon\Options\ConfigFileOnServer", "REG_EXPAND_SZ", "\\share\SAP\SapLogonTree.xml"
But the registry entries are not written in neither cases.
Any ideas ?