Installing computer model specific software only AFTER first login
Hello,
We have one Lenovo laptop model in use, which needs Lenovo's System Interface Driver installed. By Lenovo's documentation, it can be installed in unattended mode by using /S switch with setup.exe.
Yes, it installs in unattended mode, but installation is displayed in user desktop. I tried to add this installation to my deployment job as Run Script task. Installation didn't complete until I logged on to that computer and there was installation window with dialog prompt waiting me to press OK or something.
My next idea is to modify sysprep.inf and use [GuiRunOnce] and enter installation command there. However I'm not sure, if I can use any model-specific installations with [GuiRunOnce]
Is there possibility to create DS tasks to run specific commands in user session only with elevated privileges? How you have resolved these issues? Creating separate jobs for different computer models? Maybe re-packaging software to MSI?
Comments
you should download latest
you should download latest "Hotkey Features Integration" http://www-307.ibm.com/pc/support/site.wss/documen...
that includes System Interface Driver and silent install works by
I have a fancy script that I
I have a fancy script that I use to lookup a registry value, set it as a variable, and then based on the variable have the script do something. Here it is:
:: delims is a TAB followed by a space
FOR /F "tokens=3 delims= " %%A IN ('REG QUERY "HKLM\HARDWARE\DESCRIPTION\System\BIOS" /v SystemProductName') DO SET DefaultLoginType=%%A
ECHO Name=%SystemProductName%
As you can see, I have it pointing to a spot in the registry where it says the computer model. The next part of the script takes the variable and performs an action based on the variable:
IF (%SystemProductName%) EQU ('Latitude E6400') GOTO E6400
IF (%SystemProductName%) EQU ('Latitude D630') GOTO D630
IF (%SystemProductName%) EQU ('Latitude D620') GOTO D620
IF (%SystemProductName%) EQU ('Optiplex 760') GOTO O760
Now for the actual script:
:E6400
E6400Setup.exe
GOTO EXIT
:D630
D630Setup.exe
GOTO EXIT
:D620
D620Setup.exe
GOTO EXIT
:O760
O760Setup.exe
GOTO EXIT
:EXIT
EXIT
I have attached a complete script to this post. It tested it and it works. This may help you get a specific piece of software for one hardware type.
Hi trb, Nice script and idea,
Hi trb,
Nice script and idea, but none of my computer models include that registry key. BIOS folder does not exist under System folder.
I tried to seach registry with model name specified in msinfo32's system summary, but it's not there.
Yeah...For some reason only
Yeah...For some reason only one of my computer models included that registry key. I did a search in several different model's registry and was not able to find it. To bad...this solution would work for you if that info was there.
Trb,Yeah...but thanks for
Trb,
Yeah...but thanks for help anyway =)
Pashyn,
I downloaded that hotkey software, but setup stucks in the middle if there's no user logon session. Task is sitting in "Executing script..." status. After I logged on to system, setup finished.
If you managed to install it without user logon, please let me know how you made task for it.
Install
My install script.
1. Copy setup files from server share to c:\temp
2. c:\temp\hotkey\setup.exe /S
Hello pashyn, Yes, I use
Hello pashyn,
Yes, I use same command-line to install Hotkey software, but the problem here is, that I'm unable to get hotkey software installed, IF there is no user logged on to system. And I have designed all my DS deployment jobs to install all necessary software & settings, without user need to log on.
Does anyone here have
Does anyone here have a script which could be used in sysprep.inf [GuiRunOnce] section to check computer model and execute commands for that model?
I'm looking here a way to install softwares automatically AFTER user logs on first time.
that is weird because that
that is weird because that script works for my lenovo pc:s
In Windows XP and Windows 7 both work without user login.
Can you give me details about
Can you give me details about your task, which runs that hotkey setup.
My task:
-Run Script task
-Run this script: U:\Lenovo\HOTKEY\setup.exe /S (I run hotkey setup directly from the server)
- Secure context: Default (local system account)
- Script window: Hidden (I've tried Normal and Minimized as well)
When this task is executed on my test system, DS console displays "Executing script..." until I log on to system. After logon, I see Lenovo window on desktop finishing installation. But like I said, this wont happen until user logs on.
my script
I have made thinkvantage.bat to server
Here is Thinkvantage.bat content
XCOPY /D /S /R /H /I /C /Y "\\%servername%\eXpress\software\Power_Management_Driver\*.*" C:\TEMP\DRIVERS\Power_Management_Driver\
XCOPY /D /S /R /H /I /C /Y "\\%servername%\eXpress\software\ThinkVantage_Active_Protection_System_ALL_Thinkpad\*.*" C:\TEMP\DRIVERS\ThinkVantage_Active_Protection_System_ALL_Thinkpad\
XCOPY /D /S /R /H /I /C /Y "\\%servername%\eXpress\software\EasyEject_Utility_Thinkpad\*.*" C:\TEMP\DRIVERS\EasyEject_Utility_Thinkpad\
XCOPY /D /S /R /H /I /C /Y "\\%servername%\eXpress\software\Hotkey_thinkpad\*.*" C:\TEMP\DRIVERS\Hotkey_thinkpad\
XCOPY /D /S /R /H /I /C /Y "\\%servername%\eXpress\software\Keyboard_Customizer_Utility_1.3.53.0_ALL_Thinkpad\*.*" C:\TEMP\DRIVERS\Keyboard_Customizer_Utility_1.3.53.0_ALL_Thinkpad\
XCOPY /D /S /R /H /I /C /Y "\\%servername%\eXpress\software\Power_manager_ALL_Thinkpad\*.*" C:\TEMP\DRIVERS\Power_manager_ALL_Thinkpad\
XCOPY /D /S /R /H /I /C /Y "\\%servername%\eXpress\software\Presentation_Director_ALL_Thinkpad\*.*" C:\TEMP\DRIVERS\Presentation_Director_ALL_Thinkpad\
XCOPY /D /S /R /H /I /C /Y "\\%servername%\eXpress\software\ThinkPad_UltraNav\ThinkPad_UltraNav_Driver\*.*" C:\TEMP\DRIVERS\ThinkPad_UltraNav_Driver\
XCOPY /D /S /R /H /I /C /Y "\\%servername%\eXpress\software\ThinkPad_UltraNav\ThinkPad_UltraNav_Utility\*.*" C:\TEMP\DRIVERS\ThinkPad_UltraNav_Utility\
XCOPY /D /S /R /H /I /C /Y "\\%servername%\eXpress\software\ThinkVantage_System_Update\*.*" C:\TEMP\DRIVERS\ThinkVantage_System_Update\
XCOPY /D /S /R /H /I /C /Y "\\%servername%\eXpress\software\Lenovo_USB_Enhanced_Performance_keyboard\*.*" C:\TEMP\DRIVERS\Lenovo_USB_Enhanced_Performance_keyboard\
c:
cd C:\TEMP\DRIVERS\
.\Power_Management_Driver\Setup.exe -S -SMS
.\ThinkVantage_Active_Protection_System_ALL_Thinkpad\setup.exe -s -v"/qn REBOOT=ReallySuppress"
.\EasyEject_Utility_Thinkpad\SETUP.EXE -S -SMS
.\Hotkey_thinkpad\SETUP.exe /S
.\Keyboard_Customizer_Utility_1.3.53.0_ALL_Thinkpad\Setup.exe -S -SMS
.\Power_manager_ALL_Thinkpad\SETUP.EXE -s
.\Presentation_Director_ALL_Thinkpad\Setup.exe -S -SMS
.\ThinkPad_UltraNav_Driver\setup.exe -s -SMS
.\ThinkPad_UltraNav_Utility\Setup.exe -s -SMS
.\ThinkVantage_System_Update\systemupdate314-2009-6-12.exe -s -a /s /v"/qn"
.\Lenovo_USB_Enhanced_Performance_keyboard\Setup.exe /s /v/qn
and then made task run script
task content:
REM Thinkvantage installation
call "\\%servername%\eXpress\software\Thinkvantage_install.bat"
- Secure context: Default (local system account)
- Script window: Minimized (This doesnt matter all options work here)
Hi pashyn, Your script works
Hi pashyn,
Your script works great.
After I modified my task to copy whole HOTKEY folder to eg. c:\temp and running setup.exe /S from there, setup finished without user logged on.
Thank you pashyn and all for help. I'm back on the track.
Would you like to reply?
Login or Register to post your comment.