Page 1 of 1 1
Topic Options
#113077 - 2004-02-02 02:59 PM Please heelp with this script
impactradio Offline
Fresh Scripter

Registered: 2003-05-27
Posts: 22
Loc: Washington, DC
Here is the example that I am using, and I am lost here. Any advice would be helpful...


Code:
 	If InGroup ("Timekeeper")
If Not Exist ("C:\Program Files\IHR\TimeKeeper\TimeKeeper.exe")

Shell '\\d1frlf00\it\Apps-Installs\Full\Timekeeper\TimeKeeperInstall.msi'

END if
RETURN



Version is 4.21

_________________________
Help Me!!!

Top
#113078 - 2004-02-02 03:01 PM Re: Please heelp with this script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
some things:
1) try to use more descriptive title in thread
2) if you don't say what you have problems with, we can't help at all
3) "end if" is not kixtart keyword. see the manual for correct one
_________________________
!

download KiXnet

Top
#113079 - 2004-02-02 03:04 PM Re: Please heelp with this script
Richard H. Administrator Offline
Administrator
*****

Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
Code:
If InGroup ("Timekeeper")
If Not Exist ("C:\Program Files\IHR\TimeKeeper\TimeKeeper.exe")
Shell '\\d1frlf00\it\Apps-Installs\Full\Timekeeper\TimeKeeperInstall.msi'
EndIf
EndIf
Return



What help do you need?

Are you asking for an explanation of what the script is doing, or is it not working and you need help to fix it?

Top
#113080 - 2004-02-02 03:17 PM Re: Please heelp with this script
impactradio Offline
Fresh Scripter

Registered: 2003-05-27
Posts: 22
Loc: Washington, DC
Sorry...

It is not working. I will confess. I do not know much about scripting with kixtart.

Any advice?
_________________________
Help Me!!!

Top
#113081 - 2004-02-02 03:31 PM Re: Please heelp with this script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
please, finally tell us what you are after.
what you want it to do and what it does not do.
_________________________
!

download KiXnet

Top
#113082 - 2004-02-02 05:01 PM Re: Please heelp with this script
impactradio Offline
Fresh Scripter

Registered: 2003-05-27
Posts: 22
Loc: Washington, DC
I am trying to get a program installed if a user belongs to a certain NT group.

The following script works great if I dont specify a group.

Code:
 If InGroup ("Timekeeper")
BREAK ON
CLS
$windir = READVALUE('HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion','SystemRoot')
$systemdrive = SUBSTR($windir,1,2) ; -- This will show C: or M: or what drive Windows is installed on
$PathString = '\\d1frlf00\it\Apps-Installs\Full\Timekeeper\'

IF exist($systemdrive+'Program Files\IHR\TimeKeeper\TimeKeeper.exe')
RETURN
ELSE
'Timekeeper is being installed. Please wait..'
SLEEP 3

RUN("\\d1frlf00\it\Apps-Installs\Full\Timekeeper\setup.exe")
RETURN
ENDIF



So If I take out the If InGroup statement it works...
But installs for everyone.
_________________________
Help Me!!!

Top
#113083 - 2004-02-02 05:06 PM Re: Please heelp with this script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
so, I must quess you don't have such group.
for that person at least you try to install on.
_________________________
!

download KiXnet

Top
#113084 - 2004-02-02 05:08 PM Re: Please heelp with this script
impactradio Offline
Fresh Scripter

Registered: 2003-05-27
Posts: 22
Loc: Washington, DC
No I am testing on myself and I am a member of the said group
_________________________
Help Me!!!

Top
#113085 - 2004-02-02 05:57 PM Re: Please heelp with this script
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
The .MSI install will most likely require local admin privileges. Put DEBUG ON into the first line of your script and step through it. You'll then see why your script is failing.
_________________________
There are two types of vessels, submarines and targets.

Top
#113086 - 2004-02-02 06:19 PM Re: Please heelp with this script
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Well.. the proble as Lonkero pointed out already...Is that you use "End if" in your original posted code. This is not a valid kix command. You need to use "Endif" with no space.
Top
#113087 - 2004-02-02 09:02 PM Re: Please heelp with this script
impactradio Offline
Fresh Scripter

Registered: 2003-05-27
Posts: 22
Loc: Washington, DC
Refresh my memory please on how to turn on bebugging.
_________________________
Help Me!!!

Top
#113088 - 2004-02-02 09:08 PM Re: Please heelp with this script
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
debug on ?
_________________________
!

download KiXnet

Top
#113089 - 2004-02-02 10:04 PM Re: Please heelp with this script
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
Read the KiXtart Manual?
_________________________
There are two types of vessels, submarines and targets.

Top
Page 1 of 1 1


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

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

Generated in 0.043 seconds in which 0.021 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