/build/static/layout/Breadcrumb_cap_w.png

Scripting Question


Firefox uninstall \ install in one KACE Script

11/13/2017 3155 views
Hi, we want to change Firefox from all old Versions 32 bit to the newest 64bit.
If we upgrade the Versions to 64 bit with patching, Firefox still is in the \Programs (X86)\ Folder which makes problems with one of our used softwares.
So we need to delete Firefox and reinstall it.

Therefore i tried to use the following script.
Task 1 and 2 are working.
Task 3 is only working with a new script. Does it need somthing like a "break" or "wait" until Task 1 or 2 are ready?

Online KScript

Task1:
Verify
Verify that the directory “C:\Program Files\Mozilla Firefox\uninstall” exists.

On Success
Launch “c:\Program Files\Mozilla Firefox\uninstall\helper.exe” with params “-ms”.Edit
Log “Uninstalled Firefox on x86 PC” to “status”.

Task2:
Verify
Verify that the directory “C:\Program Files (x86)\Mozilla Firefox\uninstall” exists.

On Success
Launch “C:\Program Files (x86)\Mozilla Firefox\uninstall\helper.exe” with params “-ms”.
Log “Uninstalled Firefox on x64 PC” to “status”.

Task3:
Verify
Verify that the file “C:\Program Files (x86)\Mozilla Firefox\firefox.exe” exists.
Verify that the file “C:\Program Files\Mozilla Firefox\firefox.exe” exists.

Remediation
Install “Mozilla Firefox 56.0.2 (x64 en-US)” with arguments “-ms”.

0 Comments   [ + ] Show comments

Comments


All Answers

0
I realized it with a sleep command betweem the Tasks.
Answered 11/20/2017 by: FSchmelzle
Senior Yellow Belt

This content is currently hidden from public view.
Reason: Removed by member request For more information, visit our FAQ's.
 
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