About Me

I have worked in IT Support, Software Development, Network Support and general IT Analyst. Like most System Administrators I am multi-talented , understanding modern technical systems, as well as having an in-depth understanding of IS Policy

Friday, 10 February 2012

Rolling out MapinfoV11 via Microsoft SCCM


Rolling out MapinfoV11 via SCCM is not easy as you have a number or pre-requisites which must be installed. I created vbs scripts to allow me to individually install each part. Therefore I would have some idea where the program failed when monitoring the logs.  Also it makes the process completely hidden from the end user.


11.       We first had to uninstall V6 of Mapinfo where installed. We used a batch file for this.
C:\Windows\IsUninst.exe -a -f"C:\Program Files\MapInfo\Professional\MIPro60.isu"

22.       Next  install  Visual C+ redistrib. 2010 via a VBS script. (Downloaded from Microsoft)
set WshShell = Wscript.createobject("Wscript.Shell")
WshShell.Run "vcredist_x86.exe /passive /norestart"

33.       Next  install dotNetFX4.0 full client via a VBS Script. (Downloaded from Microsoft)
set WshShell = Wscript.createobject("Wscript.Shell")
WshShell.Run "dotnetfx40_full_x86_x64.exe /passive /norestart"

44.       Next install KB2484832.exe via a VBS Script. (Get this from Microsoft support)
set WshShell = Wscript.createobject("Wscript.Shell")
WshShell.Run "KB2484832-x86.exe /norestart /passive"

55.       Next install KB2498911.exe via a VBS Script. (Get this from Microsoft support)
set WshShell = Wscript.createobject("Wscript.Shell")
WshShell.Run "KB2498911-x86.exe /norestart /passive"

66.       Next Install Mapinfov11 itself via a VBSScript.(you will need to distribute setup.exe, Mapinfo Professional11.0.msi and data1.cab from the CD)
Dim strRunCmd1, strRunCmd2
strRunCmd1 = "setup.exe /S /V"
set WshShell = Wscript.createobject("Wscript.Shell")
strruncmd2 = Addinvertedcommas(" /qb USERNAME=\") & "uuuuuuuuu\" & Addinvertedcommas(" COMPANYNAME=\") & "ccccccccccccccc\" & Addinvertedcommas(" PIDKEY=") & "XXXXXXXXXXXXXXXXX" & AddInvertedCommas(" ACCD=") & "0000000" & AddInvertedCommas(" LSNAME=") & "YYYYYYYYYYYYY" & AddInvertedCommas(" LSPN=") & "999999999" & AddInvertedCommas(" ")
wshshell.run strRuncmd1 & strruncmd2
set wshshell = nothing
Function AddInvertedCommas(strInput)
                AddInvertedCommas = Chr(34) & strInput & Chr(34)
End Function