Novell Home

Completing a SecureLogin Install without Admin Login

Novell Cool Solutions: Feature
By Kevin Prior

Digg This - Slashdot This

Posted: 11 Apr 2007
 

Problem

When you install SecureLogin and reboot, you must login as an Administrator equivalent to complete the install. This must be done in order to register some files that are needed for using SecureLogin. This extra step can be time-consuming.

Solution

1. Read the information added by the Install to "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce" in the entry "InstallShieldSetup".

2. Run the following script before rebooting. To assist in this, use the free AutoIT tool (http://www.autoitscript.com/autoit3/scite/downloads.php).

Note: Modify the automate.ini and setup.ini as noted in this AppNote:
http://www.novell.com/coolsolutions/appnote/18364.html

Example Script

; AutoIt Version: 3.0
; Language:       English
; Platform:       Windows 2000 and above
; Author:         Kevin Prior
;
; Script Function:
;   Install NSL and register Dll's.
;

;MsgBox(0, "NSL v6.05", "NSL Install will begin now.")
WinMinimizeAll()
$message = "Novell SecureLogin v6.05 is now being installed to your computer.  
Upon completion your computer will be restarted.  
At this time your keyboard and mouse have been locked to allow for a seamless install."
SplashTextOn("Information...", $message, 500, 175, -1, -1, 0, "Tahoma", "18", "")
ControlSetText("Information...", "", "Static1", $message)
; Run the Setup.exe for NSL install using an edited automate.ini
RunWait("setup.exe", "", @SW_HIDE)

; Register dll's before reboot thus no Admin must login to complete the install

; Message to notify installer
SplashTextOn("Novell SecureLogin Install", 
"The dll registration before reboot will start now, please stand by."
, 500, 175, -1, -1, 0, "", 24)
Sleep(1500) ;Sleep for 1.5 Seconds
$var = RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce", "InstallShieldSetup")
Sleep(1500) ;Sleep for 1.5 Seconds
RunWait(@ComSpec & " /c " & $var, "")
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce", "InstallShieldSetup")
Sleep(1500) ;Sleep for 1.5 Seconds

;Reboot
Shutdown(6)  ;Force a reboot


Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com

© 2014 Novell