Monday, 31 March 2014

Uninstall Office Visio 2010

This post will explain Step by Step instruction How to uninstall Visio 2010 using SCCM 2007 with Zero Touch 

1.Create “SilentUninstallConfig.xml” and past in “Visio.WW” Folder 
https://lh4.googleusercontent.com/HhMUYlgESvwcezRx63mzxrgVYT78g3jIMJAnpd6O40mqrFDG2AR4enSuXCyjPzb6HVQK0zHIQZ1MYVkdRUK8tUbJpZa6iyE-ywB3y3Kb7PJf9f1kL7Oi9MVzffRievZIlxzeeQE


2.Create SilentUninstallConfig.xml using the below code
<Configuration Product=" Visio">
<Display Level="basic" CompletionNotice="no" SuppressModal="yes" AcceptEula="yes" />
<Setting Id="Reboot" Value="Never" />
<Setting Id="SETUP_REBOOT" Value="Never" />
</Configuration>


3.Create Uninstall CMD using the below command
"%~dps0setup.exe" /uninstall Visio /config .\Visio.WW\SilentUninstallConfig.xml
Place the Uninstall CMD in the Office setup.exe folder

4.Create Uninstall VBS to uninstall the Visio 2010 without restart in the end of the uninstall if "Visio or Any office applications" is in open
Uninstall.vbs
Dim Retval
Retval=0

' *** Install Application. ***
Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")

' open normal and don't wait
WSHShell.Run "Uninstall.cmd", 1, True
Set WSHShell = Nothing

' *** show us what RETVAL is, unrem to see what retval = ***
 'MsgBox "The actual return code was " &retval

' *** unrem to set to 3010 for testing ***
'retval = 3010

If retval = 3010 Then
MsgBox "The return code was 3010, resetting to 0"
else
'MsgBox "The actual return code was " &retval
WScript.Quit(Retval)
End If

' *** set the return value to 0 anyway. ***
Retval=0
MsgBox "The return code was reset to 0"
WScript.Quit(Retval)
5.Run the Uninstall.vbs in SCCM program.  

References:
http://myitforum.com/cs2/blogs/nbrady/archive/2010/07/28/preventing-task-sequence-reboot-after-software-install-which-produces-a-3010-exit-code.aspx

No comments:

Post a Comment