Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account


Photo

How Can I Make Avira AntiVir Silent Install ? What is switch ?

- - - - -

  • Please log in to reply
23 replies to this topic

#1
ahmedah

ahmedah

    Newbie

  • Member
  • 16 posts
Hello ..

How Can I Make Avira AntiVir Silent Install ?? What is switch ??

I use USEF to Know a switch and It didn't found it ??

What Can I Do ??


How to remove advertisement from MSFN

#2
Yzöwl

Yzöwl

    Wise Owl

  • Super Moderator
  • 4,530 posts
  • OS:Windows 7 x64
  • Country: Country Flag

Donator

Moved to appropriate Forum


Will this help?

#3
ahmedah

ahmedah

    Newbie

  • Member
  • 16 posts
Sorry .. I did not found what I want

Please All Help me

#4
radix

radix

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 738 posts
  • OS:Windows 8 x64
  • Country: Country Flag

Sorry .. I did not found what I want

Please All Help me

Try the next script for Avira AntiVir PersonalEdition Classic 7.06.00.270 :
#cs ---------------------------------------------------------------------------- AutoIt Version: 3.2.10.0 Author:         myName  Avira AntiVir PersonalEdition Classic 7.06.00.270 Script Function:	Template AutoIt script.#ce ----------------------------------------------------------------------------; Script Start - Add your code below hereOpt("TrayIconDebug", 1)Opt("SendKeyDelay", 200); Executable file name$EXECUTABLE = "antivir_workstation_win7u_en_h.exe"; Installation folder$INSTALLLOCATION = @ProgramFilesDir & "\Avira\AntiVir PersonalEdition Classic"If FileExists($INSTALLLOCATION & "\avguard.exe") Then	MsgBox(0x40010, @ScriptName, "Please uninstall previous version of Avira before using this script", 4)	ExitEndIf; Run the installerRun($EXECUTABLE); AcceptWinWait("Avira AntiVir PersonalEdition Classic", "Accept")WinActivate("Avira AntiVir PersonalEdition Classic", "Accept")ControlClick("Avira AntiVir PersonalEdition Classic", "", "Button1"); Welcome to the setup forWinWaitActive("Avira AntiVir PersonalEdition Classic", "Welcome to the setup for")ControlClick("Avira AntiVir PersonalEdition Classic", "", "Button2"); Avira AntiVir PersonalEdition Classic is designed to protect your system from threats of various kinds.WinWaitActive("Avira AntiVir PersonalEdition Classic", "Avira AntiVir PersonalEdition Classic is designed to protect your system from threats of various kinds.")ControlClick("Avira AntiVir PersonalEdition Classic", "", "Button2"); I &accept the terms of the license agreementWinWaitActive("Avira AntiVir PersonalEdition Classic", "I &accept the terms of the license agreement")ControlCommand("Avira AntiVir PersonalEdition Classic", "", "Button1", "Check", "")ControlClick("Avira AntiVir PersonalEdition Classic", "", "Button3"); I accept that Avira AntiVir PersonalEdition Classic is for private useWinWaitActive("Avira AntiVir PersonalEdition Classic", "I accept that Avira AntiVir PersonalEdition Classic is for private use")ControlCommand("Avira AntiVir PersonalEdition Classic", "", "Button1", "Check", "")ControlClick("Avira AntiVir PersonalEdition Classic", "", "Button4"); Generate random serial number and submit during updateWinWaitActive("Avira AntiVir PersonalEdition Classic", "Generate random serial number and submit during update")ControlCommand("Avira AntiVir PersonalEdition Classic", "", "Button1", "UnCheck", "")ControlClick("Avira AntiVir PersonalEdition Classic", "", "Button5"); All program features will be installed.WinWaitActive("Avira AntiVir PersonalEdition Classic", "All program features will be installed.")ControlClick("Avira AntiVir PersonalEdition Classic", "", "Button7"); Installation completeWinWaitActive("Avira AntiVir PersonalEdition Classic", "Installation complete")ControlCommand("Avira AntiVir PersonalEdition Classic", "", "Button1", "UnCheck", "")ControlClick("Avira AntiVir PersonalEdition Classic", "", "Button12"); Do you want to start an update now?WinWaitActive("Setup of Avira AntiVir PersonalEdition Classic", "Do you want to start an update now?")ControlClick("Setup of Avira AntiVir PersonalEdition Classic", "", "Button2"); Close scan processProcessWait("avscan.exe")$PID = ProcessExists("avscan.exe")If $PID Then	ProcessClose($PID)EndIf


