|
|
|||||||
Two files are needed to do this.
Here is the KiX script:
Here is the INI file:
|
||||||||
|
|
|||||||
This script checks very quick if certain "non MSI" packed software is installed. Only if install or upgrade is required, and if the computer is present in certain networks (the local network), the software is installed. Do not hesitate to comment or to give script modification proposals. in example:
|
||||||||
|
|
|||||||
I like your script. CAn you tell me if this was ever completed where you can uninstall a previous package and enable logging for success or failures. I am trying to uninstall MSI from many machines and need then upgrade to latest version |
||||||||
|
|
|||||||
Do you want to distribute the Windows Installer 3.0? IIWY, I would not uninstall the old version first. IMHO, Microsoft wouldn't be Microsoft if they would not succeed to update their Installer in a decent way. I think you want to look for the key "KB893803v2" and the DisplayVersion "3.1". The script is still as it is in the first post. |
||||||||
|
|
|||||||
Hi witto: I've tried to use your script to install Citrix receiver in a Computer group Policy, but I get error in line 42 >> Expected ")"! Line 42 is $strNetworkID = Split(ReadProfileString($INI, $Section, "NetworkID"), ";") I'm only using one IP network in the INI file. I don't know what is wrong. I'm new with KIX and my scripting knowledge is very poor. Any help would be much appreciated. Thanks a lot. |
||||||||
|
|
|||||||
Without seeing your ini file, I'm guessing you don't have a ; at the end of the value. The code is converting the string to an array, and without the ; it doesn't convert. |
||||||||
|
|
|||||||
there is no examples in this pseudo UDF code. it seems that he is wanting the user to somehow plug in the ini file and section inside this script... without trying it out myself, I couldn't honestly say for sure but I think in Patxicla's case there might actually be something wrong on line 41 or even before that. |
||||||||
|
|
|||||||
I'm also thinking that there's a code issue on a prior line. The following simple test shows that the ";" or even multiple entries in the split isn't necessary: Code: $ = 'stuff' $a = Split($, ';') UBound($a) ' elements.' ? Glenn |