#151302 - 2005-11-11 02:23 PM
Using @LDrive macro
|
Nukes
Fresh Scripter
Registered: 2005-11-11
Posts: 11
Loc: Kent - UK
|
Hi guys,
I really need some help on this ASAP - many thanks!
Why does this not work?
Copy @LDRIVE+"\ClaimFLO.exe*.*" "C:\Program Files\iDOiNK Technologies\ClaimFLO\*.*"
When I execute the script it just ignores this part. I need to use @LDrive as the files are pulled from the PDC, BDC's and not from one location.
_________________________
Write down the problem
Think real hard
Write down the answer
|
|
Top
|
|
|
|
#151303 - 2005-11-11 02:34 PM
Re: Using @LDrive macro
|
Nukes
Fresh Scripter
Registered: 2005-11-11
Posts: 11
Loc: Kent - UK
|
Ok here's how it should be!
Copy @LSERVER+"\Netlogon\ClaimFLO\ClaimFLO.exe*.*" "C:\Program Files\iDOiNK Technologies\ClaimFLO\*.*"
However, I am trying to check the file version so it does not pull the file from the PDC, BDC's everytime. I am currently using this bit of code, however, the Kix script just ignores it. Can anyone advise?
If $claimver < "1.3.18.0" GoSub "install" Else :end
_________________________
Write down the problem
Think real hard
Write down the answer
|
|
Top
|
|
|
|
#151306 - 2005-11-11 02:51 PM
Re: Using @LDrive macro
|
Nukes
Fresh Scripter
Registered: 2005-11-11
Posts: 11
Loc: Kent - UK
|
This is what I have so far, copying the files is fine it just ignores the verify file version part. It copies the file everytime no matter what file version it is.
Many thanks for your help!
;Variables
$claimver=GetFileVersion("C:\Program Files\iDOiNK Technologies\ClaimFLO\ClaimFLO.exe", "1.3.18.0")
;***************************************
;Determines If the version of ClaimFLO is lower than the current version, will skip install if ok
Select Case $claimver < "1.3.18.0" "install" Case $claimver = "1.3.18.0" "end" Case $claimver > "1.3.18.0" "end" EndSelect ;***************************************
;Installs latest version of ClaimFLO.exe & Icons.ibf
:install "Checking installed version of ClaimFLO - please wait" ? ?"Installed version - "GetFileVersion ("C:\Program Files\iDOiNK Technologies\ClaimFLO\ClaimFLO.exe","FileVersion")
Copy @LSERVER+"\Netlogon\ClaimFLO\ClaimFLO.exe*.*" "C:\Program Files\iDOiNK Technologies\ClaimFLO\*.*" Copy @LSERVER+"\Netlogon\ClaimFLO\Icons.ibf*.*" "C:\Program Files\iDOiNK Technologies\ClaimFLO\*.*"
:end
Edited by Nukes (2005-11-11 02:51 PM)
_________________________
Write down the problem
Think real hard
Write down the answer
|
|
Top
|
|
|
|
#151311 - 2005-11-13 09:44 PM
Re: Using @LDrive macro
|
Nukes
Fresh Scripter
Registered: 2005-11-11
Posts: 11
Loc: Kent - UK
|
Evening all,
I have just discovered that the above will not install due to W2k/XP security (users do not have local admin rights). Is there a simple solution round this?
_________________________
Write down the problem
Think real hard
Write down the answer
|
|
Top
|
|
|
|
#151313 - 2005-11-13 10:51 PM
Re: Using @LDrive macro
|
Nukes
Fresh Scripter
Registered: 2005-11-11
Posts: 11
Loc: Kent - UK
|
Thanks, however, this needs to be done by tomorrow morning and i'm going mad trying to make sense of it. Can you look at my original code and advise?
_________________________
Write down the problem
Think real hard
Write down the answer
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 756 anonymous users online.
|
|
|