/build/static/layout/Breadcrumb_cap_w.png

Firefox uninstall \ install in one KACE Script

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

Answers (1)

Posted by: FSchmelzle 6 years ago
Senior Yellow Belt
0
I realized it with a sleep command betweem the Tasks.

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