Page 1 of 1 1
Topic Options
#72076 - 2002-12-06 04:47 AM Executing .EXE files via Kixtart scripts
Anonymous
Unregistered


Does anyone have examples of Kixtart scripts where executable files are activated via a kixtart script? I'm trying to push out a HotFix for SP4 for Windows 2000 to about 200 client PCs. The HotFix is an executable file. At the "accept license agreement" I need the command in Kixtart to select the radio button (which is press the space bar) to accept the license agreement. Can anyone help?
Top
#72077 - 2002-12-06 04:53 AM Re: Executing .EXE files via Kixtart scripts
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
It should have a silent option. Usually /Q I think. Drag the Qfile to a DOS box and put a /? after it to see what params it accepts.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#72078 - 2002-12-06 03:42 PM Re: Executing .EXE files via Kixtart scripts
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
code:
shell 'start /min /wait Q123456.exe -q'

However, the hotfix will most likely need to be executed under an administrative account.

See also Windows Hotfix Setup Program Naming Convention

[ 06. December 2002, 15:42: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#72079 - 2002-12-18 01:11 AM Re: Executing .EXE files via Kixtart scripts
Anonymous
Unregistered


Can anyone help me with writing this script? I need to run this Hotfix on all the PCs in my office. Here's what I have so far........

;***Verify that registry entries for HotFix exists.***
If (Existkey("IF EXIST HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Updates\Windows 2000\SP4\Q326830")=0)
? "MS HotFix Subkey already exists in registry."
goto endofscript

Else

run "\\server name\Support\Windows 2000\Security Updates\SMB Patch\Q326830_W2K_SP4_X86_EN.exe"
$ReturnCode = SendKeys("{ENTER}")
{I need to insert a command here that will press the space bar so that the install will continue}
$ReturnCode = SendKeys("I")
$ReturnCode = SendKeys("\\f103003\netlogon\localpolicy.inf")
$ReturnCode = SendKeys("{ENTER}")
:endofscript

Top
#72080 - 2002-12-18 01:19 AM Re: Executing .EXE files via Kixtart scripts
Howard Bullock Offline
KiX Supporter
*****

Registered: 2000-09-15
Posts: 5809
Loc: Harrisburg, PA USA
First, if you are using a current version of KiXtart then you should be using:
quote:
KeyExist( )

Action: Checks for the existence of a registry subkey.

Syntax: KEYEXIST ("subkey")

Parameters: Subkey
Identifies the subkey you want to locate.

Remarks: KEYEXIST is a replacement to the EXISTKEY function found in previous versions of KiXtart. While functionally equivalent, the Return Codes are now inverted, resulting in behavior similar to the EXIST function.

Returns: 1
Subkey found

0
Subkey not found

Next HotFixes should have a quiet install switch. Windows 2000 Hotfix.exe Program Description and Command-Line Switches
_________________________
Home page: http://www.kixhelp.com/hb/

Top
#72081 - 2002-12-18 04:05 PM Re: Executing .EXE files via Kixtart scripts
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You will also need to install the hotfixes under an administrative account.
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1046 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.127 seconds in which 0.098 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org