Page 1 of 1 1
Topic Options
#63629 - 2002-03-07 01:06 PM Installed Program Audit
Ste W Offline
Lurker

Registered: 2002-01-04
Posts: 3
Guys

Does anyone know how I can use kixstart to check and see if the "C:\Program Files\Adobe\Acrobat 4.0" directory exists and if so open a file on the server eg \\myserver\c$\adobe.log and write the machine number to it?

Any help is much appreciated I need to do this as soon as I can.

Thanks again.

Top
#63630 - 2002-03-07 02:59 PM Re: Installed Program Audit
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Well... I've got a work in progress you can look at.
code:
break on
;Search for "Acrobat Uninstall"
$Index = 0
:Loop1
$KeyName = ENUMKEY("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\", $Index)
If @ERROR = 0
If InStr("$KeyName","Acrobat")
"Name found: $KeyName" ?
Select
Case $KeyName = "Adobe Acrobat Reader 3.0"
"Uninstall Acrobat 3.0" ?
$UninstallStr = READVALUE("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Acrobat Reader 3.0","UninstallString")
;SHELL $UninstallStr + " -A"
"Complete." ?

Case $KeyName = "Adobe Acrobat Reader 3.01"
"Uninstall Acrobat 3.01" ?
$UninstallStr = READVALUE("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Acrobat Reader 3.01","UninstallString")
;SHELL $UninstallStr + " -A"
"Complete." ?

Case $KeyName = "Adobe Acrobat 4.0"
"Uninstall Acrobat 4.0" ?
$UninstallStr = READVALUE("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Adobe Acrobat 4.0","UninstallString")
;SHELL $UninstallStr + " -A"
"Complete." ?

Case $KeyName = "Adobe Acrobat 5.0"
"Leave alone" ?
Goto Done

Case 1
"OH OH, Not sure what to do!" ?

EndSelect
EndIf
$Index = $Index + 1
goto Loop1
EndIf

"Install Acrobat 5.05" ?
;shell 'path\setup.exe /s'

:Done

get $_

_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

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 795 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.12 seconds in which 0.059 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