NOVINKA! E-learningové kurzy umělé inteligence. Nyní AI za nejlepší ceny. Zjisti více:
NOVINKA – Víkendový online kurz Software tester, který tě posune dál. Zjisti, jak na to!

Diskuze: ulozenie hodnoty z regisru do premennej v batchi

Aktivity
Avatar
Msprg
Člen
Avatar
Msprg:30.12.2015 23:07

Zdravím, tak zase dalsi moj pochybny pokus o nejaky maly pochybny programík :-D

Dobre.... takze potrebujem vytiahnut hodnotu registru a ulozit do premennej akejkolvek batchi. vytiahol som nieco z programu ku android appkke ktora to myslim robi.
mam pocit ze za to moze tento kusok kodu:

<NUL SET /P Dummy=* Finding VLC install location...
ECHO.
SET Key_Name="HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\VLC media player"
IF %processor_architecture% == x86 SET Key_Name=%Key_Name:Wow6432Node\=%
SET Value_Name="InstallLocation"
FOR /F "usebackq tokens=2*" %%A IN (`REG QUERY %Key_Name% /v %Value_Name% 2^>nul`) DO (set VLCPath=%%B)
FOR /F "usebackq tokens=2*" %%A IN (`REG QUERY %Key_Name% /v VersionMajor 2^>nul`) DO (set VersionMajor=%%B)
FOR /F "usebackq tokens=2*" %%A IN (`REG QUERY %Key_Name% /v VersionMinor 2^>nul`) DO (set VersionMinor=%%B)

zdrojak samotneho programu som to cerpal je:

@ECHO OFF
REM Configuration Script for VLC Direct Pro (https://play.google.com/store/apps/details?id=com.vlcforandroid.vlcdirectprofree)
SETLOCAL ENABLEEXTENSIONS
ECHO ###########################################
ECHO # Configuration Script for VLC Direct Pro #
ECHO ###########################################
ECHO.
<NUL SET /P Dummy=* Finding VLC install location...
ECHO.
SET Key_Name="HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\VLC media player"
IF %processor_architecture% == x86 SET Key_Name=%Key_Name:Wow6432Node\=%
SET Value_Name="InstallLocation"
FOR /F "usebackq tokens=2*" %%A IN (`REG QUERY %Key_Name% /v %Value_Name% 2^>nul`) DO (set VLCPath=%%B)
FOR /F "usebackq tokens=2*" %%A IN (`REG QUERY %Key_Name% /v VersionMajor 2^>nul`) DO (set VersionMajor=%%B)
FOR /F "usebackq tokens=2*" %%A IN (`REG QUERY %Key_Name% /v VersionMinor 2^>nul`) DO (set VersionMinor=%%B)


:ADITIONAL_OPTS
SET OPTS_2_1=
SET OPTS_2=
SET V_2=0
SET V_21=0
IF %VersionMajor% NEQ 2 GOTO AFTER_OPTS_2
        SET OPTS_2= --sout-ffmpeg-strict=-2 --rtsp-timeout=99999 --http-port=8080
        SET V_2=1
        IF %VersionMinor% EQU 0 GOTO AFTER_OPTS_2_1
                SET OPTS_2_1= --http-password=vlcdirect --sout-avcodec-strict=-2
                SET V_21=1
:AFTER_OPTS_2_1
:AFTER_OPTS_2
GOTO AFTER_ADITIONAL_OPTS


:AFTER_ADITIONAL_OPTS
IF %V_21%==1 GOTO RunVLC
SET txtFound=not found!
SET txtPath=If you have VLC installed please
IF "%VLCPath%" == "" GOTO :ManualPath
SET txtFound=found at: %VLCPath%
SET txtPath=Press [Enter] if you want to use VLC installed at this location or
IF EXIST "%VLCPath%\vlcdirect.ok" GOTO :RunVLC
:ManualPath
ECHO %txtFound%
ECHO.
ECHO %txtPath%
SET /P VLCOK=write the path manually and press Enter (i.e. D:\VLC):
ECHO.
IF "%VLCOK%" NEQ "" SET VLCPath=%VLCOK%
IF EXIST "%VLCPath%\vlc.exe" GOTO :Start

:NoVLC
ECHO VLC Player not found. Please install VLC Player from:
ECHO.
ECHO http://www.videolan.org
ECHO.
ECHO Press any key to access the VLC website...
PAUSE >NUL
START http://www.videolan.org
ECHO.
GOTO :END

:Start
REM This duplicated condition must stay in case a manual path has been entered
IF EXIST "%VLCPath%\vlcdirect.ok" GOTO :RunVLC
ECHO * Using installation path: %VLCPath%
ECHO.
ECHO * Configuring VLC for VLC Direct Pro, please wait...
IF EXIST "%VLCPath%\vlcdirect.test" DEL /S /Q "%VLCPath%\vlcdirect.test" >NUL 2>&1
<NUL SET /P Dummy=--- Checking administrator access rights...
ECHO Admin access rights test > "%VLCPath%\vlcdirect.test"
IF NOT EXIST "%VLCPath%\vlcdirect.test" GOTO :Access_Problem
ECHO OK.
DEL /S /Q "%VLCPath%\vlcdirect.test" >NUL 2>&1
ECHO --- Configuring hosts files...
SET HostLUA="%VLCPath%\lua\http\.hosts"
SET HostHTTP="%VLCPath%\http\.hosts"
IF EXIST %HostHTTP% GOTO :Mod_Hosts_HTTP
:Step1
IF EXIST %HostLUA% GOTO :Mod_Hosts_Lua_HTTP
:Step2
<NUL SET /P Dummy=--- Checking file:
findstr /m "VLC Direct Pro" %HostFile%
IF NOT "%errorlevel%"=="0" GOTO :Access_Problem
ECHO OK > "%VLCPath%\vlcdirect.ok"

ECHO.
ECHO.
ECHO First Time configuration Successful!
ECHO.
ECHO Now in your Android Device, in VLC Direct Pro Free,
ECHO go to Menu, Automatic Connection Wizard and click START
ECHO.
ECHO Enjoy!
ECHO.
SET FirstTime=1
GOTO :RunVLC

:Mod_Hosts_HTTP
SET HostFile=%HostHTTP%
SET Return=Step1
GOTO :Hosts

:Mod_Hosts_Lua_HTTP
SET HostFile=%HostLua%
SET Return=Step2

:Hosts
ECHO. >> %HostFile%
ECHO ### VLC Direct Pro edit starts here ## >> %HostFile%
ECHO 10.0.0.0/8 >> %HostFile%
ECHO 172.16.0.0/12 >> %HostFile%
ECHO 192.168.0.0/16 >> %HostFile%
ECHO 169.254.0.0/16 >> %HostFile%
ECHO ### VLC Direct Pro edit ends here ## >> %HostFile%
GOTO :%Return%

:Access_Problem
ECHO.
ECHO.
ECHO This script needs administrator permissions the first time it runs.
ECHO.
ECHO Please Right click on this file (%0) and
ECHO then select "Run as Administrator".
ECHO.
ECHO This is needed only the first time it runs because it needs
ECHO to configure VLC to allow Android connections.
ECHO.
ECHO.
PAUSE
GOTO :END

:RunVLC
ECHO.
ECHO.
ECHO * Everything configured.
ECHO * Starting VLC...
START "" "%VLCPath%\vlc.exe" %OPTS_2_1% %OPTS_2% --no-video-title-show --extraintf http
IF "%FirstTime%" == "1" PAUSE

:END
 
Odpovědět
30.12.2015 23:07
Avatar
Msprg
Člen
Avatar
Msprg:9.1.2016 21:31

dobre.... asi tu zdochol pes.

 
Nahoru Odpovědět
9.1.2016 21:31
Avatar
Tomik152
Člen
Avatar
Tomik152:11.1.2016 12:37

Nevím co chcíplo, ale mně osobně není vůbec jasný na co se ptáš.

např:

  1. vytiahnut hodnotu registru
  2. ulozit do premennej akejkolvek batchi
  3. vytiahol som nieco z programu ku android appkke

napiš polopatě co to má dělat a třeba ti někdo pomůže, toto dle mého nemá hlavu ani patu!:)... ale #noHate třeba to v tom jen nevidím.

 
Nahoru Odpovědět
11.1.2016 12:37
Avatar
Martin Dráb
Tvůrce
Avatar
Odpovídá na Tomik152
Martin Dráb:11.1.2016 14:27

