Help - Search - Members - Calendar
Full Version: Avira Antivir 8 Free - complete silent and unattended!
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
cool400
I have made a script that downloads the newest Antivir 8-programfiles and definitions and creates an always up-to-date, complete silent, self-installing 7Zip-SFX-archive for the use with WPI, ComfortInstaller or simply manual installation.

Additionally you can choose to create an nLite-Addon - I think it will also work with RyanVM-Integrator (but I don't use it, so test it out yourself newwink.gif)

You can choose where Antivir should be installed and where your Windows is installed (needed for the TEMP-files)!

Simply download the script here and start it anywhere. After the script has finished you will find your SFX/Addon in the folder where you started if from!

I would be glad about your feedback smile.gif

Best regards

cool400 ph34r.gif

EDIT: script-date 24/04/2008, MD5-checksum: BE840FC262B1264EE35F4F6077DEBF70
cool400
Please re-download the script - there was an error if you don't had 7-Zip installed!

Best regards

cool400 ph34r.gif
krwilson
Had downloading issues, but it just downloaded finally, thanks and I look forward to testing it
moongoon
Worked on a basic XP Pro system for me. I'm baffled at how cool this little utility is. One could distribute the means for making a silent isntaller without actually "distributing" the software product - so you don't mess with anyone's licensing terms. Awesome and works. Thanks!
cool400
@moongoon

Thanks for the flowers smile.gif

Right now I'm looking for a way to build an Addon-Maker for AVG 8 Free Edition with up-to-date virus-definitions - maybe I've got some results in the nearest future!

Best regards

cool400 cool.gif
krwilson
Your work is great, setup and tested it.............works flawlessly. Had wanted to try AVIRA and using your great program made it very good, thanks!!!!
r0sWell
the only word 'WOW' can resume this tool :-)

it's simply really cool to automate the Silent Installator that way, plus up-to-date !

thx a lot
cool400
Thanks a lot, r0sWell, for your compliments smile.gif

I'm not a coder-guy, I simply grabbed all the stuff I've seen a while ago - e.g. ricktendo64's WinRAR-Addon-Maker - and some basic-knowledge from my BartPE-experience (I developed some plugins for this great project in the past) and hoped, you may like this tool!

Best regards and happy weekend

cool400 cool.gif
cyberyeye
Indeed ! Very good script :-)

But.... (Yes there's a little but)

Executable don't works at all.... with an unattended xp installation during runonceex nothing is installed blink.gif (runonceex = first gui logon after OOBE). This is really strange ! Maybe this is due to Temp directory or something like this (i said this but i've not verified only pure suggestion not verified lol)

