/build/static/layout/Breadcrumb_cap_w.png

ITNinja Question


How can I call a VB Script in a batch file in a K1000 managed install?

11/21/2013 8912 views

I am attempting to uninstall Microsoft Office 2010 x86 then install Office 2013 x64.

To uninstall Office x86, I am using OffScrub10.vbs which was extracted from a Microsoft FixIt outlined here - http://goo.gl/3JD0og

I am calling the VBScript to uninstall, then the Office setup.exe in a batch file here:

 @echo off

pushd %~dp0

start /wait "" cscript offscrub10.vbs All /force 

start setup.exe 

This all works fine ran directly on the PC.

When it is put in a zip file with the Office 2013 files, and the .bat file is called in the managed install, the install completely skips the VBScript.

Is there a way around this? Is it even possible?

2 Comments   [ + ] Show comments

Comments

  • Do you have to uninstall 2010? You can't just install 2013 over top of it?
    • The Office 2013 64 bit setup will not uninstall or install over the Office 2010 installation because the bitness is different. eg. x64 vs x86
  • This content is currently hidden from public view.
    Reason: Removed by member request For more information, visit our FAQ's.
  • This content is currently hidden from public view.
    Reason: Member has been banned from the site For more information, visit our FAQ's.
  • Were you ever able to get it to work? I'm trying to do the same thing even using jagadeish's link I can't find a way to add switches.
    • There were only a handful of computers that we needed to use this on, so we just ran the batch file by hand from an external hard drive.
      Though, I believe this may be possible with the 6.0 version of the k1000 now having VB script support.

All Answers

1

Try with this

Start /wait Cscript.exe //B // NoLogo "%~dp0OffScrub10.vbs" All /Force

Answered 11/22/2013 by: jagadeish
Red Belt

  • No this still does not work.
    Does the K1000 have a problem with calling VBScripts?
    • http://www.itninja.com/blog/view/kace-running-vbs-script-in-scripting

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