Podle mě tady totiž žádná otázka nezazněla.

Bylo by dobré sdělit, co nefunguje, jak se to chová odlišně od tvých představ atd. Možná by bylo lepší se na batch vykašlat a podívat se, jak se k registrům přistupuje v některém (podle mě) vhodnějším jazyce.

Existují na to (práci s registrem) přímo funkce Windows API (RegOpenKey(Ex), RegQueryValue(Ex)), což znamená, že z každého rozumného jazyka přinejhořším použiješ ty. Kdyby ses podíval tímto směrem, možná by už jsi měl dávno hotovo.

Nahoru Odpovědět
11.1.2016 14:27
2 + 2 = 5 for extremely large values of 2
Avatar
Msprg
Člen
Avatar
Msprg:11.1.2016 16:42

islo mi iba o to ze kazdy pouzivatel si moze nainstalovat nejaky program do odlisneho umiestnenia ako do c:/programfiles/* a v registroch je predsa kluc ku odinstalatoru ktory je vacsinou v korenovom adresari programu.

chcem aby ten prgram v batchi zistil ci ten a ten kluc v registri existuje a popripade ho upravil a ulozil do premennej aby ho potom mohol pouzit inde v programe. neviem ci to pisem zrozumitelne.......

aktualne sa po inom jazyku obzeram ale som zaciatocnik a batch nakoniec nieje az taky zly no neviem... pokial chces mozes mi nejaky lahsi jazyk odporucit

 
Nahoru Odpovědět
11.1.2016 16:42
Avatar
Tomik152
Člen
Avatar
Tomik152:11.1.2016 16:53

Toto nepomůže?
1 . http://stackoverflow.com/…if-it-was-in
2. http://www.installmate.com/…ninstall.htm

Popřípadě já využívám toto:

TITLE Toolbar + Junk Software Removal in Progress
REM #### UPDATE 02/07/2015 ####
Echo Off
cls

REM ##################################################
REM ##################################################
REM ############## Close all Browsers ################
REM ##################################################
REM ##################################################
taskkill /f /im iexplore.exe /im firefox.exe /im chrome.exe
cls

REM ##################################################
REM ##################################################
REM #######  PREINSTALLED SOFTWARE REMOVAL ###########
REM ##################################################
REM ##################################################
echo Removes Live Essentials
start /wait msiexec.exe /x {FE044230-9CA5-43F7-9B58-5AC5A28A1F33} /quiet /norestart
"c:\program files (x86)\windows live\installer\wlarp.exe" /cleanup:all /q
"c:\program files\windows live\installer\wlarp.exe" /cleanup:all /q
echo Removes Live Mesh
start /wait msiexec.exe /x {DECDCB7C-58CC-4865-91AF-627F9798FE48} /quiet /norestart
echo Removes Live Mail
start /wait msiexec.exe /x {C66824E4-CBB3-4851-BB3F-E8CFD6350923} /quiet /norestart
echo Removes Live Mesh ActiveX
start /wait msiexec.exe /x {2902F983-B4C1-44BA-B85D-5C6D52E2C441} /quiet /norestart
echo Removes Live Messager
start /wait msiexec.exe /x {EB4DF488-AAEF-406F-A341-CB2AAA315B90} /quiet /norestart
echo Removes Cisco EAP Fast Modules
start /wait msiexec.exe /x {64bf0187-f3d2-498b-99ea-163af9ae6ec9} /qn /norestart
echo Removes Cisco LEAP Module
start /wait msiexec.exe /x {51c7ad07-c3f6-4635-8e8a-231306d810fe} /qn /norestart
echo Removes Cisco PEAP Module
start /wait msiexec.exe /x {ed5776d5-59b4-46b7-af81-5f2d94d7c640} /qn /norestart
echo removes Energy Star
start /wait msiexec.exe /x {bd1a34c9-4764-4f79-ae1f-112f8c89d3d4} /qn /norestart
Echo removes Evernote
start /wait msiexec.exe /x {f761359c-9ced-45ae-9a51-9d6605cd55c4} /qn /norestart
echo removes SQL Compact
start /wait msiexec.exe /x {f0b430d1-b6aa-473d-9b06-aa3dd01fd0b8} /qn /norestart
Echo Microsoft Security Essentials
"%ProgramFiles%/Microsoft Security Client/setup.exe" /x /s
"%ProgramFiles%\Microsoft Security Essentials\setup.exe" /x /s
"%ProgramFiles(x86)%\Microsoft Security Essentials\setup.exe" /x /s

REM #################################################
REM #################################################
REM ########  Mainstream Toolbar Removals ###########
REM #################################################
REM #################################################
Echo Removes Ask Toolbar
"C:\Program Files\Ask.com\Updater\Updater.exe" -uninstall
"C:\Program Files (x86)\Ask.com\Updater\Updater.exe" -uninstall
start /wait msiexec.exe /x {13F537F0-AF09-11D6-9029-0002B31F9E59} /qn /norestart
start /wait msiexec.exe /x {2318C2B1-4965-11D4-9B18-009027A5CD4F} /qn /norestart
start /wait msiexec.exe /x {2E5E800E-6AC0-411E-940A-369530A35E43} /qn /norestart
start /wait msiexec.exe /x {4E7BD74F-2B8D-469E-C0FB-F778B590AD7D} /qn /norestart
start /wait msiexec.exe /x {5A263CF7-56A6-4D68-A8CF-345BE45BC911} /qn /norestart
start /wait msiexec.exe /x {86D4B82A-ABED-442A-BE86-96357B70F4FE} /qn /norestart
start /wait msiexec.exe /x {AA58ED58-01DD-4D91-8333-CF10577473F7} /qn /norestart
start /wait msiexec.exe /x {AF69DE43-7D58-4638-B6FA-CE66B5AD205D} /qn /norestart
start /wait msiexec.exe /x {D4027C7F-154A-4066-A1AD-4243D8127440} /qn /norestart
start /wait msiexec.exe /x {EF99BD32-C1FB-11D2-892F-0090271D4F88} /qn /norestart
start /wait MsiExec.exe /X {4152532D-4D45-4400-76A7-A758B70C0A06} /qn /norestart
start /wait MsiExec.exe /X {41525333-2D56-3700-76A7-A758B70C0300} /qn /norestart
start /wait MsiExec.exe /X {41525333-0076-A76A-76A7-A758B70C0A02} /qn /norestart
start /wait MsiExec.exe /X {4F524A2D-5637-4300-76A7-A758B70C0A03} /qn /norestart
start /wait msiexec.exe /x {42435041-2d53-4154-00a7-a758b70b0a00} /qn /norestart
start /wait msiexec.exe /x {4F524A00-6A76-A76A-76A7-A758B70C1C01} /qn /norestart
start /wait msiexec.exe /x {4F524A2D-5637-2D53-4154-A758B70C1D00} /qn /norestart
start /wait msiexec.exe /x {4152532D-5247-006A-76A7-A758B70C0A00} /qn /norestart
start /wait msiexec.exe /x {41525333-2D56-3700-76A7-A758B70C1D00} /qn /norestart
start /wait msiexec.exe /x {4F524A2D-5637-006A-76A7-A758B70C0001} /qn /norestart
start /wait msiexec.exe /x {4F524A2D-5637-006A-76A7-A758B70C1C01} /qn /norestart
start /wait msiexec.exe /x {4F524A2D-5637-006A-76A7-A758B70C1D00} /qn /norestart
start /wait msiexec.exe /x {4F524A2D-5637-4300-76A7-A758B70C0700} /qn /norestart
start /wait msiexec.exe /x {4F524A2D-5637-4300-76A7-A758B70C1500} /qn /norestart
start /wait msiexec.exe /x {4F524A2D-5637-4300-76A7-A758B70C1C01} /qn /norestart
start /wait msiexec.exe /x {4F524A2D-5637-4300-76A7-A758B70C1D00} /qn /norestart
start /wait msiexec.exe /x {57434C32-2D56-3700-76A7-A758B70C1C01} /qn /norestart
start /wait msiexec.exe /x {57434C32-2D56-3700-76A7-A758B70C1D00} /qn /norestart
start /wait msiexec.exe /x {86D4B82A-ABED-442A-BE86-96357B70F4FE} /qn /norestart

Echo Bing/Windows Live Bar Removal
Start /wait msiexec.exe /x {C28D96C0-6A90-459E-A077-A6706F4EC0FC} /qn /norestart
Start /wait MsiExec.exe /X {786C4AD1-DCBA-49A6-B0EF-B317A344BD66} /qn /norestart
Start /wait MsiExec.exe /X {A5C4AD72-25FE-4899-B6DF-6D8DF63C93CF} /qn /norestart
Start /wait MsiExec.exe /X {341201D4-4F61-4ADB-987E-9CCE4D83A58D} /qn /norestart
Start /wait MsiExec.exe /X {F084395C-40FB-4DB3-981C-B51E74E1E83D} /qn /norestart
Start /wait MsiExec.exe /X {D5A145FC-D00C-4F1A-9119-EB4D9D659750} /qn /norestart
start /wait msiexec.exe /x {1e03db52-d5cb-4338-a338-e526dd4d4db1} /qn /norestart

Echo Remove AOL Toolbar
"C:\Program Files\AOL\AOL Toolbar 4.0\uninstall.exe"
"C:\Program Files (x86)\AOL\AOL Toolbar 4.0\uninstall.exe"
"C:\Program Files\AOL\AOL Toolbar 5.0\uninstall.exe"
"C:\Program Files (x86)\AOL\AOL Toolbar 5.0\uninstall.exe"

Echo Remove Yahoo Toolbar
"C:\Program Files\Yahoo!\Common\unyt.exe" /S
RD "C:\Program Files\Yahoo!\" /S /Q
"C:\Program Files (x86)\Yahoo!\Common\unyt.exe" /S
RD "C:\Program Files (x86)\Yahoo!\" /S /Q

cls


REM #################################################
REM #################################################
REM ##########  Junk Software Removals ##############
REM #################################################
REM #################################################
Echo DVDVideosoftTBToolbar
"C:\Program Files\DVDVideoSoftTB\uninstall.exe"
"C:\Program Files (x86)\DVDVideoSoftTB\uninstall.exe"

Echo Removes PDForge Toolbar V6
Start /Wait MsiExec.exe /X{96B3C2A3-ADD6-4E63-89D3-1E3AC115D3FA} /qn /norestart

Echo Virtual DJ Toolbar
start /wait MsiExec.exe /X{56444A2D-5637-006A-76A7-A758B70C0A06} /qn /norestart

Echo AVG Toolbars
"C:\Program Files\AVG SafeGuard toolbar\UNINSTALL.exe" /PROMPT /UNINSTALL
"C:\Program Files\AVG Secure Search\UNINSTALL.exe" /PROMPT /UNINSTALL
"C:\Program Files (x86)\AVG SafeGuard toolbar\UNINSTALL.exe" /PROMPT /UNINSTALL
"C:\Program Files (x86)\AVG Secure Search\UNINSTALL.exe" /PROMPT /UNINSTALL

Echo BT Toolbar
"C:\Program Files (x86)\bttb\uninstall.exe"
"C:\Program Files\bttb\uninstall.exe"

Echo Buenosearch Toolbar
"C:\Program Files (x86)\buenosearch LTD\buenosearch\1.8.28.7\GUninstaller.exe" -uprtc -ask "Bueno Toolbar" -rmbus "buenosearch toolbar" -nontfy -key "buenosearch"
"C:\Program Files\buenosearch LTD\buenosearch\1.8.28.7\GUninstaller.exe" -uprtc -ask "Bueno Toolbar" -rmbus "buenosearch toolbar" -nontfy -key "buenosearch"

echo removes Xobi
"C:\Program Files (x86)\Xobni\UninstallerWizard.exe" -uninstall
"C:\Program Files\Xobni\UninstallerWizard.exe" -uninstall

Echo Browser Defender
"C:\ProgramData\BrowserDefender\2.6.1562.221\{c16c1ccb-1111-4e5c-a2f3-533ad2fec8e8}\uninstall.exe" /Uninstall /{15D2D75C-9CB2-4efd-BAD7-B9B4CB4BC693} /su=3a6664ea8d80382b /um

Echo Search Protect by Conduit
"C:\Program Files\SearchProtect\bin\uninstall.exe" /S
"C:\Program Files (x86)\SearchProtect\bin\uninstall.exe" /S

Echo SearchFlyBar2 Toolbar
"C:\Program Files\SearchFlyBar2\uninstall.exe" toolbar
"C:\Program Files (x86)\SearchFlyBar2\uninstall.exe" toolbar

Echo FLV Runner Toolbar
"C:\Program Files\FLV_Runner\uninstall.exe" toolbar
"C:\Program Files (x86)\FLV_Runner\uninstall.exe" toolbar
"C:\Program Files\FLV_Runner_B2\uninstall.exe" toolbar
"C:\Program Files (x86)\FLV_Runner_B2\uninstall.exe" toolbar
"C:\Program Files\Begin-download_FLV_B2\uninstall.exe" toolbar
"C:\Program Files (x86)\Begin-download_FLV_B2\uninstall.exe" toolbar

Echo xVidly4 Toolbar
"C:\Program Files\xvidly4\uninstall.exe" toolbar
"C:\Program Files (x86)\xvidly4\uninstall.exe" toolbar

Echo BitTorrentControl_v12 Toolbar
"C:\Program Files (x86)\BitTorrentControl_v12\uninstall.exe" toolbar
"C:\Program Files\BitTorrentControl_v12\uninstall.exe" toolbar

Echo Whittesmoke Toolbar
"C:\Program Files (x86)\WhiteSmoke_New\uninstall.exe" toolbar
"C:\Program Files\WhiteSmoke_New\uninstall.exe" toolbar

Echo Easyfundraising Toolbar
"C:\Program Files (x86)\easyfundraising toolbar\tbunsy24A.tmp\uninstaller.exe"
"C:\Program Files\easyfundraising toolbar\tbunsy24A.tmp\uninstaller.exe"

Echo Inbox Toolbar
"C:\Program Files\Inbox Toolbar\unins000.exe" /silent
"C:\Program Files (x86)\Inbox Toolbar\unins000.exe" /silent

Echo ALOT Toolbar
"C:\Program Files\alot\alotUninst.exe"
"C:\Program Files (x86)\alot\alotUninst.exe"

Echo browserTweeks Toolbar
"C:\Program Files\BrowserTweaks\IEScreenshot\unins000.exe" /silent
"C:\Program Files (x86)\BrowserTweaks\IEScreenshot\unins000.exe" /silent

Echo Chatzum Toolbar
"C:\Program Files (x86)\ChatZum Toolbar\tbunsb9EE4.tmp\uninstaller.exe"
"C:\Program Files\ChatZum Toolbar\tbunsb9EE4.tmp\uninstaller.exe"

Echo Data Toolbar 2.3.2
msiexec.exe /x{39238ce4-f7e3-4289-820d-4575907a2cad} /qn

Echo Facemoods Toolbar
"C:\Program Files (x86)\facemoods.com\facemoods\1.4.17.11\uninstall.exe"
"C:\Program Files\facemoods.com\facemoods\1.4.17.11\uninstall.exe"

Echo Free_Game_ Bar_2
"C:\Program Files\Free_Game_Bar_2\uninstall.exe"
"C:\Program Files (x86)\Free_Game_Bar_2\uninstall.exe"

Echo Games Bar A Toolbar
"C:\Program Files\Games_Bar_A\uninstall.exe" toolbar
"C:\Program Files (x86)\Games_Bar_A\uninstall.exe" toolbar

Echo FromDoctoPDF Chrome Toolbar
"C:\Program Files\FromDocToPDF_65 Chrome Extension\bar\FromDocToPDFCrxSetup.F5979297-4067-4543-81F5-9A037A2C173B.exe /u mindsparktoolbarkey="FromDocToPDF_65 Chrome Extension"
"C:\Program Files (x86)\FromDocToPDF_65 Chrome Extension\bar\FromDocToPDFCrxSetup.F5979297-4067-4543-81F5-9A037A2C173B.exe /u mindsparktoolbarkey="FromDocToPDF_65 Chrome Extension"

Echo Incredibar Toolbar for IE
"C:\Program Files\Incredibar.com\incredibar\1.5.11.14\uninstall.exe"
"C:\Program Files\IncrediMail_MediaBar_2\uninstall.exe" toolbar
"C:\Program Files (x86)\Incredibar.com\incredibar\1.5.11.14\uninstall.exe"
"C:\Program Files (x86)\IncrediMail_MediaBar_2\uninstall.exe" toolbar

Echo IE Toolbar 4.6 by Sweetpacks
msiexec.exe /x{c3e85ee9-5892-4142-b537-bceb3dac4c3d} /qn

Echo IsoBuster Toolbar
"C:\Program Files\IsoBuster\uninstall.exe" toolbar
"C:\Program Files (x86)\IsoBuster\uninstall.exe" toolbar

Echo NCH Toolbar
"C:\Program Files\NCH\uninstall.exe"
"C:\Program Files (x86)\NCH\uninstall.exe"

Echo Nectar Search Toolbars
"C:\Program Files\Nectar Search Toolbar\Uninst.exe"
"C:\Program Files (x86)\Nectar Search Toolbar\Uninst.exe"

Echo Winzip Bar
"C:\Program Files\WinZipBar\uninstall.exe"
"C:\Program Files (x86)\WinZipBar\uninstall.exe"

Echo PageRank Toolbar
"C:\Program Files\PageRage\uninstall.exe"
"C:\Program Files (X86)\PageRage\uninstall.exe"

Echo Radio TV 2.1 Toolbar
"C:\Program Files\Radio_TV_2.1\uninstall.exe"
"C:\Program Files (x86)\Radio_TV_2.1\uninstall.exe"

Echo TV Bar 2 B Toolbar
"C:\Program Files (x86)\TV_Bar_2_B\uninstall.exe"
"C:\Program Files\TV_Bar_2_B\uninstall.exe"

Echo Radio Bar 1 Toolbar
"C:\Program Files\Radio_Bar_1\uninstall.exe"
"C:\Program Files (x86)\Radio_Bar_1\uninstall.exe"

Echo StartNow Toolbar
"C:\Program Files (x86)\StartNow Toolbar\StartNowToolbarUninstall.exe"
"C:\Program Files\StartNow Toolbar\StartNowToolbarUninstall.exe"


Echo Search Results Toolbar
"C:\Program Files (x86)\searchresults1\uninstall.exe"
"C:\Program Files\searchresults1\uninstall.exe"

Echo Search-Results Toolbar
C:\PROGRA~1\SEARCH~1\Datamngr\SRTOOL~1\uninstall.exe
C:\PROGRA~2\SEARCH~1\Datamngr\SRTOOL~1\uninstall.exe

Echo SearchQU Toolbar
"C:\Program Files\Searchqu Toolbar\uninstall.exe"
"C:\Program Files (x86)\Searchqu Toolbar\uninstall.exe"
"C:\Program Files (x86)\Windows searchqu Toolbar\uninstall.exe"
"C:\Program Files\Windows searchqu Toolbar\uninstall.exe"

Echo Stumbleupon Toolbar
"C:\Program Files (x86)\StumbleUpon\uninstall.exe"
"C:\Program Files\StumbleUpon\uninstall.exe"

Echo SmilboxEN Toolbar
"C:\Program Files (x86)\SmileBox_EN\uninstall.exe"
"C:\Program Files\SmileBox_EN\uninstall.exe"

Echo Utorrent Toolbar
"C:\Program Files\uTorrentBar\uninstall.exe"
"C:\Program Files (x86)\uTorrentBar\uninstall.exe"

Echo WiseConvert B Toolbar
"C:\Program Files\WiseConvert_B\uninstall.exe" toolbar
"C:\Program Files (x86)\WiseConvert_B\uninstall.exe" toolbar

Echo Wise Convert B2 Toolbat for IE
"C:\ProgramData\Conduit\IE\CT3297951\UninstallerUI.exe" -ctid=CT3297951 -toolbarName=WiseConvert B2 -toolbarEnv=conduit -type=IE

Echo WiseConvert Toolbar
"C:\Program Files\WiseConvert\uninstall.exe"
"C:\Program Files (x86)\WiseConvert\uninstall.exe"

Echo xVidly4 Toolbar
"C:\Program Files (x86)\xvidly4\uninstall.exe" toolbar
"C:\Program Files\xvidly4\uninstall.exe" toolbar

Echo YTD Toolbar V7.2
msiexec.exe /x{4bbd417f-13b6-4477-b7c2-ae705864058d} /qn

Echo YTD Toolbar V7.5
msiexec.exe /x{5af054b4-ee0f-4492-90b2-d82ea28e0711} /qn

Echo Zynga Toolbar
"C:\Program Files (x86)\Zynga\uninstall.exe"
"C:\Program Files\Zynga\uninstall.exe"

Echo Web Accessibility Toolbar 2011
"C:\Program Files\WAT_EN\unins000.exe" /silent
"C:\Program Files (x86)\WAT_EN\unins000.exe" /silent

Echo Web Accessibility Toolbar
"C:\Program Files\Accessibility_Toolbar\unins000.exe" /silent
"C:\Program Files (x86)\Accessibility_Toolbar\unins000.exe" /silent

Echo Web Accessibility Toolbar 2013
"C:\Program Files (x86)\Accessibility_Toolbar\unins000.exe" /silent
"C:\Program Files\Accessibility_Toolbar\unins000.exe" /silent

Echo Windows iLivid Toolbar
"C:\Program Files\Windows iLivid Toolbar\uninstall.exe"
"C:\Program Files (x86)\Windows iLivid Toolbar\uninstall.exe"

Echo Movies Toolbar
"C:\PROGRA~2\MOVIES~1\Datamngr\SRTOOL~1\GC\uninstall.exe" /UN=CR /PID=^AG6
"C:\PROGRA~1\MOVIES~1\Datamngr\SRTOOL~1\FF\uninstall.exe" /UN=FF /PID=LVD2-DTX
"C:\PROGRA~1\MOVIES~1\Datamngr\SRTOOL~1\IE\uninstall.exe" /UN=IE /PID=LVD2-DTX

Echo Babylon Toolbar (IE)
"C:\Program Files\BabylonToolbar\BabylonToolbar\1.5.3.17\uninstall.exe"
"C:\Program Files (x86)\BabylonToolbar\BabylonToolbar\1.5.3.17\uninstall.exe"

Echo Babylon Toolbar
msiexec.exe /x{e55e7026-ef2a-4a17-aaa7-db98ea3fd1b1} /qn

"C:\Program Files\BabylonToolbar\BabylonToolbar\1.8.4.9\GUninstaller.exe" -uprtc -key "BabylonToolbar"
"C:\Program Files (x86)\BabylonToolbar\BabylonToolbar\1.8.4.9\GUninstaller.exe" -uprtc -key "BabylonToolbar"

Echo Delta Toolbar
"C:\Program Files\Delta\delta\1.8.21.5\GUninstaller.exe" -uprtc -ask -rmbus 'delta' -key "delta"
"C:\Program Files\Delta\delta\1.8.24.6\GUninstaller.exe" -uprtc -ask -rmbus "Delta toolbar" -nontfy -bname=dlt -key "delta"
"C:\Program Files (x86)\Delta\delta\1.8.21.5\GUninstaller.exe" -uprtc -ask -rmbus 'delta' -key "delta"
"C:\Program Files (x86)\Delta\delta\1.8.24.6\GUninstaller.exe" -uprtc -ask -rmbus "Delta toolbar" -nontfy -bname=dlt -key "delta"

Echo POKKI (Desktop Apps and Game Installer)
"C:\Windows\system32\config\systemprofile\AppData\Local\Pokki\Uninstall.exe"

Echo FLV Runner Toolbar
"C:\Program Files\FLV_Runner\uninstall.exe" toolbar
"C:\Program Files (x86)\FLV_Runner\uninstall.exe" toolbar

Echo Productivity 3.1 B2 Toolbar
"C:\ProgramData\Conduit\IE\CT3297930\UninstallerUI.exe" -ctid=CT3297930 -toolbarName=Productivity 3.1 B2 -toolbarEnv=conduit -type=IE -origin=AddRemove -userMode=2

Echo Nation Toolbar
"C:\Program Files\Nation Toolbar\tbunss2A93.tmp\uninstaller.exe"
"C:\Program Files (x86)\Nation Toolbar\tbunss2A93.tmp\uninstaller.exe"

Echo MyToolbar
"C:\Program Files\My Toolbar\ATBPToolbar.1.0.Uninstall.exe"
"C:\Program Files (x86)\My Toolbar\ATBPToolbar.1.0.Uninstall.exe"

Echo Connect DLC Toolbar for IE
"C:\ProgramData\Conduit\IE\CT3306061\UninstallerUI.exe" -ctid=CT3306061 -toolbarName=Connect DLC 5 -toolbarEnv=conduit -type=IE -origin=AddRemove -userMode=2

Echo BrowserPlus2 Toolbar
"C:\ProgramData\Conduit\IE\CT3309350\UninstallerUI.exe" -ctid=CT3309350 -toolbarName=BrowserPlus2 -toolbarEnv=conduit -type=IE

Echo Removes Coupon
"C:\Program Files\Coupons\uninstall.exe" "/U:C:\Program Files\Coupons\Uninstall\uninstall.xml"
"C:\Program Files (x86)\Coupons\uninstall.exe" "/U:C:\Program Files (x86)\Coupons\Uninstall\uninstall.xml" /S
"C:\Program Files (x86)\Coupon Printer\uninstall.exe" "/U:C:\Program Files (x86)\Coupon Printer\Uninstall\uninstall.xml"
"C:\Program Files\Coupon Printer\uninstall.exe" "/U:C:\Program Files\Coupon Printer\Uninstall\uninstall.xml"

Echo Browser Good
"C:\Program Files (x86)\Browser Good\BrowserGooduninstall.exe"

Echo Removes RegClean Pro
"C:\Program Files (x86)\RegClean Pro\unins000.exe" /silent
"C:\Program Files\RegClean Pro\unins000.exe" /silent

Echo Removes Registry Mechanic
"C:\Program Files\PC Tools Registry Mechanic\unins000.exe" /SILENT
"C:\Program Files (x86)\PC Tools Registry Mechanic\unins000.exe" /SILENT

Echo Removes Arcade Candy
"%UserProfile%\Local Settings\Application Data\ArcadeCandy\candyRemove.exe"

Echo Removes PriceGong
"C:\Program Files\PriceGong\Uninst.exe"
"C:\Program Files (x86)\PriceGong\Uninst.exe"

Echo Removes Smart Shopper
"C:\Program Files\ShopperReports3\bin\3.0.491.0\ShopperReportsUninstaller.exe" Web
"C:\Program Files (x86)\ShopperReports3\bin\3.0.491.0\ShopperReportsUninstaller.exe" Web

Echo Removes Select Rebates
"C:\Program Files\SelectRebates\SelectRebatesUninstall.exe"
"C:\Program Files (x86)\SelectRebates\SelectRebatesUninstall.exe"

Echo Candy
"%UserProfile%\Local Settings\Application Data\ArcadeCandy\candyRemove.exe"

Echo Bubble Sound
"C:\Program Files\BubbleSound\Uninstall.exe"

Echo Web Protector Plus
"C:\Program Files (x86)\WebProtectorPlus\uninstall.exe"

Echo Baidu Antivirus
"C:\Program Files\Baidu Security\Baidu Antivirus\Uninstall.exe"

Echo Freeze.com NetAssistant
start /wait msiexec.exe /X{C792A75A-2A1F-4991-9B85-291745478A79} /QN /norestart

Echo Nuance PDF Reader
start /wait MsiExec.exe /X{5F6C549F-78DA-4E0E-AE70-0BD981936D99} /Qn /norestart

Echo InstallQ Updater
Start /wait MsiExec.exe /X{294A2E0E-3A0B-4D1F-8282-11DEF2040227} /QN /norestart

Echo System Checkup
"C:\Program Files\iolo\System Checkup\uninstscu.exe" /uninstall


REM #################################################
REM #################################################
REM ##########    WMIC Uninstallers   ###############
REM #################################################
REM #################################################

"c:\program files (x86)\windows live\installer\wlarp.exe" /cleanup:all /q
"c:\program files\windows live\installer\wlarp.exe" /cleanup:all /q
wmic product where name="eBay Worldwide" call uninstall
wmic product where name="Norton Online Backup" call uninstall
wmic product where name="Windows Live Essentials" call uninstall
wmic product where name="ThinkVantage Access Connections" call uninstall
wmic product where name="AT&T Service Activation" call uninstall
wmic product where name="Mobile Broadband Connect" call uninstall
wmic product where name="Windows Live" call uninstall
wmic product where name="Windows Live Sign-in Assistant" call uninstall
wmic product where name="Verizon Wireless Mobile Broadband Self Activation" call uninstall
wmic product where name="Windows Live Toolbar" call uninstall
wmic product where name="Windows Live Essentials" call uninstall
wmic product where name="Client Security - Password Manager" call uninstall
wmic product where name="Microsoft Search Enhancement Pack" call uninstall
wmic product where name="Windows Live Movie Maker" call uninstall
wmic product where name="Windows Live Mesh" call uninstall
wmic product where name="Bing Bar" call uninstall
wmic product where name="Corel WinDVD" call uninstall

REM #################################################
REM #################################################
REM ##########  .DLL Toolbar Removals ###############
REM #################################################
REM #################################################

Echo Removing Coupon DLL Files
IF EXIST "C:\WINDOWS\CouponsBar.dll" regsvr32 /u /s "C:\WINDOWS\CouponsBar.dll"
IF EXIST "C:\WINDOWS\CouponsBar.dll" DEL "C:\WINDOWS\CouponsBar.dll"
IF EXIST "C:\Windows\cpbrkpie.ocx" DEL "C:\Windows\cpbrkpie.ocx"



REM #################################################
REM #################################################
REM ##########  DISK CLEANUP TOOL ###################
REM #################################################
REM #################################################
CLS
Echo CLEANING OLD PC DATA and TEMP FILES
c:\windows\system32\cleanmgr.exe /lowdiskspace
Editováno 11.1.2016 16:54
 
Nahoru Odpovědět
11.1.2016 16:53
Avatar
Msprg
Člen
Avatar
Msprg:11.1.2016 18:56

ok takze som problem vyriesil sam... zistil som ze kluc registra je preddefinovany a meni sa iba v zavislosti na architekture.... takze teraz snad pochopite o co mi islo:

@ECHO OFF
SETLOCAL ENABLEEXTENSIONS
SET Key_Name="HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\VLC media player"
IF %processor_architecture% == x86 SET Key_Name=%Key_Name:Wow6432Node\=%
SET Value_Name="InstallLocation"
FOR /F "usebackq tokens=2*" %%A IN (`REG QUERY %Key_Name% /v %Value_Name% 2^>nul`) DO (set installpath=%%B)
Riadok v zdrojaku Za co je riadok zodpovedny
SET Key_Name="HKE­Y_LOCAL_MACHI­NE\SOFTWARE\Wow6432No­de\Microsoft\Win­dows\CurrentVer­sion\Uninstall\VLC media player" Kluc v registri
IF %processor_ar­chitecture% == x86 SET Key_Name=%Key_Na­me:Wow6432Node\=% Meni kluc teda premennu "Key_Name" podla toho aka je architektura
FOR /F "usebackq tokens=2*" %%A IN (REG QUERY %Key_Name% /v %Value_Name% 2^>nul) DO (set installpath=%%B) Uklada data v registri do premennej v tomto pripade "installpath"

Vsimnite si este raz riadok:

FOR /F "usebackq tokens=2*" %%A IN (`REG QUERY %Key_Name% /v %Value_Name% 2^>nul`) DO (set installpath=%%B)

Je tam premenna%Key_Name% a %Value_Name% pricom:

%Key_Name%="HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\VLC media player"

A podla riadku "SET Value_Name="In­stallLocation"" je %Value_Name%=in­stallLocation

To znamena ze: riadok FOR /F "usebackq tokens=2*" %%A IN (REG QUERY %Key_Name% /v %Value_Name% 2^>nul) DO (set installpath=%%B) Vitiahne hodnotu kluca HKEY_LOCAL_MAC­HINE\SOFTWARE\Wow6432No­de\Microsoft\Win­dows\CurrentVer­sion\Uninstall\VLC media player\installLo­cation a ulozi ju do premennej installpath. A presne to som chcel dosiahnuť.

Ďakujem vám za ochotu pomôcť aj keď som si myslel že tu už zdochol pes. :-)

Akceptované řešení
+5 Zkušeností
Řešení problému
 
Nahoru Odpovědět
11.1.2016 18:56
Avatar
mkub
Tvůrce
Avatar
Odpovídá na Msprg
mkub:11.1.2016 20:30

k tomu BATCH len tolko, ze je jeden z najpomalsich jazykov (jeho rychlost suvisi priamo s rychlostou HDD), nie je vhodny na zlozitejsie projekty - neumoznuje to,co ine jazyky, ako napr. C/C++, C#, J#, Perl, Python, Java a pod.
ale je vhodny na pisanie jednoduchych skriptov
a takisto pri zlozitych projektov sa stava neprehladnym

 
Nahoru Odpovědět
11.1.2016 20:30
Děláme co je v našich silách, aby byly zdejší diskuze co nejkvalitnější. Proto do nich také mohou přispívat pouze registrovaní členové. Pro zapojení do diskuze se přihlas. Pokud ještě nemáš účet, zaregistruj se, je to zdarma.

Zobrazeno 8 zpráv z 8.