#5
krose

krose

    Junior

  • Member
  • Pip
  • 78 posts
  • OS:Windows 7 x64
  • Country: Country Flag
I figured out a way to do a totally silent switchless installer for Avira Antivir Personal Edition Classic. It involves a little work but in the end works nicely. You will need the following:

Antivir_workstation_win7u_en_h.exe http://www.free-av.com/
WinRAR http://www.rarlab.com
Cwnd.exe http://www.ryanvm.ne...opic.php?t=5017 , executable is in the “release” folder
Process.exe http://www.beyondlog...processutil.htm

Download Antivir and extract it with 7-zip or WinRAR to a folder, I called it antivirpec. We are going to create two files and add them to the folder. Open a text editor such as notepad and copy the following text.
[DATA]DestinationPath="C:\Program Files\Avira\AntiVir Workstation"ProgramGroup=1DesktopIcon=0ShellExtension=1Guard=1MailScanner=0KeyFile=C:\Windows\Temp\Avira\hbedv.keyShowReadMe=0RestartWindows=0ShowRestartMessage=0
If you want a desktop icon change the 0 (no) to 1 (yes). MailScanner must be 0 because it is not included in the free edition. If you want to change the path of the install or the path to the registration key just make sure it is an absolute path, variables such as %windir% will not work. Save the file as setup.inf and place it in the antivirpec folder.

Open notepad again and copy the following text.
cwnd /hide @@echo offstart /wait %windir%\Temp\Avira\basic\setup.exe /inf="%windir%\Temp\Avira\setup.inf"process -k avscan.exeexit
cwnd.exe is a utility to hide the DOS box when the command runs. You could also use cmdow.exe. Just be sure that whichever you use is in your system32 folder.

The setup command uses the switch /inf which uses the parameters in the setup.inf file we created and causes the setup to be run silently.

Process.exe is a utility to kill processes in Windows 2000 and Windows XP Home. If you are using XP Pro you can use the taskkill command instead. This command kills the automatic scan that starts after install. If you use process.exe be sure it is in your system32 folder. Save the file as antivir.cmd and place it in the antivirpec folder.

Now make the installer with WinRAR. Open WinRAR and browse to the antivirpec folder. Right click on a file and choose “select all”, making sure all the files and folders are highlighted, then click “Add” on the Toolbar. You’ll get the “Archive name and parameters” window. On the General tab Select “best” as compression method, and check “create solid archive” and “create SFX archive”. Change the archive name if you like but it must have the .exe extension.
Posted Image

Switch to the Advanced tab and select “SFX options” to open Advanced SFX options window.
Posted Image

On the General tab in the “Path to extract” box type the path you want to extract the installer to. Make sure it is the same path you have in the antivir.cmd file. Then in the “Run after extraction” box type in the path to the antivir.cmd file.
Posted Image

Change to the Modes tab and select the “hide all” and “overwrite existing files” radio buttons.
Posted Image

Close the “Advanced SFX Options” window by clicking OK, then click OK on the “Archive name and parameters” window to start creating the installer. The finished installer is created in the antivirpec folder.

#6
ahmedah

ahmedah

    Newbie

  • Member
  • 16 posts

----- Post Nº1 -----

<snip>
Try the next script for Avira AntiVir PersonalEdition Classic 7.06.00.270 :<snip>



Thank You .. It wprked :thumbup

But I want It Hidden .. :blushing:

----- Post Nº2 -----


I figured out a way to do a totally silent switchless installer for Avira Antivir Personal Edition Classic. It involves a little work but in the end works nicely.<snip>


Thank you very very very much

But Sorry It does not work .. Why ??

I do what you said exactly ..

Edited by Yzöwl, 05 February 2008 - 01:55 PM.
excessive unrequired quoted messages snipped and posts merged


#7
biatche

biatche

    Member

  • Member
  • PipPip
  • 194 posts
why use process.exe and not just taskkill?

#8
krose

