Deploy SAP 7.2 compilation 3
Dear all,
we have a problem to install SAP 7.2 by scripting launch from Kace. We have Replica server on different sites (replica it's ok). When we launch the script, we have the popup on pc to confirm the script has been started but the files copied on local machine doesn't functionned. it's very strange on 2 pcs on the same site with replica : 1 is ok files are copied(system vista business SP1) and the other one in the same desktop files are not copied (system vista business SP2) but folder kace ID are created (blank folder). Any ideas...
Could you please help me.....
Many thanks
PS : sorry for my english
Answers (3)
hi,
i' m using this to deploy the sap7.2 via script
\\"server"\Applications\sap guilogon\sap720\setup\NwSapSetup.exe” /silent /all /product=“SAPBI+SAPGUI710”“”
sap gui and buisness explorer.
in this way u have to configurated the sap client by yourself. test it...i hope it works :)
ps: sorry for my english too :D
the UAC will popping up too but u can remove it via GPO´s.
Dear all,
i still use a VBS script from Kace to install my package see below :
top of my script, i do a loop to check if process is currently opened, when is closed i uninstall old version. then i create a folder to copy the ini file and go to install
Install.run "C:\ProgramData\Dell\KACE\downloads\16105\SAP_GUI_7.20_R3.exe /silent /package=SAPGUI720R3
my script :
WScript.Sleep 5000 'Délai d'attente de 5 Secondes pour rafraichir les processus
Set ObjWMIServices = GetObject("winmgmts:\root\cimv2")
Set sQuery = ObjWMIServices.ExecQuery ("Select * from Win32_Process Where Name = 'saplogon.exe'") 'check le processus dans le gestionnaire de tâche
Comptage_sQuery = sQuery.Count
if Comptage_sQuery > 0 Then
CreateObject("WScript.Shell").Popup "Please, your SAP Client must be closed.", 5 ,, -1 + 64
Do While Comptage_sQuery > 0 'Boucle tant qu'il en reste au moins un de lancé
WScript.sleep 2000 'Délai d'attente d'une Seconde
Set ObjWMIServices = GetObject("winmgmts:\root\cimv2")
Set sQuery = ObjWMIServices.ExecQuery ("Select * from Win32_Process Where Name = 'saplogon.exe'")
Comptage_sQuery = sQuery.Count
CreateObject("WScript.Shell").Popup "Please, your SAP Client must be closed.", 5 ,, -1 + 64
Loop
if Comptage_sQuery = 0 Then
if (FSO.FileExists("C:\Program Files (x86)\SAP\SapSetup\setup\NwSapSetup.exe")) Then
CreateObject("WScript.Shell").Popup "Update is in progress,please wait.", 10 ,, -1 + 64
Uninstall.run "C:\progra~2\SAP\SapSetup\setup\NwSapSetup.exe /Silent /Uninstall /all",1,True 'chemin du fichier de desintallation de SAP - 64bits
else if (FSO.FileExists("C:\Program Files\SAP\SapSetup\setup\NwSapSetup.exe")) Then
CreateObject("WScript.Shell").Popup "Update is in progress,please wait.", 10 ,, -1 + 64
Uninstall.run "c:\Progra~1\SAP\SapSetup\setup\NwSapSetup.exe /all /Silent /Uninstall",1,True 'chemin du fichier de desintallation de SAP - 32bits
end if
end if
end If
else if (FSO.FileExists("C:\Program Files (x86)\SAP\SapSetup\setup\NwSapSetup.exe")) Then
CreateObject("WScript.Shell").Popup "Update is in progress,please wait.", 10 ,, -1 + 64
Uninstall.run "C:\progra~2\SAP\SapSetup\setup\NwSapSetup.exe /Silent /Uninstall /all",1,True 'chemin du fichier de desintallation de SAP - 64bits
else if (FSO.FileExists("C:\Program Files\SAP\SapSetup\setup\NwSapSetup.exe")) Then
CreateObject("WScript.Shell").Popup "Update is in progress,please wait.", 10 ,, -1 + 64
Uninstall.run "c:\Progra~1\SAP\SapSetup\setup\NwSapSetup.exe /all /Silent /Uninstall",1,True 'chemin du fichier de desintallation de SAP - 32bits
end if
end if
end if
If objFSO.FolderExists("C:\SAP") Then
objFSO.DeleteFile "C:\sap\*.*", true 'Suppression de tous les fichiers du dossier SAP
Else
Install.run "cmd /C MKDIR C:\SAP",2 'Création du dossier SAP
End If
Install.run "cmd /C COPY C:\ProgramData\Dell\KACE\downloads\16105\saplogon.ini C:\SAP",2 'copie du fichier saplogon
Set WshProcessEnv = WshShell.Environment("System") 'chemin variable environnement du système
WshProcessEnv("SAPLOGON_INI_FILE") = "c:\SAP\saplogon.ini" 'Créer une variable d'environnement
CreateObject("WScript.Shell").Popup "Update is in progress,please wait.", 10 ,, -1 + 64
if (FSO.FolderExists("C:\ProgramData")) Then
Install.run "C:\ProgramData\Dell\KACE\downloads\16105\SAP_GUI_7.20_R3.exe /silent /package=SAPGUI720R3",1,True 'installation dans le dossier caché de KACE vista et seven
oShell.RegWrite "HKLM\Software\SAP\", ""
oShell.RegWrite "HKLM\Software\SAP\version", "7.2R3"
else
Set oExec = Install.Exec("%allusersprofile%\Dell\KACE\downloads\16105\SAP_GUI_7.20_R3.exe /silent /package=SAPGUI720R3")
oShell.RegWrite "HKLM\Software\SAP\", ""
oShell.RegWrite "HKLM\Software\SAP\version", "7.2R3"
End If
If you are installing it from KACE, what is your syntax for the script/package?
Obviously from within KACE you are not going to need the full path as blackbyte mentioned. What is nice about anything in the SAP version 7 (so far that I have noticed with 8 installs/patches) is that you can use /product="710" for uninstall or install no matter what patch level/version you are on.
If you want to call your specific package (I used the SAP Admin Server to create my package and named it SAPGUI730-2 for 7.30 patch 2), so I would use /package="SAPGUI730-2". I also created a folder called SAPGUI730 to put the package in and zipped it up when I was done configuring it via the SAP Admin Server and browsed from my KACE box and uploaded the zipped package.
My full syntax to install via KACE was then:
start /wait SAPGUI730\Setup\NwSapSetup.exe /silent /package="SAPGUI730-2"
or you can use:
start /wait SAPGUI730\Setup\NwSapSetup.exe /silent /product="SAPGUI710"
It doesn't care because it will use "SAPGUI710" as its base for any install or uninstall so you don't have to be specific to your package name. It's kind of nice in that regard.
BUT.........you must use /product instead of /package. If you use /package it has to be the name you gave to YOUR specific package. Hopefully that helps.
Cheers,
J.R.