Windows JScript script to check Windows Installer Version and upgrade Windows Installer

This is a script written in JScript, which will try to upgrade Windows Installer, if the machine:


  • has no Windows Installer present
  • has an older version of Windows Installer present


This can be handy, especially for remote upgrade of older Windows XP machines.

Download the script
Download the script here (has been renamed to .txt file for safety)

http://www.natureireland.com/blogs/antipatterns/attachments/checkWindowsInstallerVersion.wsf.txt



Run the script

first rename the script to have a .wsf extension

Then type this at command line:

cscript Windows Installer present

Using the Script
Note: the script expects the install file for Windows Installer to be located in a local directory named 'temp'.

You will need to tweak the script, according to the minimum version of Windows Installer you need to install.

Comments