Jump to content
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble
Strawberry Orange Banana Lime Leaf Slate Sky Blueberry Grape Watermelon Chocolate Marble

MSFN is made available via donations, subscriptions and advertising revenue. The use of ad-blocking software hurts the site. Please disable ad-blocking software or set an exception for MSFN. Alternatively, register and become a site sponsor/subscriber and ads will be disabled automatically. 


cyberyeye

Avira Setup Creator - for Avira Antivir Personal v10

Recommended Posts

Oops, I'm back :)

I'm trying to install the created installer via AutoUnattend.xml. The package is launched and starts to install but at some point it gives an error, saying something about it cannot continue probably because an update or Windows update is running. I will provide a screenshot later, clicked the message away to fast.

Share this post


Link to post
Share on other sites

If you had used "Asc light" with Asc: VC++ 2008 SP1 Runtime is removed from installer.

Microsoft list VC++ 2008 sp1 runtime as available for Seven x64 on this page, Meaning VC++ 2008 sp1 is not installed by default with Seven x64 ?

In this case IF VC++ 2008SP1 is missing from a default Seven installation, a setup create without using "Asc light" in Asc should works.

Share this post


Link to post
Share on other sites

I've wrote a executable (Autoit, src provide) for testing if VC 2008 Runtime is installed. Result is showing in a messagebox.

- If the runtime is already installed a messagebox show a message. Then if Avira.exe is in the same dir a second messagebox ask if you're willing to start Antivir setup (avira.exe -y ; silent install).

- If the runtime is NOT detected a messagebox is shown too, in this case there is not a 2nd msgbox (to install Antivir).

Antivir 10 setup need this runtime: Visual C++ 2008 SP1 ATL Security Update Redistributable Package (x86)

Note: Antivir original setup use only vcredist_x86.exe (if necessary)

(vcredist_x64.exe is not include with Antivir official setup!)

Maybe i'll put this into ASC oneday, i doubt that this is usefull....

Share this post


Link to post
Share on other sites

Well, at what stage do you install Avira on Win7?

I use AutoUnattend.xml settings pass Specialize, your executable tells me VC2008 is not installed (using a x64 Win7 incl SP1 image).

If I would install Visual C++ 2008 SP1 ATL Security Update Redistributable Package x64 (since I have x64 win7) first, it should work?

Or do I have to install both Microsoft Visual C++ 2008 SP1 Redistributable Package (x64) and Visual C++ 2008 SP1 ATL Security Update Redistributable Package x64 ?

Or do I have to install both Microsoft Visual C++ 2008 SP1 Redistributable Package (x64) and Visual C++ 2008 SP1 ATL Security Update Redistributable Package x86?

Edited by ZileXa

Share this post


Link to post
Share on other sites

VC++ 2008 SP1 (english) is v9.0.30729.17

VC++ 2008 ATL (english) is v9.0.30729.4148

ATL contain a security fix. You can consult this MS page to get a list of latest build of VC++ Runtime installer.

Antivir PE 9 use: 9.0.30729.17 (SP1)

Antivir PE 10 use: 9.0.30729.4148 (ATL)

(only Russian setup is still a v9 version; every other langage of antivir setup are a v10)

If you extract original setup from Avira website to see which version they are using you'll see that they are using only x86 runtime with antivir setup. They don't use x64 VC runtime at all.

I admit that this is weird, but this is their choice.

So by deduction you should use/test using x86 build for VC++ 2008 ATL runtime. I haven't time to test it... but it sound pretty logic to me to install the same build as Avira provide with Antivir original setup.

Of course Vc++ 2008 Atl runtime must be installed BEFORE starting Antivir (PE10) setup !

On your Win7 media you can try this: Sources\$OEM$\$1\Install\install.cmd

AutoUnattend.xml

<FirstLogonCommands>

<SynchronousCommand wcm:action="add">

<CommandLine>cmd /C start /wait %systemdrive%\install\install.cmd</CommandLine>

<Description>Starting my apps installation</Description>

<Order>1</Order>

<RequiresUserInput>false</RequiresUserInput>

