How to populate credentials for multiple apps on initial launch from startup script

  • 7009770
  • 17-Nov-2011
  • 26-Apr-2012

Environment

Novell SecureLogin
NSL7.0.2
Startup script launches multiple applications

Situation

Prompts for application credentials get mixed up on initial launch of startup script.

The first time the startup script runs and the apps are launched SecureLogin prompts users for application credentials for each application, as expected.  The problem is that the apps launch quickly one after another and the NSL credential prompts get stacked on top of each other, causing confusion about which prompt goes with what application.  
 
How can you force SecureLogin to wait for credentials to be populated for one application before launching another?  Is it possible to populate credentials for app1 before the startup script launches app2, and to wait for credentials to be populated for app2 before launching app3, etc?

Resolution

Edit the startup script to launch the applications as shown below.  This way applications will start one after another, but will wait for enrollment for the previous application.
 

##-- Startup Script ------------------
#
 
Run c:\path\to\ABC.exe
 
Repeat
   If -exists $Username(ABC.exe)
      Run c:\path\to\DEF.exe
      Break
   EndIf
   Delay 1000
EndRepeat
 
Repeat
   If -exists $Username(DEF.exe)
      Run c:\path\to\XYZ.exe
      Break
   EndIf
   Delay 1000
EndRepeat
 
#
##----------------------------------------