The same executable works fine in xp for "usual" installation by doing a double click (that's why i think after OOBE / Runonceex.cmd: Temp dir or something like this screw the installation)

Any idea ?

ps: sorry for my bad english whistling.gif
cool400
Could you please tell me what you're doing to include Antivir 8 in your setup-process?

I would be glad if someone can cofirm if the Antivir-addon works for her/him while the Windows XP-setup!

Best regards

cool400 ph34r.gif
gkar
QUOTE (cool400 @ May 12 2008, 11:52 AM) *
Could you please tell me what you're doing to include Antivir 8 in your setup-process?

I would be glad if someone can cofirm if the Antivir-addon works for her/him while the Windows XP-setup!

Best regards

cool400 ph34r.gif


I tried it with nLite and it crashed with a blue screen at T-13, WinXP SP2. Tried the silent installer repacked with a different .cab maker, same thing, blue screen crash at T-13 . Installs fine from windows desktop. Will try again with WinXP SP3.

Nice program though.



amadeus1982
QUOTE (gkar @ May 15 2008, 11:45 AM) *
I tried it with nLite and it crashed with a blue screen at T-13, WinXP SP2. Tried the silent installer repacked with a different .cab maker, same thing, blue screen crash at T-13 . Installs fine from windows desktop. Will try again with WinXP SP3.


the same for me.
packed a .7z addon for nlite
integrated into a XP SP3 iso

BSOD at T-13 :-(

i had the same error with the addon from rado345 here

http://www.msfn.org/board/Index-of-ALL-my-...008-t85566.html
cyberyeye
Hello cool400 !

I've reused your script for building a new exe without changing anything of course using "C drive and C:\Program files")
then tested an installation into Vbox (virtualbox) with the usual stuff (roe.cmd...)
(all others elements of roe is installed perfectly! this is not a problem with my roe script)

It still don't works erf ! Avira is not installed at all, and installer lauch/shutdown immediatly !

Of course after ROE logon, in explorer I've installed it successfully by double clicking on the file lol

QUOTE
cmdow @ /HID
@echo off

FOR %%i IN (D E F G H I J K L M N O P Q R S T) DO IF EXIST %%i:\WIN51IP.SP3 SET CDROM=%%i:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Software Installation" /f

REG ADD %KEY%\010 /VE /D "Avira 8 PE" /f
REG ADD %KEY%\010 /V 1 /D "%cdrom%\Soft\Avira\AV8_Silent.exe" /f

blabla...


Very strange ! Maybe something with Temp destination... is not working ?

Anyway great script but sadly unusefull in a xp unattend install using ROE...
I hope you'll find a solution to this thumbup.gif
cyberyeye
Up ^^

In my previous test I create the installer package (using your script) with XPSP3 installed on D: drive (using D:\Temp\Antivir8_AOM.exe for creating the installer) and using options:

C:\Program files
C:\Windows

This don't work, I don't know why... Maybe installer creating on "D drive"... become broken if preconfigured with C Drive and build with D partition ?

So I used the script in C:\Temp INTO a virtual machine (xpsp3) with Virtualbox.

C:\Temp\Antivir8_AOM.exe
and choosing "C:\Program files & C:\Windows", as usual... then I've test ROE installation by putting this into registry:
(after this close and relaod your session or reboot for testing the ROE installation)
QUOTE
Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx\01]
"01"="C:\\\\Temp\\\\AV8_Silent.exe"


And... its working ^^

So I mean if using your script to install Avira PE on "C Drive", installer should be create on "C Drive" too, don't ask me why, I don't know, but it works lol

Hope this help ^^

PS: I've not tested any addon installer... I'm not using it.
Xaneth
This rules on high above all that which does not suck! Only thing I had trouble with was my AVG resident shield blocked AVGSilent.exe at the end!

Edit: I too am getting the BSOD.

Edit: OK, I got it to work by using runonce. Good grief, I didn't even read the post that close, for some reason I thought it was AVG 8! Google search. Well, this AV looks decent...
skavenger
He he,

looks very nice.

But....

is it possible to use systemvariables for paths like %programfiles% and %windir% instead of full paths?

Because. I've made a silent installer with your tool and stored it on my DVD. Sometimes the paths on the system where i want to install it differ to the paths i uses while creating silent installer.

TIA
SkAvEnGeR

Killgore
QUOTE (skavenger @ Jun 27 2008, 01:44 PM) *
is it possible to use systemvariables for paths like %programfiles% and %windir% instead of full paths?


Hi!

Yes, it's possible ;). I've made some changes to the script, because I've had the same problems. To use modified version you have to extract original package (Antivir8_AOM.exe) with 7zip or winrar and replace runonce.bat and config.txt with files from attached zip archive.

Changes:

- script is completely unattended. I like it better this way – it's easier to use for me. If you want German version you have to change avfile variable to antivir_workstation_winu_de_h.exe in runonce.bat (or you can parametrize it). As a consequence nlite addon support is removed.

- Avira files (antivir_workstation_winu_en_h.exe and ivdf_fusebundle_nt_en.zip) are kept in script directory – it feels "cleaner" for me ;)

- during installation installer is temporarily unpacked to %SystemRoot%\Temp\Avira and Avira is installed to %programfiles%\avira

