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”.
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)
Please log in to answer