cancel
Showing results for 
Search instead for 
Did you mean: 

Automated update /ForceWindowsRestart not working

Former Member
0 Kudos

So i am trying to deploy Sap Gui 7.20 using SCCM 2007

However the command i am trying to use is having issues. It seems all would be good if the /ForceWindowsRestart worked better. When i use it It works only after closing a notepad window that pops up saying i have to reboot.

The text file is called "SAPReboot.txt"

and the contents say "The SAP GUI has finished installing. Please close this Window and Reboot your machine."

Is there a way to make this not show up so the reboot happens automatically?

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

If this information helps at all i found the .txt file in the setup files

Looking at the NwSapSetup.log i saw this

08:59:16 NwSapsEngn 1 Shell : registry value 'DefaultAction' has been successfully set

08:59:16 NwSapsAtlC 1 Add a End Screen

08:59:16 NwSapsEngn 2 Shell : executing 'C:\Windows\NotePad.exe
SERVER\User\customermessages\SAPReboot.txt'

08:59:16 NwSapsEngn 2 Shell : process has been created successfully

08:59:16 NwSapsEngn 2 Shell : waiting 30000 ms for process to finish...

Former Member
0 Kudos

Ok so i hunted down the file SapPackageSetup.xml

I notice these lines

strCmdLine = NwEngine.Variables.ResolveString("%WinDir%\NotePad.exe %SapSrcDir%\customermessages\SAPReboot.txt")

bNoWaiting = vbFalse

bVisible = vbTrue

'NwEngine.Shell.ExecuteEx strCmdLine, bNoWaiting, bVisible

I commented out the last line that is actually launching the notepad

and it appeared to work

I will keep you posted when i deploy.