krose

    Junior

  • Member
  • Pip
  • 78 posts
  • OS:Windows 7 x64
  • Country: Country Flag
As I mentioned in my post, Taskkill is only available for XP Pro users, process.exe is only for XP Home and Win2k users, unless someone can enlighten me otherwise.

@ahmedah - if you followed my example exactly it should work. Make sure that the paths are correct. What OS are you using?

Edited by krose, 05 February 2008 - 08:33 PM.


#9
radix

radix

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 738 posts
  • OS:Windows 8 x64
  • Country: Country Flag

But Sorry It does not work .. Why ??
I do what you said exactly ..

krose's method works.

#10
ahmedah

ahmedah

    Newbie

  • Member
  • 16 posts

As I mentioned in my post, Taskkill is only available for XP Pro users, process.exe is only for XP Home and Win2k users, unless someone can enlighten me otherwise.

@ahmedah - if you followed my example exactly it should work. Make sure that the paths are correct. What OS are you using?


Thank you

Is key file is text file ?

I use XP Professional Edition

#11
krose

krose

    Junior

  • Member
  • Pip
  • 78 posts
  • OS:Windows 7 x64
  • Country: Country Flag
The registration key file is named hbedv.key. It is in the antivirpec folder to which you extracted Antivir_workstation_win7u_en_h.exe. The setup.inf file you created refers to the key file location, which in this example is C:\Windows\Temp\Avira. The paths you enter in the WinRAR Advanced SFX Options window tells the installer to extract to C:\Windows\Temp\Avira, then to run the antivir.cmd file you created, which in turn runs the setup.exe. Make sure your setup.inf and antivir.cmd files have the proper file extension and check all your paths to make sure they are the same as the example. I can't explain it any better than that.

#12
cool400

cool400

    Junior

  • Member
  • Pip
  • 72 posts
@krose

WOW - this is the best idea I ever saw to install AVIRA AntiVir completely silent and unattended! I don't like the AutoIt-scripts where you can see all the windows appearing and disappearing again (BTW, is it possible to hide these installation-windows with AutoIt, maybe with moving it out of the screen?)

I ask myself if this also works for the new version 8 of AntiVir? Are there any new parameters in the INF-file that should also be considered? Does the INF-file work further?

I will test this later today and will report my experiences here!

EDIT: works like a charm :thumbup

I also found a way to avoid any kind of window appearing while the installation, so that it's now completely silent and unattended! If you're familiar with German, you can read my posting here: http://www.german-nl...m...st&p=119050

Best regards

cool400 :ph34r:

Edited by cool400, 16 April 2008 - 03:29 PM.


#13
krose

krose

    Junior

  • Member
  • Pip
  • 78 posts
  • OS:Windows 7 x64
  • Country: Country Flag
cool400,

Thanks for the information. I didn't realize that version 8 was out. Looking at the documentation I have discovered that there is a new setup.inf entry. Add the line
ScanMode=0
to setup.inf and you can eliminate the use of the cmd file to kill the post-install scan. The setup command will now run from the advanced SFX options setup program run after extraction window:
%windir%\Temp\Avira\basic\setup.exe /inf="%windir%\Temp\Avira\setup.inf"
Tested and totally silent for me.

#14
cool400

cool400

    Junior

  • Member
  • Pip
  • 72 posts
@krose

Thanks a lot - I will modify my files ASAP!

I already figured some more possible parameters out :yes: But I don't know if all of them are possible for the Free-version :blink:

This is what I found:

DestinationPath
ProgramGroup
DesktopIcon
FireWall
WindowsFireWall
ScanMode
KeyFile
AVWinIni
RestartWindows
ShowRestartMessage
Password
MailScanner
Rootkit
WebGuard
Guard
ShowReadMe
ShellExtension
Do you know what we can use in our setup.inf?

BTW, in the next hours/days I will upload a complete automated Antivir 8-batch which updates automatically before bulding the SFX and - if you wish - build an nLite-Addon :thumbup

Best regards

cool400 :ph34r:

#15
krose

krose

    Junior

  • Member
  • Pip
  • 78 posts
  • OS:Windows 7 x64
  • Country: Country Flag
@cool400

