Forums on Intune, SCCM, and Windows 11

Welcome to the forums. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your topics and posts, as well as connect with other members through your own private inbox!

PENDING Need to overwrite two files (SAPUILandscape.xml )

Nilesh Sarote

Member
Messages
7
Reaction score
0
Points
1
We are going to change SAP server IP address. So we had to overwrite existing SAPUIlandscape.xml file with new one in user profile.
So i had created package for file and command line i had used xcopy "SAPUILandscape.xml" "%appdata%\sap\common\" /Y

Deployed package cant overwrite and shows process complete. Need solution for same
 
You need to provide more details, such as exactly how you are deploying this? aka what tool or method. What troubleshooting steps have you done already? Why do you way it is not working?
 
Frist of thanks for reply. Instead of package i had created application and run with below script. Its works but detection method is not working.

Bat file script as below

xcopy "\\serverpath\SAP_Landscape_files\SAPUILandscape.xml" "%appdata%\sap\common\" /Y

echo.>"%appdata%\sap\common\Sucess.txt

REM Finish

Detection method i had used powershell, as below

if( Test-Path "$env:LOCALAPPDATA\Roaming\sap\common\Sucess.txt" )

{
Write-Host "installed"
}
else
{

}

Below error is showing for detection. Please suggest.


Error code - 0X87D00324 (-2016410844) Error decription - The application was not detected after installation completed.
 
So you are us CM for this? Your problem is that you are using an UNC to copy the file. You need to include the files with the source package.
 
Tried with below script not worked. Exit code 4 error was coming
xcopy "SAPUILandscape.xml" "%appdata%\sap\common\" /i /r /q /d /Y

Also tried with below script. File is not able to overwrite

xcopy "SAPUILandscape.xml" "%appdata%\sap\common\" /Y
 
Does the file overwrite happens if you do it manually ?. If the file is in use and if you attempt to overwrite it, it may not allow you to do so.
 
Error 4 = The system cannot open the file.

EXACTLY how are you deploying this? Is it using a user or computer install?
Did you test your script using the same methods that CM will use?
 
Error 4 = The system cannot open the file.

EXACTLY how are you deploying this? Is it using a user or computer install?
Did you test your script using the same methods that CM will use?
User install
 
you will need to add logging to see if everything exist and what is is pointing too.
 

Forum statistics

Threads
7,178
Messages
28,003
Members
18,307
Latest member
nhamilton

Trending content

Back
Top