

- Manually uninstall access runtime 2010 install#
- Manually uninstall access runtime 2010 Pc#
- Manually uninstall access runtime 2010 windows#
Start "" "C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE" \\someserver\public\ACCESS\someDB.accdb /runtime /nostartup Reg import \\someserver\public\ACCESS\allowAccess.reg

:: import registry key to flag the DB as trusted :: execute only if a start menu entry or the registry key is found REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Office14.AccessRT" /v DisplayName If exist "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Office\Microsoft Access 2010.lnk" ( If exist "C:\Program Files\Microsoft Office\Office14\MSACCESS.EXE" ( If exist "C:\Program Files (x86)\Microsoft Office\Office14\MSACCESS.EXE" ( :: set some variables false because batch has no logical OR
Manually uninstall access runtime 2010 Pc#
:: test whether your PC has Access or Access Runtime only if you are in the listįind/i "%COMPUTERNAME%" \\someserver\folder\list.txt >nul To simply check whether Access Runtime 2010 is installed or not i use this line REG QUERY "HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Office14.AccessRT" /v DisplayNameĪnd as mentioned before you can catch the %errorlevel% for further instructionsįor example a logon script i wrote : off if the value is 0 or less - and I doubt it could ever be less). if the value is >=1), or IF NOT ERRORLEVEL 1 (i.e. The other syntax for testing ERRORLEVEL, don't do if errorlevel 0 (silly) 'cos that asks the value is >=0. So you can test IF %errorlevel%=0 You can test IF NOT %errorlevel%=0 When %errorlevel% is >=1 then it means error.
Manually uninstall access runtime 2010 windows#
I look for Windows Media Playerr (notice the extra r) C:\>reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\UninĮrror: The system was unable to find the specified registry key or value That "successful" reg query command sets ERRORLEVEL to 0, meaning no error. UninstallString REG_SZ "C:\Program Files\Windows Media Player\Setup_wm.ĭisplayIcon REG_SZ C:\Program Files\Windows Media Player\wmplayer.exe HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Windows MĭisplayName REG_SZ Windows Media Player 10 One program listed is Windows Media Player, which you'd have too C:\>reg query "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Unin You can run that command and scroll through that just to get an idea of the command C:\>reg query HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Unins Here is the place in the registry where that is stored. C:\>if exist a.a echo hereĪs an example, whatever the program, one place you might see the thing is in Add/Remove programs. Now find out what files the access 2000 installation thing puts in the hard drive and pick a unique one, or a directory it makes, and use that for your IF statement. In the examples below, you can replace "echo here", with the path of a program One can say if exist a.a c:\program\program.exe I don't have a file called a.b and I don't have a directory called c:\windows1

I have a file called a.a and a directory called c:\windows.

IF NOT ACCESS2000RunTimeInstallation RUN ACCESS2000RuntimeInstallation I'm surprised you didn't find that command If the program doesn't exist, %_versionstring% will be empty.Ĭhecking the registry is definitely faster, but I would argue this is the 'correct' way to check if a MSI based program is installed. Of course, if the program name has "2010" in it, there isn't really a need to check the version number. Office 2010 has a major version number (the first number, separated by dots) of 14. If /i "%_versionstring%" LSS "WhateverTheMajorVersionNumberShouldBe" ( You can then, in the batch file, run the query command: setlocal EnableDelayedExpansionįor /f "skip=1 tokens=1 usebackq delims=." %%a in (`wmic product where "name like 'WhateverAccessRuntimeIsCalled'" get version`) do ( Then, on your own computer: wmic product get name,version>programlist.txt & notepad.exe programlist.txt & del programlist.txt
Manually uninstall access runtime 2010 install#
To check what it's actually called (you need exact name) and correct version, install it on your own computer. wmic product where "name like 'WhateverAccessRuntimeIsCalled'" get version The commands for checking installed programs typically take a bit of time to run, however. As an alternative to the registry, if you want to check if it's installed, wmic can do that.