I found the setup.inf parameters in the Avira Antivir Professional manual. They are covered in section 4.5.4. All versions must use the same installer so I would think any of the setup parameters except for the mail scanner would work in the free version. The only way to find out is to test them. Thanks for your help.

#16
cool400

cool400

    Junior

  • Member
  • Pip
  • 72 posts
Hi krose, thanks for this information, I will figure out if I can use some of the parameters!

If you are interested, I've made a script to install Antivir 8 fully silent and unattended, fully customizable and always up-to-date virus-definitions: Avira Antivir 8 Free - complete silent and unattended

Best regards

cool400 :ph34r:

#17
masterj

masterj

    Newbie

  • Member
  • 26 posts
anyone knows how to install premium security suite with setup.inf? what are options for gamemode and such?

at the moment my setup.inf is:
[DATA]
DestinationPath=C:\Software\AntiVir Workstation
ProgramGroup=0
DesktopIcon=1
ShellExtension=1
Guard=1
MailScanner=1
KeyFile=key\HBEDV_2008-07-15.KEY
ShowReadMe=0
RestartWindows=0
ShowRestartMessage=0
ScanMode=0

mjguscius@yahoo.com <-- MY "Home"

#18
Sammy20

Sammy20

    Newbie

  • Member
  • 38 posts
Hey, great guide! Your instructions worked really well for me.

Is it possible to integrate the latest virus database into the extracted install folder?

#19
Dynaletik

Dynaletik

    Senior Member

  • Member
  • PipPipPipPip
  • 652 posts
  • OS:none specified
  • Country: Country Flag
@ Sammy20: I always copy the updated files from the running AntiVir into the folder where my AntiVir install for the Windows-DVD is. So just look which files get updated (e.g. antivir3.vdf) in the report and then copy and replace them in your install source. Works fine for me. :)

#20
cool400

cool400

    Junior

  • Member
  • Pip
  • 72 posts

Hey, great guide! Your instructions worked really well for me.

Is it possible to integrate the latest virus database into the extracted install folder?


Go here, grab my Antivir8_AOM - and enjoy an always up-to-date Antivir 8 :thumbup

Best regards

cool400 :ph34r:

#21
ZileXa

ZileXa

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 767 posts

@cool400

I found the setup.inf parameters in the Avira Antivir Professional manual. They are covered in section 4.5.4. All versions must use the same installer so I would think any of the setup parameters except for the mail scanner would work in the free version. The only way to find out is to test them. Thanks for your help.


Krose, after Avira is installed, it is automatically started (I dont mean a full test because I use the scanmode=0 switch). This means AV is running in background while windows setup hasn't finished and other programs are being installed. I am trying to seek a method to kill avira processes, but taskkill doesn't work. Do you have any ideas? The documentation doesn't say anything about this.
I install all my apps using RunOnceEx and my RunOnceEx is started at T13 of the Windows stage. This is why I don't want the av to be running.

