Symptom
Post configuration (on Installation end) event script set in the single-file self-installing .exe-package to install/deploy frontend products (SAP GUI, NWBC, Business Explorer, and so on) using %USERPROFILE% or HKCU is not working when trying to copy files using scripts as per below:
E.g. File "test.txt" can be copied from C:\test\ to C:\ProgramData\ folder with below script:
--------------------------------
strSrcFile = NwEngine.Variables.ResolveString("C:\test\test.txt")
strDstFile = NwEngine.Variables.ResolveString("C:\ProgramData\SAP\test.txt")
NwEngine.Shell.CopyFile strSrcFile, strDstFile
--------------------------------
But the file "test.txt" can't be copied to C:\%USERPROFILE%\ folder with below script:
-----------------------------
strSrcFile = NwEngine.Variables.ResolveString("C:\test\test.txt")
strDstFile = NwEngine.Variables.ResolveString("%USERPROFILE%\AppData\Roaming\SAP\test.txt")
NwEngine.Shell.CopyFile strSrcFile, strDstFile
-----------------------------
Read more...
Environment
SAP GUI release independent
Product
Keywords
%USERPROFILE%, %APPDATA%, HKCU, registry hive, installation, SAP GUI, event script. , KBA , BC-FES-INS , Frontend Installation , Problem
About this page
This is a preview of a SAP Knowledge Base Article. Click more to access the full version on SAP for Me (Login required).Search for additional results
Visit SAP Support Portal's SAP Notes and KBA Search.
SAP Knowledge Base Article - Preview