Silent uninstall command for Avira AntiVirus - windows

I'm trying to remove Avira Antivirus from my PC using PDQ deploy and i need a silent uninstall command to do so.The standard command seems to be: "C:\Program Files (x86)\Avira\Antivirus\setup.exe" /REMOVE
but this requires a prompt from the user to complete. I've tried /SILENT, /S /QUIET but no joy. Any ideas?

found it. If anyone needs it it's:
"C:\Program Files (x86)\Avira\Antivirus\setup.exe" /REMSILENTNOREBOOT

Related

Deploying a driver fails in VS 2019

Trying to experiment a bit with KMDF and the echo driver fails to deploy:
A[13:22:28:862]: An error occured while deploying files to the target machine for test "Driver Preparation": Could not find a part of the path 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.21.27702\debug_nonredist\X64\Microsoft.VC141.DebugCRT'..
Why does it try to find Microsoft.VC141.DebugCRT. I have Microsoft.VC142.DebugCRT installed with the newer toolset along with 10.0.18362.0 SDK.
I also installed the VS 2017 toolset and now the same error:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\VC\Redist\MSVC\14.21.27702\debug_nonredist\X64\Microsoft.VC141.DebugCRT missing.
But it should look into ...\14.16.27012.. instead.
I've been getting the same error. I've tried uninstalling/reinstalling also tried 2017 as well. I uninstalled everything and reinstalled everything with no luck. I even tried installing VC141.
I acutally came to your post looking for an answer but on a whim I opened the installer, modified it to install the VC141 stuff which put the files into Community\VC\Redist\MSVC\14.16.27012\debug_nonredist\x64
VS still complained so i just copied * from Community\VC\Redist\MSVC\14.16.27012\debug_nonredist\x64 into Community\VC\Redist\MSVC\14.21.27702\debug_nonredist\x64 and "things seem to work". It's not much of an answer - but maybe it's good enough?
This seems to be the result of a bugfix of another issue, as described here:
https://developercommunity.visualstudio.com/content/problem/596096/visual-studio-2019-wdk10.html
The proposed solution worked for me:
As Administrator, run Developer Command Prompt for VS 2019
Run the following commands in the VS Developer Command Prompt:
cd /d %VCToolsRedistDir%\debug_nonredist
MKLINK /J x86\Microsoft.VC141.DebugCRT x86\Microsoft.VC142.DebugCRT
MKLINK /J x64\Microsoft.VC141.DebugCRT x64\Microsoft.VC142.DebugCRT
Hope this helps :)
Ran into a similar issue. Perform the following steps on the host computer.
As Administrator, run Developer Command Prompt for VS 2019 Run the following commands in the VS Developer Command Prompt:
cd /d %VCToolsRedistDir%\debug_nonredist
MKLINK /J x86\Microsoft.VC141.DebugCRT x86\Microsoft.VC142.DebugCRT
MKLINK /J x64\Microsoft.VC141.DebugCRT x64\Microsoft.VC142.DebugCRT

Silent install vcredist 2010 and do nothing if already installed

I need to install vcredist_x86|x64.exe 2010 from a batch file to be sure that all the needed dependencies are present in the PC.
If already installed, it should do nothing but it keeps showing the following GUI:
I tried all I've found in MS documentation and examples online but the result is always the same.
Tried /q /quiet /qn /qb /passive /repair.
Is it possbile to tell it to do nothing if already installed?
EDIT
Important detail: I call the batch file from a javascript in a Qt installer.
var vcredistCmd = "#TargetDir#/vcredist.bat";
component.addElevatedOperation("Execute", vcredistCmd, targetDir);
The batch file:
%1\vcredist_x86.exe /q
exit 0
OK, I don't know the reason but I've found the solution.
Executing the file from the directory where it's located, solves the problem.
The batch file:
cd %1
vcredist_x86.exe /q
exit 0

Can't uninstall Visual Studio 2015 (The storage control blocks were destroyed)