</SynchronousCommand>

</FirstLogonCommands>

install.cmd

cmdow @ /HID

@echo off

FOR %%i IN (C 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:\AutoUnattend.xml SET USB=%%i:

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

REG ADD %KEY% /V TITLE /D "Installation of all MS hotfix now" /f

REG ADD %KEY% /v Flags /t REG_DWORD /d "20" /f

REG ADD %KEY%\010 /VE /D "VC 2008 ATL Runtime" /f

REG ADD %KEY%\010 /V 1 /D "%usb%\Soft\VC\vcredist_x86.exe /Q" /f

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

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

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

REG ADD %KEY% /v Flags /t REG_DWORD /d "20" /f

REG ADD %KEY%\010 /VE /D "Avira Antivir 10 PE create by ASC" /f

REG ADD %KEY%\010 /V 1 /D "%usb%\Soft\Antivir\Avira.exe -y" /f

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

Edit: Roe with Win7 x64 tips on this topic

(to replace in my example: "rundll32.exe %systemdrive%\install\iernonce.dll,RunOnceExProcess")

Edited by cyberyeye

Share this post


Link to post
Share on other sites

New ASC build: 1.2.2.1

Changelog: 1.2.2.1: Url fix for 'wksstats.dll.gz & build.dat.gz' in /Files/Settings.ini for almost all language.

As usual download link is available on 1st page of this topic.

Share this post


Link to post
Share on other sites

Why do you run RunOnceEx twice?? Why not just once? Everything will be installed in order so your hotfix and ATL will be installed first.

Actually I did a new test with a suprising result:

If I just extract the resulting exe file (avira_auto_setup.exe) and I run presetup.exe via a CMD file that I start using autounattend.xml settings pass Specialize, I get the error message attached.

Using Win7 SP1 image.

Edited by ZileXa

Share this post


Link to post
Share on other sites

I run many Roe different section only for cosmetic purpose, not for a technical reason.

I've made a test in VM using 7 x86: with an existing profil account (not at oobe stage) i don't know if this change something (?).

Roe.reg (Regfile to do an installation test when relogging)

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce]

"1"="C:\\Test\\Install.cmd"

Install.cmd

cmdow @ /HID

@echo off

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

REG ADD %KEY% /V TITLE /D "Avira Test Seven x86" /f

REG ADD %KEY% /v Flags /t REG_DWORD /d "20" /f

REG ADD %KEY%\010 /VE /D "VC 2008 ATL x86 (extract from original antivir 10 setup)" /f

REG ADD %KEY%\010 /V 1 /D "%systemdrive%\Test\vcredist_x86.exe /Q" /f

REG ADD %KEY%\011 /VE /D "Antivir 10 - create with Asc light" /f

REG ADD %KEY%\011 /V 1 /D "%systemdrive%\Test\Avira.exe -y" /f

rundll32.exe iernonce.dll,RunOnceExProcess

EXIT

- vcredist_x86.exe (VC 2008 ATL x86 / v9.0.30729.4148)

- Avira.exe; create with Asc "light options"

Everything went fine: no errros or whatsoever. Unfortunatly I don't have a Win7 64 to do a test :/

Edited by cyberyeye

Share this post


Link to post
Share on other sites

As I expected, VC 2008 Atl x64 runtime, doesn't works with Antivir. I must be VC++ 2008 ATL x86 ortherwise Antivir setup will fail.

Test has failed using VC++ 2008 Atl x64 on Win7 x64

avfail.th.png

Successful test using VC++ 2008 Atl x86 on Win7 x64

avokvcx86.th.png

then Antivir is starting perfectly after "ROE": when user loggon

avok2vcx86.png

Conclusion: Windows (XP, Vista/7) x86 or x64 need VC++ 2008 ATL x86 to be installed before starting Antivir v10.

Hope this help ;)

Edited by cyberyeye

Share this post


Link to post
Share on other sites

Thanks for testing.

Avira, Office 2010 and Paint.Net cannot be installed during Windows Setup (this means pass Specialize, because for AuditSystem/AuditUser it means you install it in your image so that it will be preinstalled for future use).

