Page 1 of 1 1
Topic Options
#19882 - 2002-04-12 06:44 PM installing apps
fowlerlfc Offline
Fresh Scripter

Registered: 2001-11-06
Posts: 14
I'm using kix95.

Is it possible to check to see if an app is installed, then install it if it is not?

If so, what commands would I utilize?

Top
#19883 - 2002-04-12 11:11 PM Re: installing apps
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall contains a list of applications installed on a computer. you could check against that list. Alternatively, you can check for the presence fo the executable and its version number if you nknow where exactly the application is installed.

The utilized commands are depending on what exactly you try to accomplish. Most likely you will need to create unattended installations with the respective installation prgrams. Microsoft Office applications can also distributed with GPOs and the Custom Installation Wizard.

[ 13 April 2002, 00:04: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.

Top
#19884 - 2002-04-12 11:16 PM Re: installing apps
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Here's a quick example of code to see if installed.
code:
;  check if already installed
$SC3uninstall = ReadValue("HKEY_LOCAL_MACHINE\software\microsoft\windows\currentversion\uninstall\ShowCase STRATEGY 3.0", "uninstallstring")
if $SC3uninstall = ""
goto install
else
goto finish
endif

If you tell us what software and what installer technology it uses, we could better advise on automating a silent install. FE, in the case of ShowCase, the following is what I did.

code:
$RC = MessageBox("Silent install will run now."
+ Chr(13) + "Please be patient!","ShowCase Strategy Install",64,60)
USE L: /DELETE
USE L: "\\FFSMS\SC3"
SHELL("L:\CLIENT\SETUP.EXE -S")

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

Top
#19885 - 2002-04-13 01:23 AM Re: installing apps
fowlerlfc Offline
Fresh Scripter

Registered: 2001-11-06
Posts: 14
thanks for the quick reply. unfortunately, i'll have to do a little more research, and get back with you!
Top
#19886 - 2002-04-14 06:31 AM Re: installing apps
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

For other ideas take also a look at our script software.kix,
which you can find on our site.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

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 1057 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.057 seconds in which 0.03 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