I'm writing to you because I'm a bit lost. I'm currently creating a package for installing Office 2016, in which I want to handle the removal of previous versions of Office, such as 2003, 2007, and 2010, beforehand.
To perform this removal, I downloaded the Microsoft Fixit tools for each Office version. When each Fixit tool is run, a temporary VBScript file is created which is sufficient to remove the various versions of Office 2003 and others.
These files are called Offscrub03.vbs (for 2003), Offscrub07.vbs (for 2007), etc.
To completely uninstall the products, simply enter the following command:
Code: Select all
cscript Offscrub03.vbs /ALL /Q /NoCancel /BYPASS 1This command works perfectly when entered directly at the DOS prompt.
However, in the WAPT package code:
Code: Select all
run('script "Offscrub03.vbs" /ALL /Q /NoCancel /BYPASS 1')Code: Select all
<RunOuput returncode :0>
"Microsoft (R) Windows Script Host Version 5.8\r\nCopyright (C) Microsoft Corporation 1996-2001. Tous droits r\x82serv\x82s.\r\n\r\nMicrosoft Customer Support Services - Office 2003 Removal Utility\r\n\r\nVersion: 1.39\r\n64 bit OS: Vrai\r\nStart removal: 26/07/2018 10:53:49\r\n\r\nInsufficient registry access permissions - exiting\r\nc:\\Offscrub03.vbs(119, 5) Erreur d'ex\x82cution Microsoft VBScript: Variable non d\x82finie: 'TmpKeyCleanUp'\r\n\r\n"My question is this:
Why do we have two different results where in one case rights don't seem to be a problem at all and in the other they are? Is there another way to do this?
Thank you very much, my Waptian friends!