So I wanted to force an uninstallation of VS2015 Enterprise with "vs_enterprise.exe /uninstall /force", but I get an error message:
Update for Microsoft Windows (KB2999226) : The storage control blocks were destroyed.
I tried to restart my PC, so that Windows can apply that update, but it didn't work, the uninstall process always exits with that error.
I have no idea how to proceed.
When I tried to uninstall Visual Studio 2015 Community Edition I first when to the Control Panel > Programs and Features, tried to uninstall it that way.
Then found the following link:
force uninstall a visual studio 2015 preview or release candidate
Then navigated to C:\ProgramData and typed:
dir /s vs_community.exe
It generated this useful path info:
C:\ProgramData\Package Cache\{50b32652-69d2-4b93-9316-edcd12067b8b}
Then used Windows Explorer to go to that folder, Shift + Right Click > Open command window here and ran:
vs_community.exe /uninstall /force
I then got this error screen after a LONG time...
Then saw the below question:
removing visual studio components left behind after an uninstall
So I tried to run:
vs_community.exe /repair
It ended up hanging and I force quit it after about a half hour. Then I ran:
vs_community.exe /uninstall /force
This time I checked the error log, and found the following line very near the bottom.
Applying execute package: Windows7_MSU_x64, action: Uninstall, path: 2999226, arguments: '"C:\windows\SysNative\wusa.exe" /uninstall /kb:2999226 /quiet /norestart'
Thought I had to install the KB2999226 update because of the error:
Update for Microsoft Windows (KB2999226) : The storage control blocks were destroyed.
So I installed it, but vs_community.exe still wouldn't force uninstall. I probably already had the update installed, but can't find out because my windowsupdate.log file only goes back a month or so? Anyhow, my installing of the update probably didn't change anything.
According to the following articles:
sysnative folder 64 bit windows
File System Redirector - MSDN
The Windows7_MSU_x64 was trying to get to the C:\Windows\System32 folder, but because I have a 64-bit version of Windows 7, it was trying to reach the C:\windows\SysNative folder, because it is an auto-redirect to the real System32 folder. For some reason I don't have a SysNative folder, so...
I then went to Windows Update and uninstalled the KB2999226 update and went back to:
C:\ProgramData\Package Cache\{50b32652-69d2-4b93-9316-edcd12067b8b}
Ran the following again:
vs_community.exe /uninstall /force
This time it worked and I got the screen:
I had the same issue (WINDOWS 7) and I solved by making sure the following KB's were installed:
KB3139923
KB3072630
Having one installed without the presence of the other was causing the issue.
In case anyone encounters this again, the following did the trick for me:
Download and install KB2999226 from
https://www.microsoft.com/en-us/download/details.aspx?id=49093
Create a symbolic link from c:\Windowss\SysNative to c:\Windows\System32 using the following command line:
mklink /D c:\Windows\SysNative c:\Windows\System32
Running the following command from command prompt:
"C:\ProgramData\Package Cache\{68432bbb-c9a5-4a7b-bab3-ae5a49b28303}\vs_professional.exe" /uninstall /force
The {6844...} part might be different on different machines and the vs_professional.exe might be located at different location but I guess anyone should be able to search for it inside the "PackageCache" folder
I had just the same issue. But for me nothing here has worked.
The only way worked for me was the standard way through the Windows Uninstall panel. The only difference here you have to reboot and uninstall it again until the option disappeared from the panel.
The below steps fixed it for me.
First uninstall KB2999226:
wusa.exe /uninstall /kb:2999226 /quiet /norestart
Download and re-install KB2999226 (the one we just uninstalled above):
https://www.microsoft.com/en-us/download/details.aspx?id=49093
Uninstall Visual Studio from admin shell (you can use the install exe you originally used for the install):
vs_community.exe /uninstall /force

Installling.exe using MSIEXEC in NSIS (Program doesn't install at all)

I try to install a program (.exe)in the NSIS Script here is my code
;Install PDFXVIEWER
SetOutPath "$INSTDIR\PdfViewer"
File /r "file\PdfViewer\PDFXV.exe"
ExecWait 'msiexec /i "file\PdfViewer\PDFXV.exe" /VERYSILENT /NORESTART /DIR="$INSTDIR\PdfViewer"'
However, during the installation i got a windows installer popup ! :
http://i.stack.imgur.com/g8Gdh.jpg
and the program is not installed at all.
Can anyone point me my error??
thanks
msiexec is for installing .msi files (And remember to use full paths). You should be able to execute the .exe file normally...
exec doc:
Note that the file specified must exist on the target system, not the compiling system.
"file\PdfViewer\PDFXV.exe" is the file on the compiling computer, not the target system, you should change it to "$INSTDIR\PdfViewer\PDFXV.exe"

Silent Installation of setup.exe

I'm trying to run a silent installation for a couple of setup.exe. I searched for this topic and the suggested command was:
setup.exe /q
I ran the command and still received the setup wizard. The applications I'm trying to install are VB6 apps. I believe the installers where created using the Package & Deployment Wizard tool. I'm unsure if this has anything to do with it.
To do a silent install, you have to use the following syntax (with log file) :
setup.exe /s c:\yourlogfilename.log
You must include the full path after /s which will launch a silent installation.
The only thing which could interupt the silent installation is the "Setup is attempting to copy a file that is older than the one currently..." dialog box.
I believe the "s" switch should be used. setup.exe /s should work, but if not, you can try setup.exe /silent. If you want a log add a path to the log file after the switch.
Try
setup.exe /sc:\path\to\yourlogfilename.log<br />
In Visual Basic installers there must be no blank between /s and the path for log file.

Resources