They install just fine using SetupComplete (just before user login) or using FirstLogonCommands (right after first login).

I am using SetupComplete now, installing vcredistx86 first and then Avira (your Light version).

Share this post


Link to post
Share on other sites

Thank you, cyberyeye. Avira Setup Creator is very useful.

I translated it into Finnish language. :)


[Finnish]
BtExec_txt=Aloita
MenuF_txt01=&Tiedosto
MenuF_txt02=Uusi asennusohjelma
MenuF_txt03=Poistu
MenuC_txt01=&Kieli
MenuC_txt02=Avira
MenuC_txt03=Käyttöliittymä
MenuH_txt01=?
MenuH_txt02=Tietoja ASC:sta
MenuH_txt03=Lisenssi
MenuH_txt04=Ukk
MenuH_txt05=Komentorivi
Label1_txt=Seuraa asennusohjelman luonnin edistymistä alta:
step_txt01=Paina 'Aloita' luodaksesi uuden asennusohjelman !
step_txt02=Nykyinen vaihe: Ladataan Aviran asennusohjelmaa !
step_txt03=Nykyinen vaihe: Puretaan tiedostoja Aviran asennusohjelmasta !
step_txt04=Nykyinen vaihe: Ladataan uusimpia virustunnisteita !
step_txt05=Nykyinen vaihe: Puretaan virustunnisteet sisältävää pakettia !
step_txt06=Nykyinen vaihe: Pakataan tiedostoja (7z)
step_txt07=Nykyinen vaihe: Luodaan uutta Avira-asennusohjelmaa...
step_txt08=Valmista ! Uusi asennusohjelma (Avira.exe) on luotu
Unp_txt01=Puretaan asennusohjelmaa...
Unp_txt02=Puretaan uusimpia virustunnisteita...
Pack_txt01=Pakataan uusia tiedostoja...
Crt_setup_txt=Luodaan uutta asennusohjelmaa: Avira.exe
av_txt=Ladataan Aviraa...
avdef_txt=Ladataan virustunnisteita...
av_old=ASC - Poistetaanko vanhat asennustiedostot ?
av_old02=Haluatko poistaa vanhat Avira-asennustiedostot ASC:n hakemistosta?
av_old03=Tiedosto:
av_old04=Virustunnistepaketti: vdf_fusebundle.zip
av_old05=Valitse 'Kyllä', jos olet epävarma.
av_old06=Huom: Aviran latauspalvelimet ovat joskus hyvin hitaita.
av_old07=Siinä tapauksessa yritä myöhemmin uudelleen
av_old08=tai lataa asennustiedostot käsin toiselta sivustolta:
chk_dsk_txt=Luo pikakuvake työpöydälle
chk_sm_txt=Luo kansio Käynnistä-valikkoon
cfg_title=Avira AntiVir Personal 10 (EN)
cfg_prompt=Tämä asennusohjelma sisältää päivitetyt tiedostot kohteesta
cfg_prompt2=.\nPaina OK aloittaaksesi asennuksen!
cfg_extract=Odota, puretaan tiedostoja...
cfg_cancel=Peruuta
cfg_finish=Aviran asennus on valmis!
cfg_help=Valitsin, jolla Avira asentuu automaattisesti (tosin näyttäen edistymispalkin): -y
option=Asetukset
Opt_Light=Luo kevyt asennusohjelma (Asc Light)
Opt_Light_tips=Katso Ukk: ASC Light (joitakin tiedostoja poistetaan asennusohjelman keventämiseksi)
CheckFileTxt=Tarkista Aviran palvelin
CheckFileTxt_Tips=Tarkista, löytyvätkö tiedostot Aviran palvelimelta!
BtCheckSrv=Tarkista

Share this post


Link to post
Share on other sites

Thanks a lot for you're translation :thumbup

I'll add this new one into the next build (in a few days I got a lot of works todo 'irl')

@Zilexa: indeed it should works using SetupComplete or FirstLogonCommands

Edited by cyberyeye

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...