- temporary folder is deleted after installation

Kudos to cool400 for original work.

Regards,
Chris
skavenger
Hi Killgore,

thanks for this easy and quick solution.

I can't test it a.t.m., because i'm in vacancies.... smile.gif

After final testing i will give you a feedback.


Greetz
skavenger
Hi Killgore,

Thank you for this one.

I have test it now.

I have updated these two files -but now it works different.

After running "Antivir8_AOM.exe" it unpacks itself an thats is. The script-window appears for 2 seconds. I must start the script "runonce.bat" manually. Then it works.

No idea why. Trying to add the "tempmode"-Parameter in WinRAR was not working.
After creating silent package the script ends and leave all files.
What is the best way to fix this?

Thanks in advance
SkAvEnGeR
Killgore
Hi Skavenger!

QUOTE (skavenger @ Jul 22 2008, 12:29 AM) *
I have updated these two files -but now it works different.

After running "Antivir8_AOM.exe" it unpacks itself an thats is. The script-window appears for 2 seconds. I must start the script "runonce.bat" manually. Then it works.

I think we have a little misunderstanding here. If you have extracted Antivir8_AOM.exe with 7zip or winrar, and replaced these two files from my zip archive you don’t use Antivir8_AOM.exe again because it will overwrite files you have just replaced (with original versions).
Yes, you have to run runonce.bat manually because that’s what Antivir8_AOM.exe normally does – it extracts itself to temporary directory and runs runonce.bat.

QUOTE
After creating silent package the script ends and leave all files.
What is the best way to fix this?

It doesn’t leave all the files – it keeps only files it will reuse during next run.

So, there is nothing to fix – you only have to run runonce.bat I’ve provided and use AV8_Silent.exe to install Avira.

If you want it as one exe file you will have to add some cleaning stuff to runonce.bat and repack Antivir8_AOM.exe with new files. I haven’t done this because I can’t attach file this big to the post. Besides, I like it better with all used files already extracted in one directory smile.gif .

Regards,
Chris
biatche
does anyone know if antivir free / personal edition has automatic updates?
Sammy20
This batch script is awesome, been using it for a while.

Just recently it stopped working. Keeps saying connection timed out. Anyone know of a updated server?

EDIT: note that I've been using the updated script in post #17 by Killgore.
ZileXa
Can anyone confirm the created installer will install correctly at T13 (using RunOnceEx, so not at first GUI login but before)?
maam2
QUOTE (cool400 @ Apr 24 2008, 12:42 AM) *
I have made a script that downloads the newest Antivir 8-programfiles and definitions and creates an always up-to-date, complete silent, self-installing 7Zip-SFX-archive for the use with WPI, ComfortInstaller or simply manual installation.

