I'm editing my cleanup.cmd file, and there's something I need to do.
I need a way to say "If Firefox is installed, then run the following 3 lines of code".
Then 3 lines of code are:
REM Mozilla Firefox (Remove IE Shortcuts)
DEL "%UserProfile%\Application Data\Microsoft\Internet Explorer\Quick Launch\Launch Internet Explorer Browser.lnk"
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\ClassicStartMenu /v "{871C5380-42A0-1069-A2EA-08002B30309D}" /t REG_DWORD /d 1 /f
REG ADD HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\HideDesktopIcons\HideDesktopIcons\NewStartPanel /v "{871C5380-42A0-1069-A2EA-08002B30309D}" /t REG_DWORD /d 1 /f
But these lines should ONLY run, IF firefox was installed.
Also, I need the way to check for firefox to be path-indifferent - meaning, it doesn't matter where firefox is installed to.
How can I do this?



Help

Back to top








