IPB

Google Frontpage Forums Unattended CD/DVD Guide

> Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules

2 Pages V   1 2 >  
Reply to this topicStart new topic
> How Can I Make Avira AntiVir Silent Install ? What is switch ?
ahmedah
post Feb 1 2008, 11:03 AM
Post #1


Newbie


Group: Members
Posts: 18
Joined: 29-January 08
Member No.: 174059
OS: none
Country Flag


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 ??
Go to the top of the page
 
+Quote Post
Yzöwl
post Feb 1 2008, 11:18 AM
Post #2


MSFN Master
Group Icon

Group: Super Moderator
Posts: 2751
Joined: 13-October 04
Member No.: 33618
OS: none
Country Flag


Moved to appropriate Forum


Will this help?
Go to the top of the page
 
+Quote Post
ahmedah
post Feb 2 2008, 05:42 AM
Post #3


Newbie


Group: Members
Posts: 18
Joined: 29-January 08
Member No.: 174059
OS: none
Country Flag


Sorry .. I did not found what I want

Please All Help me
Go to the top of the page
 
+Quote Post
radix
post Feb 2 2008, 03:40 PM
Post #4


Senior Member
****

Group: Members
Posts: 527
Joined: 8-February 07
Member No.: 125681
OS: XP Pro x86
Country Flag


QUOTE (ahmedah @ Feb 2 2008, 01:42 PM) *
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 :
CODE
#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 here

Opt("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)
Exit
EndIf

; Run the installer
Run($EXECUTABLE)

; Accept
WinWait("Avira AntiVir PersonalEdition Classic", "Accept")
WinActivate("Avira AntiVir PersonalEdition Classic", "Accept")
ControlClick("Avira AntiVir PersonalEdition Classic", "", "Button1")

; Welcome to the setup for
WinWaitActive("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 agreement
WinWaitActive("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 use
WinWaitActive("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 update
WinWaitActive("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 complete
WinWaitActive("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 process
ProcessWait("avscan.exe")
$PID = ProcessExists("avscan.exe")
If $PID Then
ProcessClose($PID)
EndIf

Go to the top of the page
 
+Quote Post
krose
post Feb 4 2008, 02:31 PM
Post #5


Newbie


Group: Members
Posts: 30
Joined: 5-September 05
From: Pennsylvania
Member No.: 71753
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.net/forum/viewtopic.php?t=5017 , executable is in the “release” folder
Process.exe http://www.beyondlogic.org/consulting/proc...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.
CODE
[DATA]
DestinationPath="C:\Program Files\Avira\AntiVir Workstation"
ProgramGroup=1
DesktopIcon=0
ShellExtension=1
Guard=1
MailScanner=0
KeyFile=C:\Windows\Temp\Avira\hbedv.key
ShowReadMe=0
RestartWindows=0
ShowRestartMessage=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.
CODE
cwnd /hide @
@echo off
start /wait %windir%\Temp\Avira\basic\setup.exe /inf="%windir%\Temp\Avira\setup.inf"
process -k avscan.exe
exit

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.


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


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.


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


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.
Go to the top of the page
 
+Quote Post
ahmedah
post Feb 5 2008, 12:33 PM
Post #6


Newbie


Group: Members
Posts: 18
Joined: 29-January 08
Member No.: 174059
OS: none
Country Flag


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

QUOTE (radix @ Feb 2 2008, 04:40 PM) *
<snip>
Try the next script for Avira AntiVir PersonalEdition Classic 7.06.00.270 :<snip>



Thank You .. It wprked thumbup.gif

But I want It Hidden .. blushing.gif

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


QUOTE (krose @ Feb 4 2008, 03:31 PM) *
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 ..

This post has been edited by Yzöwl: Feb 5 2008, 01:55 PM
Reason for edit: excessive unrequired quoted messages snipped and posts merged
Go to the top of the page
 
+Quote Post
biatche
post Feb 5 2008, 02:23 PM
Post #7


Junior
*

Group: Members
Posts: 92
Joined: 23-November 05
Member No.: 80546
Country Flag


why use process.exe and not just taskkill?
Go to the top of the page
 
+Quote Post
krose
post Feb 5 2008, 05:58 PM
Post #8


Newbie


Group: Members
Posts: 30
Joined: 5-September 05
From: Pennsylvania
Member No.: 71753
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?

This post has been edited by krose: Feb 5 2008, 08:33 PM
Go to the top of the page
 
+Quote Post
radix
post Feb 6 2008, 03:22 AM
Post #9


Senior Member
****

Group: Members
Posts: 527
Joined: 8-February 07
Member No.: 125681
OS: XP Pro x86
Country Flag


QUOTE (ahmedah @ Feb 5 2008, 08:33 PM) *
But Sorry It does not work .. Why ??
I do what you said exactly ..

krose's method works.
Go to the top of the page
 
+Quote Post
ahmedah
post Feb 6 2008, 08:46 AM
Post #10


Newbie


Group: Members
Posts: 18
Joined: 29-January 08
Member No.: 174059
OS: none
Country Flag


QUOTE (krose @ Feb 5 2008, 06:58 PM) *
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

Go to the top of the page
 
+Quote Post
krose
post Feb 7 2008, 12:32 PM
Post #11


Newbie


Group: Members
Posts: 30
Joined: 5-September 05
From: Pennsylvania
Member No.: 71753
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.
Go to the top of the page
 
+Quote Post
cool400
post Apr 16 2008, 12:53 AM
Post #12


Junior
*

Group: Members
Posts: 72
Joined: 8-November 05
From: Luebeck, Germany
Member No.: 79081
Country Flag


@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.gif

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-nlite.de/index.php?s=&am...st&p=119050

Best regards

cool400 ph34r.gif

This post has been edited by cool400: Apr 16 2008, 03:29 PM
Go to the top of the page
 
+Quote Post
krose
post Apr 21 2008, 06:46 AM
Post #13


Newbie


Group: Members
Posts: 30
Joined: 5-September 05
From: Pennsylvania
Member No.: 71753
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
CODE
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:
CODE
%windir%\Temp\Avira\basic\setup.exe /inf="%windir%\Temp\Avira\setup.inf"

Tested and totally silent for me.
Go to the top of the page
 
+Quote Post
cool400
post Apr 21 2008, 01:30 PM
Post #14


Junior
*

Group: Members
Posts: 72
Joined: 8-November 05
From: Luebeck, Germany
Member No.: 79081
Country Flag


@krose

Thanks a lot - I will modify my files ASAP!

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

This is what I found:

CODE
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.gif

Best regards

cool400 ph34r.gif
Go to the top of the page
 
+Quote Post
krose
post Apr 21 2008, 04:47 PM
Post #15


Newbie


Group: Members
Posts: 30
Joined: 5-September 05
From: Pennsylvania
Member No.: 71753
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.
Go to the top of the page
 
+Quote Post
cool400
post Apr 23 2008, 02:59 PM
Post #16


Junior
*

Group: Members
Posts: 72
Joined: 8-November 05
From: Luebeck, Germany
Member No.: 79081
Country Flag


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.gif
Go to the top of the page
 
+Quote Post
masterj