edit: nevermind, somehow if you install at T13 the installation seems succesfull. But after guiboot it's like Avira has never been installed, there isn't even an Avira folder in Program Files. I manually installed it at T13 to see if there are any errors, no errors! very strange but it seems this AV cannot be installed at T13 :(


Again an edit: nevermind my previous edit. Avira didn't get installed because the key file could not be located.

I know do the following:
after extracting the original Avira setup file, I copy the key file from the root to the basic folder.
In the INF file, I don't give a location to the key file, just the filename. This way the installer is not bound to static locations of the temp file. Besides, using 7zsfx you cannot predict the temporary extracted folder.
This way Avira will always get installed. But it does produce blue error screen at T13. So I also install at first guiboot.

Edited by ZileXa, 02 December 2008 - 05:49 PM.


#22
Pelekan

Pelekan

    Newbie

  • Member
  • 22 posts
http://www.itstuff.c...-antivirus.html
ITstuff.ca - An invaluable source of News, Tools, Scripts and Knowledge Base for Network Administrators Worldwide. Free Tips and Tricks for IT System and Network Administrators

#23
gogi100

gogi100
  • Member
  • 2 posts
  • OS:XP Pro x86
  • Country: Country Flag
I used your guide for silent installation for avira 10, but installation doesn't work. I use your setup.inf and i added one line
[DATA]
DestinationPath=C:\Program files\AntiVir
ProgramGroup=0
DesktopIcon=1
ShellExtension=1
Guard=1
MailScanner=1
KeyFile=key\HBEDV_2008-07-15.KEY
ShowReadMe=0
RestartWindows=0
ShowRestartMessage=0
RootKit = 1
ScanMode=0

for the cwnd.exe i use
cwnd.exe / hide @
    @ ECHO OFF
    start / wait% windir% \ Temp \ Avira \ basic\setup.exe / inf = "% windir% \ Temp \ Avira \ setup.inf"
    taskkill / IM avscan.exe / F / T 
i maked.exe file with your guide but when i start antivirprec.exe i receive error

C:\Windows\Temp\Avira\cwnd.exe
the NTVDM CPU has encounterd an illegal instruction.
CS:054b IP:0100 OP:063 77 6e 64 2e Choose 'Close' to terminate the application

I changed extension of cwnd.exe to cwnd.cmd and i don't receive error but nothing happens. the commands in script is listing but nothing.
What i do?
What I do?
thank's

Edited by gogi100, 26 March 2010 - 07:52 AM.


#24
bronz001

bronz001

    Newbie

  • Member
  • 28 posts

I figured out a way to do a totally silent switchless installer for Avira Antivir Personal Edition Classic. It involves a little work but in the end works nicely. You will need the following:

Antivir_workstation_win7u_en_h.exe http://www.free-av.com/
WinRAR http://www.rarlab.com
Cwnd.exe http://www.ryanvm.ne...opic.php?t=5017 , executable is in the “release” folder
Process.exe http://www.beyondlog...processutil.htm

Download Antivir and extract it with 7-zip or WinRAR to a folder, I called it antivirpec. We are going to create two files and add them to the folder. Open a text editor such as notepad and copy the following text.

[DATA]DestinationPath="C:\Program Files\Avira\AntiVir Workstation"ProgramGroup=1DesktopIcon=0ShellExtension=1Guard=1MailScanner=0KeyFile=C:\Windows\Temp\Avira\hbedv.keyShowReadMe=0RestartWindows=0ShowRestartMessage=0
If you want a desktop icon change the 0 (no) to 1 (yes). MailScanner must be 0 because it is not included in the free edition. If you want to change the path of the install or the path to the registration key just make sure it is an absolute path, variables such as %windir% will not work. Save the file as setup.inf and place it in the antivirpec folder.

Open notepad again and copy the following text.
cwnd /hide @@echo offstart /wait %windir%\Temp\Avira\basic\setup.exe /inf="%windir%\Temp\Avira\setup.inf"process -k avscan.exeexit
cwnd.exe is a utility to hide the DOS box when the command runs. You could also use cmdow.exe. Just be sure that whichever you use is in your system32 folder.

The setup command uses the switch /inf which uses the parameters in the setup.inf file we created and causes the setup to be run silently.

Process.exe is a utility to kill processes in Windows 2000 and Windows XP Home. If you are using XP Pro you can use the taskkill command instead. This command kills the automatic scan that starts after install. If you use process.exe be sure it is in your system32 folder. Save the file as antivir.cmd and place it in the antivirpec folder.

Now make the installer with WinRAR. Open WinRAR and browse to the antivirpec folder. Right click on a file and choose “select all”, making sure all the files and folders are highlighted, then click “Add” on the Toolbar. You’ll get the “Archive name and parameters” window. On the General tab Select “best” as compression method, and check “create solid archive” and “create SFX archive”. Change the archive name if you like but it must have the .exe extension.
Posted Image

Switch to the Advanced tab and select “SFX options” to open Advanced SFX options window.
Posted Image

On the General tab in the “Path to extract” box type the path you want to extract the installer to. Make sure it is the same path you have in the antivir.cmd file. Then in the “Run after extraction” box type in the path to the antivir.cmd file.
Posted Image

Change to the Modes tab and select the “hide all” and “overwrite existing files” radio buttons.
Posted Image

Close the “Advanced SFX Options” window by clicking OK, then click OK on the “Archive name and parameters” window to start creating the installer. The finished installer is created in the antivirpec folder.




I have applied this method and worked on Windows XP

But did not work with Windows 7





3 user(s) are reading this topic

0 members, 3 guests, 0 anonymous users



How to remove advertisement from MSFN