Additionally you can choose to create an nLite-Addon - I think it will also work with RyanVM-Integrator (but I don't use it, so test it out yourself newwink.gif)

You can choose where Antivir should be installed and where your Windows is installed (needed for the TEMP-files)!

Simply download the script here and start it anywhere. After the script has finished you will find your SFX/Addon in the folder where you started if from!

I would be glad about your feedback smile.gif

Best regards

cool400 ph34r.gif

EDIT: script-date 24/04/2008, MD5-checksum: BE840FC262B1264EE35F4F6077DEBF70




Please cool400 I can't download from the link provided wacko.gif I tried several times but no luck
I even used an other computer but no help , any one can mirror this file cause without it the script is of no use.
Anyway very thanks for your efforts
cyberyeye
QUOTE
Please cool400 I can't download from the link provided wacko.gif I tried several times but no luck

Links still works fine !

Anyway, i've upload it here (same file no mod at all)
http://rapidshare.com/files/162226895/Antivir8_AOM.exe.html

Take a look at updated script in post #17 by Killgore
ZileXa
Will the installer created by this script also disable the extremely annoying popup? I'm looking for an unattended silent way to disable the popup for all users (XP). The normal method is described here:
http://www.tipsfor.us/2007/08/15/make-avir...on-more-usable/
cool400
Hi you all,

sorry for y my late reply!

I've implemented the blocking for the annoying popup thumbup.gif Maybe I will find a better way by replacing the avnotify.exe automatically with with a dummy, but by now it works with a registry-hack.

Best regards

cool400 ph34r.gif
rainforest
Hi!

This works fine but only for a manual installation! confused.gif
If I use it in RunOnceEx.cmd along with IE7-WindowsXP-x86-ita.exe, it "breaks" IE as it don't start.
Antivir instead works.

RunOnceEx.cmd
QUOTE
@Echo Off

for %%i in (D E F G H I J K L M N O P Q R S T U V W X Y Z) do if exist %%i:\i386\winnt.exe set CDROM=%%i:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installazione Applicazioni" /f

REG ADD %KEY%\000 /VE /D "Internet_Explorer_7" /f
REG ADD %KEY%\000 /V 1 /D "%CDROM%\APPS\IE7-WindowsXP-x86-ita.exe /quiet /update-no /norestart" /f

REG ADD %KEY%\005 /VE /D "DirectX_9.0c" /f
.....
.....
REG ADD %KEY%\040 /VE /D "Avira_Antivir_8" /f
REG ADD %KEY%\040 /V 1 /D "%CDROM%\APPS\AV8_Silent.exe" /f

REG ADD %KEY%\050 /VE /D "Pulizia" /f
REG ADD %KEY%\050 /V 1 /D "%systemroot%\cleanup.cmd" /f

EXIT

Any idea?
Best regards. welcome.gif
rainforest
Hi!
Resolved with:

CODE
REG ADD %KEY% /V TITLE /D "Installazione Applicazioni 1" /f
  
   REG ADD %KEY%\000 /VE /D "Internet_Explorer_7" /f
   REG ADD %KEY%\000 /V 1 /D "%CDROM%\APPS\IE7-WindowsXP-x86-ita.exe /quiet /update-no /norestart" /f
  
   REG ADD %KEY%\005 /VE /D ".Net_Framework_1.1" /f
   . . .
   . . .
  
   start /wait rundll32.exe iernonce.dll,RunOnceExProcess
  
   REG ADD %KEY% /V TITLE /D "Installazione Applicazioni 2" /f
  
   . . .
  
   REG ADD %KEY%\040 /VE /D "Office_2003_SP3" /f
   REG ADD %KEY%\040 /V 1 /D "%CDROM%\APPS\Office2003SP3.exe" /f
  
   REG ADD %KEY%\050 /VE /D "Avira Antivir 8" /f
   REG ADD %KEY%\050 /V 1 /D "%CDROM%\APPS\AV8_Silent.exe /f
  
   . . .
  
   EXIT

Installed IE7 at T-12 (all items before start /wait rundll32.exe iernonce.dll,RunOnceExProcess are installed at T-12) and Antivir after first reboot.
Bye.
cyberyeye
QUOTE
start /wait rundll32.exe iernonce.dll,RunOnceExProcess

Same here except i'm using iernonce.dll from SP2 thus build had no problem at all for ROE batch smile.gif

I put iernonce.dll into:
$OEM$\$1\Install\iernonce.dll (sp2 build 2180)

Install dir is copying in %systemdrive%

my batch is in:
$OEM$\$1\Install\Runonceex.cmd

QUOTE
cmdow @ /HID
@echo off

FOR %%i IN (D E F G H I J K L) DO IF EXIST %%i:\WIN51IP.SP3 SET CDROM=%%i:

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Mise … jour Windows" /f

REG ADD %KEY%\010 /VE /D "Configuration des Composants Windows" /f
REG ADD %KEY%\010 /V 1 /D "%systemdrive%\install\Composant.cmd" /f

blabla

rundll32.exe %systemdrive%\install\iernonce.dll,RunOnceExProcess

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Installation des Programmes" /f

REG ADD %KEY%\012 /VE /D "Avira 8 PE" /f
REG ADD %KEY%\012 /V 1 /D "%cdrom%\Soft\Avira\AV8_Silent.exe" /f
REG ADD %KEY%\012 /V 2 /D "%cdrom%\Soft\Avira\settings.cmd" /f


blabla

rundll32.exe %systemdrive%\install\iernonce.dll,RunOnceExProcess

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Configuration de Windows" /f

REG ADD %KEY%\010 /VE /D "Configuration de Windows XP" /f
REG ADD %KEY%\010 /V 1 /D "regedit /s %systemdrive%\install\optireg.reg" /f

blabla

rundll32.exe %systemdrive%\install\iernonce.dll,RunOnceExProcess

SET KEY=HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx

REG ADD %KEY% /V TITLE /D "Fin de l'installation" /f

REG ADD %KEY%\010 /VE /D "Console de Recuperation" /f
REG ADD %KEY%\010 /V 1 /D "%cdrom%\i386\winnt32 /cmdcons /unattend" /f

blabla

rundll32.exe %systemdrive%\install\iernonce.dll,RunOnceExProcess

EXIT


IE7 is slipstream with HfSlip (inlcluding hotfix, and so on (dotnet with snm...))

I never had problem using old iernonce.dll thumbup.gif
ZileXa
Hey, why do we have to select the program files path and the windows path? You can simpy use the default Windows variables:
%programfiles% = the program files folder path, no matter what language you have
%systemroot% = the windows folder path, no matter what language you have

Btw I see you use the amazing 7z SFX module from Oleg, very good choice. It would be nice if there is still a switch necessary to install. I just accidentally installed Antivir by double clicking... with a switch the installer could be used both silent, unattended and normal.
Ofcourse with your AOM you could give the user the option to have a switchless or non-switchless installer.
ZileXa
I've taken a closer look at your config.txt file, you are missing 2 "" at the end of the 3rd RunProgram variable. This way your installer has a corrupt config.txt and it won't work.

I have created a gui with Oleg's 7z SFX, with silent switch. I've also used Reshacker to update the version info. If you are interested I can post screenshots and the config.txt file here, you may use it if you want, I am not planning to maintain it or have an active role in this.
rainforest
QUOTE (ZileXa @ Nov 16 2008, 05:30 AM) *
I've taken a closer look at your config.txt file, you are missing 2 "" at the end of the 3rd RunProgram variable. This way your installer has a corrupt config.txt and it won't work.

I have created a gui with Oleg's 7z SFX, with silent switch. I've also used Reshacker to update the version info. If you are interested I can post screenshots and the config.txt file here, you may use it if you want, I am not planning to maintain it or have an active role in this.


Hi ZileXa, I am interested, if you want post your work I will be grateful to you. smile.gif

Best regards.
ZileXa
sorry for late response, been busy. Will post them tonight smile.gif
ZileXa
Hi here are the files.

Use the 7zsd.sfx file from Oleg, the Antivir.7z file you can create using Cool400 script, and the config.txt file below.
Start > Run.. type CMD press ENTER. In the command line window, enter this command:
CODE
COPY /B 7zSD.sfx + config.txt + Antivir.7z Antivir.exe

The result is:







if you DON'T use silent switch, you wil get a notification window after Avira Antiv setup has finished (have to click OK) so you will know when installation is done. Don't have a screenshot of this window.)

