on 10-21-2008 5:46 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.