spidey
March 22, 2019, 4:31pm
1
hi all.
i have task for uninstall visio premium 2010
already create bat file
here is the command forbat file :
@echo off
start
\my file sharing\setup.exe /uninstall Visio /config \my file sharing\Visio.WW\uninstall_visio.xml
exit
and here is the xml file
in action script.
i only using.
download http://myserver/Uploads/uninstall_viprem64.bat
waithidden cmd.exe /c __Download\uninstall_viprem64.bat /p /r”
i already running debug for my action above and its completed status
and when i deploy to client. the status also completed.
but when i check in to client. the application didnt remove.
anyone can help me.
is there anything wrong with the script or anything else.
spidey
March 23, 2019, 2:57am
2
more information
my consolse version is 9.2.2.21
and when i try to execute bat file directly in to client
it shows UAC
is there any solution for bypass it when i using in tivoli.
dakota
March 25, 2019, 3:45pm
3
This is the task i’ve been using for uninstalling visio 2010 premium. It can be simplified, but it works…
Relevance: (exists key whose (value "DisplayName" of it as string as lowercase contains "microsoft visio premium 2010") of keys "HKLM\software\microsoft\windows\currentversion\uninstall" of (x64 registries;x32 registries))
if {exists key whose (value "DisplayName" of it as string as lowercase contains "microsoft visio premium 2010") of key "HKLM\software\microsoft\windows\currentversion\uninstall" of x32 registry}
// Create new silent_uninstall_config.xml
delete "C:\Program Files (x86)\Common Files\microsoft shared\OFFICE14\Office Setup Controller\silent_uninstall_config.xml"
delete __appendfile
appendfile <Configuration Product="VISIO">
appendfile <Display Level="None" CompletionNotice="No" SuppressModal="Yes" AcceptEula="Yes" />
appendfile <Setting Id="SETUP_REBOOT" Value="Never" />
appendfile </Configuration>
copy __appendfile "C:\Program Files (x86)\Common Files\microsoft shared\OFFICE14\Office Setup Controller\silent_uninstall_config.xml"
waithidden taskkill.exe /F /IM "visio.exe"
wait "C:\Program Files (x86)\Common Files\microsoft shared\OFFICE14\Office Setup Controller\setup.exe" /uninstall Visio /config "C:\Program Files (x86)\Common Files\microsoft shared\OFFICE14\Office Setup Controller\silent_uninstall_config.xml"
endif
if {exists key whose (value "DisplayName" of it as string as lowercase contains "microsoft visio premium 2010") of key "HKLM\software\microsoft\windows\currentversion\uninstall" of x32 registry}
// Create new silent_uninstall_config.xml
delete "C:\Program Files (x86)\Common Files\microsoft shared\OFFICE14\Office Setup Controller\silent_uninstall_config.xml"
delete __appendfile
appendfile <Configuration Product="VISIOR">
appendfile <Display Level="None" CompletionNotice="No" SuppressModal="Yes" AcceptEula="Yes" />
appendfile <Setting Id="SETUP_REBOOT" Value="Never" />
appendfile </Configuration>
copy __appendfile "C:\Program Files (x86)\Common Files\microsoft shared\OFFICE14\Office Setup Controller\silent_uninstall_config.xml"
waithidden taskkill.exe /F /IM "visio.exe"
wait "C:\Program Files (x86)\Common Files\microsoft shared\OFFICE14\Office Setup Controller\setup.exe" /uninstall Visior /config "C:\Program Files (x86)\Common Files\microsoft shared\OFFICE14\Office Setup Controller\silent_uninstall_config.xml"
endif
if {exists key whose (value "DisplayName" of it as string as lowercase contains "microsoft visio premium 2010") of key "HKLM\software\microsoft\windows\currentversion\uninstall" of x64 registry}
// Create new silent_uninstall_config.xml
delete "C:\Program Files\Common Files\microsoft shared\OFFICE14\Office Setup Controller\silent_uninstall_config.xml"
delete __appendfile
appendfile <Configuration Product="VISIO">
appendfile <Display Level="None" CompletionNotice="No" SuppressModal="Yes" AcceptEula="Yes" />
appendfile <Setting Id="SETUP_REBOOT" Value="Never" />
appendfile </Configuration>
copy __appendfile "C:\Program Files\Common Files\microsoft shared\OFFICE14\Office Setup Controller\silent_uninstall_config.xml"
waithidden taskkill.exe /F /IM "visio.exe"
wait "C:\Program Files\Common Files\microsoft shared\OFFICE14\Office Setup Controller\setup.exe" /uninstall Visio /config "C:\Program Files\Common Files\microsoft shared\OFFICE14\Office Setup Controller\silent_uninstall_config.xml"
endif
if {exists key whose (value "DisplayName" of it as string as lowercase contains "microsoft visio premium 2010") of key "HKLM\software\microsoft\windows\currentversion\uninstall" of x64 registry}
// Create new silent_uninstall_config.xml
delete "C:\Program Files\Common Files\microsoft shared\OFFICE14\Office Setup Controller\silent_uninstall_config.xml"
delete __appendfile
appendfile <Configuration Product="VISIOR">
appendfile <Display Level="None" CompletionNotice="No" SuppressModal="Yes" AcceptEula="Yes" />
appendfile <Setting Id="SETUP_REBOOT" Value="Never" />
appendfile </Configuration>
copy __appendfile "C:\Program Files\Common Files\microsoft shared\OFFICE14\Office Setup Controller\silent_uninstall_config.xml"
waithidden taskkill.exe /F /IM "visio.exe"
wait "C:\Program Files\Common Files\microsoft shared\OFFICE14\Office Setup Controller\setup.exe" /uninstall Visior /config "C:\Program Files\Common Files\microsoft shared\OFFICE14\Office Setup Controller\silent_uninstall_config.xml"
endif
Success Criteria: exists key whose (value "DisplayName" of it as string as lowercase contains "microsoft visio premium 2010") of keys "HKLM\software\microsoft\windows\currentversion\uninstall" of (x64 registries;x32 registries)
spidey
March 26, 2019, 1:57am
4
hi dakota,
thanks for your reply.
i will testing it and will be back for the result.
currently iam using Offscrub for uninstall it. and finally its work.
here is the action script that i used
download http://myserver/Uploads/OffScrub10.vbs
if{x64 of operating system}
action uses wow64 redirection false
endif
waithidden cscript “__Download\OffScrub10.vbs” /Visio /Quiet /NoCancel /Force /norestart