If you use the -? switch you get this:




Actually the info above is incorrect! the -y is indeed the silent switch, but if you also want to hide extraction progressbar use -y -gm2. I fixed this in my installer, just to lazy to update the screenshot.
And ofcourse you need ResHacker to modify the icon and version info. I also use UPX.exe to make the installer a little bit smaller.

You can download my installer here:
http://ifile.it/9q81nb7/avira_antivir.exe

Here's the config.txt so you can create your own:


CODE
;!@Install@!UTF-8!
Title="Avira AntiVir Personal - FREE Antivirus"
ExtractTitle="Avira AntiVir Personal"
BeginPrompt="This One-Click Easy Installer contains Avira anti-virus Personal including the latest updates.\n\t\tPlease click  Y e s  to start installing Avira Antivir Personal!\n\n\t\t\t(use the -? switch for silent options)"
ExtractDialogText="Extracting files for installation, please wait..."
ExtractCancelText="Cancel extraction"
RunProgram="\"%%T\\basic\\setup.exe\" /inf=\"%%T\\setup.inf\""
OverwriteMode="0"
GUIFlags="6176"
FinishMessage="Antivir Antivirus installation finished successfully!"
HelpText="Antivir Antivirus One-Click Installer will install an up-to-date version of Antivir • No pop-ups! • \n\n_______________________________________\n\nSwitches for silent install: -y\nAnd to supress extraction progressbar also use -gm2\n\n_______________________________________\n\nEasy Installer created by ZileXa.\n(c) 2008-2009 ZileXa[at]myrealbox[dot]com\n\nThanks to Cool400 for his Avira antivir script & installer creator.\nThanks to Oleg_Sch for his incredible 7z SFX module."
;!@InstallEnd@!


