Removing Chrome installed in user profile
Uninstalls chrome if the user has installed it on the local profile. The Ping is the 10 sec wait for it to complete.
Work on a Win7 - XP enviroment. (Norwegian XP paths, so be alert)
It will uninstall any version of Google Chrome placed in the User Profile.
-------------------------------------------------start script--------------------------------------------------------
if not exist "%programfiles(x86)%" goto winxp
for /D %%i in ("%userprofile%\appdata\Local\Google\Chrome\Application\*") do (
if exist "%%i\installer\setup.exe" "%%i\installer\setup.exe" --uninstall --multi-install --chrome --verbose-logging --force-uninstall --delete-profile
)
ping 127.0.0.1 -n 10
rd "%userprofile%\appdata\Local\Google\Chrome" /S /Q
exit /b 0
:winxp
for /D %%i in ("%userprofile%\Lokale innstillinger\Programdata\Google\Chrome\Application\*") do (
if exist "%%i\installer\setup.exe" "%%i\installer\setup.exe" --uninstall --multi-install --chrome --verbose-logging --force-uninstall --delete-profile
)
ping 127.0.0.1 -n 10
rd "%userprofile%\Lokale innstillinger\Programdata\Google\Chrome" /S /Q
exit /b 0
Work on a Win7 - XP enviroment. (Norwegian XP paths, so be alert)
It will uninstall any version of Google Chrome placed in the User Profile.
-------------------------------------------------start script--------------------------------------------------------
if not exist "%programfiles(x86)%" goto winxp
for /D %%i in ("%userprofile%\appdata\Local\Google\Chrome\Application\*") do (
if exist "%%i\installer\setup.exe" "%%i\installer\setup.exe" --uninstall --multi-install --chrome --verbose-logging --force-uninstall --delete-profile
)
ping 127.0.0.1 -n 10
rd "%userprofile%\appdata\Local\Google\Chrome" /S /Q
exit /b 0
:winxp
for /D %%i in ("%userprofile%\Lokale innstillinger\Programdata\Google\Chrome\Application\*") do (
if exist "%%i\installer\setup.exe" "%%i\installer\setup.exe" --uninstall --multi-install --chrome --verbose-logging --force-uninstall --delete-profile
)
ping 127.0.0.1 -n 10
rd "%userprofile%\Lokale innstillinger\Programdata\Google\Chrome" /S /Q
exit /b 0
0 Comments
[ + ] Show comments
Answers (0)
Please log in to answer
Be the first to answer this question
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.