Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 3180

saplogon.ini Update options

$
0
0

I am trying to update a small group of about 200 users saplogon.ini file without leveraging any Domain Admins.  I have my saplogon.ini file located in CustomerFiles\saplogon.ini and I don't want to update the client other than this file. 

 

Original code from SAPSetup Guide 2016-06-07 so its fairly new.

 

NwEngine.Context.Log.Write "Event: Copying customized SapLogon.ini"

strSrcFile = NwEngine.Variables.ResolveString("%SapSrcDir%\CustomerFiles\SapLogon.ini")

strDstFile = NwEngine.Variables.ResolveString("%WinDir%\SapLogon.ini")

If NwEngine.Shell.FileExist( strSrcFile ) Then

NwEngine.Shell.CopyFile strSrcFile, strDstFile

End If

 

The above example was a bit outdated to the new file location with SAP GUI 7.40

 

'This script can be added to the “On Installation End” section of a SAP GUI 740 package event script.

'It distributes your special version of the “sapsogon.ini” file

'given this file exist inside a directory “CustomerFiles” on your installation server share.

NwEngine.Context.Log.Write "Event: Copying customized SapLogon.ini"

strSrcFile = NwEngine.Variables.ResolveString("%SapSrcDir%\CustomerFiles\saplogon.ini")

strDstFile = NwEngine.Variables.ResolveString("%AppData%\Roaming\SAP\Common\saplogon.ini")

If NwEngine.Shell.FileExist( strSrcFile ) Then

NwEngine.Shell.CopyFile strSrcFile, strDstFile

End If

 

I created the package without selecting and content as I don't want to update the client version. The successfully created a single file installer.  When I run it on a Windows 7 PC the saplogon.ini is not updated.  What am I doing wrong?

 

 

Cheers,

 

Dan Mead


Viewing all articles
Browse latest Browse all 3180


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>