The regtweaks to prevent popup after updates didn't work for me so I removed them from the config file above.

BTW I recommend you do the following because Avira wil not always install since it cannot find the .key file. This is caused by the fact that in the .INF file you have to give the full static path to the key. But you cannot predict the name of the temporary folder created by the 7z extractor:
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.
You can use the INF file that I attached, just don't forget to move the key file to the 'basic' folder.

Download my Easy Installer here:
http://ifile.it/9q81nb7/avira_antivir.exe
rainforest
Hi ZileXa, thanks for your response.

Bye.
jonath_jo
Hello, i am a newbie and i speak not good french but y have a question. i will made a silent install of antivir but in french.
Can you help me.
The link for the french version.

zip : http://dlce.antivir.com/down/windows/antiv...n_winu_fr_h.zip

exe : http://dlce.antivir.com/down/windows/antiv...n_winu_fr_h.exe

Thank you very much.
ZileXa
Check my previous post:
I modified my config.txt file because of errors and I also added a tip for the key file to make sure Avira will always get installed (except @T13, gives a blue error screen, I don't know why and I cannot prevent it so don't install at T13).

Jonath you can use the script in the first post. If that doesn't work for you, check this thread.

You can use my installer but it is in English. http://ifile.it/9q81nb7/avira_antivir.exe
ZEUS__
OMG!!I'm looking for silent install of avira and find this..I tested it on virtual machine now..it's not good, but just perfect man!! thumbup.gif really so thanks smile.gif
eatif206
Dear Experts,

I am totally new to this forum & need extreme support from all of u. I don't even know whetere my question is on right or wrong place.

My question is "I've recently downloaded Avira_AntiVir_Professional_2008_-_v8[1].1.0.606 alongwith Key file, It was quoted that Key is valid upto Year 2014. But during installation Avira says Invalid Key".

I've read almost all advices given in this forum, but its out of my limited understanding.

Pls pls pls someone help me to install Avira properly.


Bunch of Thanks In Advance &

Always Keep Smiling
isnetus
QUOTE (eatif206 @ Dec 20 2008, 12:48 PM) *
Dear Experts,

I am totally new to this forum & need extreme support from all of u. I don't even know whetere my question is on right or wrong place.

My question is "I've recently downloaded Avira_AntiVir_Professional_2008_-_v8[1].1.0.606 alongwith Key file, It was quoted that Key is valid upto Year 2014. But during installation Avira says Invalid Key".

I've read almost all advices given in this forum, but its out of my limited understanding.

Pls pls pls someone help me to install Avira properly.


Bunch of Thanks In Advance &

Always Keep Smiling

Your key is a pirated one.Use free version of Antivir.It is good enough....
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.