#113077 - 2004-02-02 02:59 PM
Please heelp with this script
|
impactradio
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
|
|
|
|
#113079 - 2004-02-02 03:04 PM
Re: Please heelp with this script
|
Richard H.
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
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
|
|
|
|
#113082 - 2004-02-02 05:01 PM
Re: Please heelp with this script
|
impactradio
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
|
|
|
|
#113084 - 2004-02-02 05:08 PM
Re: Please heelp with this script
|
impactradio
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
|
|
|
|
#113087 - 2004-02-02 09:02 PM
Re: Please heelp with this script
|
impactradio
Fresh Scripter
Registered: 2003-05-27
Posts: 22
Loc: Washington, DC
|
Refresh my memory please on how to turn on bebugging.
_________________________
Help Me!!!
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|