cancel
Showing results for 
Search instead for 
Did you mean: 

GUI 7.10 - OnEndInstall event syntax to install SAPSSO

Former Member
0 Kudos

Hi,

I used to install GUI 640 via vbscript and included installation of

single signon - sapsso - like this...

intReturn = objWSHShell.Run( strServer

& "SAPSSO.msi /passive /promptrestart /l %homedrive%

\SSO_Install.log",,true)

For GUI 710, it looks like I should be able to install it from the

OnEndInstall event script ... but I can't get it to work ..

The supplied sample - running notepad - works ok with a parameter, but

not sapsso ... this is what I've tried

'strCmdLine = NwEngine.Variables.ResolveString("%WinDir%\NotePad.exe") <<< Works

'strCmdLine = NwEngine.Variables.ResolveString("%WinDir%\NotePad.exe C:\Fred.txt") <<< Works

'strCmdLine = NwEngine.Variables.ResolveString("%SAPSrcDir%\SAPSSO.msi") <<< Shows the sapsso help screen

strCmdLine = NwEngine.Variables.ResolveString("%SAPSrcDir%

\SAPSSO.msi /passive /promptrestart /l %homedrive%

\SSO_Install.log") <<< Fails ... see below

bNoWaiting = vbFalse 'This means: Wait for the started process

NwEngine.Shell.Execute strCmdLine, bNoWaiting

The NwSapSetup.log shows ...

16:31:12 NwSapsEngn 1E Shell : '
xysapcod\sapguiinst_710

\SAPSSO.msi /passive /promptrestart /l Y:\SSO_Install.log' failed: #1

is not a valid Win32 application.## Error code 0xc1 (193)

Can anyone tell me whether it's possible to do this and if so, what's the syntax?

Many Thanks,

Mike

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Make,

Try with the following , should be works:

strCmdLine = NwEngine.Variables.ResolveString("C:\Windows\System32\msiexec.exe /package C:\Windows\sapsso.msi /passive")

bNoWaiting = vbFalse

NwEngine.Shell.Execute strCmdLine, bNoWaiting

Regards,

Claudio