Help - Search - Members - Calendar
Full Version: BitDefender 9 Professional Plus
MSFN Forums > Unattended Windows Discussion & Support > Application Installs

   
Google Internet Forums Unattended CD/DVD Guide
Nucleus
After the installation of BitDefender 9 Professional Plus, 2 screens appear, instead of 4 in BitDefender 8 Professional Plus.



and



I have tried modifying the old AutoIT script (that worked with BitDefender 8 Professional Plus), but that crashed and burned.

I have also tried creating a new script, using SciTe ScriptWriter. No good either.

Can anyone help me out here?
Nologic
Just use the AutoIT window Info tool to get the window names and control ID's...shouldn't be that bad of a deal to change the old script...most installers don't change that much....acutally surprised this one has.
Nucleus
I actually tried that too. I don't know if i was doing something wrong, but the info tool didn't give names for the buttons. (button1, button2) Thats why i couldn't edit the old script. sad.gif

When i hover over the button "Register" there is no Control ID: or Text:
ClassNameNN: is Internet Explorer_Server1
Nologic
Then instead of using controlclick use mouseclick...ie send the mouse over to do the job...just make sure you set it based off the window...and not the desktop.
Nucleus
No idea how to do that smile.gif
If anyone feels like making an autoit script for this job, good. If not, no big deal newwink.gif
Sodium Cyanide
I tried it, but the "BitDefender 9 Professional Plus" (the bigger of the two pictured) window title is null so it is impossible to get control of it with AutoIT (if there is some other way, for God's sakes let me know). You would have to try and get the window focus using raw mouse inputs, and that would be just too much of a risk with other programs running in the foreground.

Also, regshot did not detect any usable registry settings that got changed after registration, only the crypto one and a couple of un-editable files under the system32 folder (same place where SAM hash is). Files you can't edit while Windows is running. So it has to be done with window control of the running program...

This is the only program I haven't been able to get working yet. Any help would be appreciated. Otherwise, I guess I'll have to use version 8. sad.gif
bonedaddy
this is what I use, I'm sure you know how to get the msi........

QUOTE
bdpro9.msi /qb REBOOT=Suppress SCAN=0 UPDATE=0 ICON=0


BD cool.gif
Sodium Cyanide
I guess I should have made it clearer... I'm trying to automate the registration process, which pops up right after install. I'm not having a problem actually installing Bitdefender silently. Right now I just have script that kills all the processes after install.

bdkill.bat
CODE
@ECHO OFF
taskkill /IM bdmcon.exe /F /T
taskkill /IM bdss.exe /F /T
taskkill /IM bdoesrv.exe /F /T
taskkill /IM bdnagent.exe /F /T


What I need is something that will register automatically, if I truly want to make the setup unattended.

Thanks for the switches though, I didn't know you could disable the automatic virus scan from the parameters. thumbup.gif
Sodium Cyanide
Looks like we are SOL for a silent registration of BitDefender 9 Professional! sad.gif (read entire post)

I have been corresponding with the BitDefender Support Team for the past week or so trying to get a solution for this. According to tech support, the method for silent registration is to pass your registration key using the following parameter:

CODE
WIN_KEY="XXXXXXXXXXXXXXXXXXXX"

Following their logic, my final target parameters looked like this:

CODE
bdprof.msi /qb- REBOOT=ReallySuppress SCAN=0 UPDATE=0 ICON=1 WIN_KEY="XXXXXXXXXXXXXXXXXXXX" USERNAME="Test"

Which would disable reboot, disable the automatic scan, disable auto-update, add an icon to desktop, and auto-register with the username "Test". You can also pass a COMPANYNAME parameter if you wish to register with a certain company name.

HOWEVER, it seems that after some testing we discovered that none of this will work with BitDefender 9 Professional!
The WIN_KEY parameter is only available to the BitDefender Client that is packaged with the Enterprise Manager 2.5 suite. There is no comparative way to do this with BD 9 Pro (and yes I've tried PIDKEY, it doesn't work either). According to support, they are considering implementing WIN_KEY in the future but at the moment there is NO solution for this problem if you are using BD 9 Pro. Just thought I would share this with everyone.
DigeratiPrime
hmm thats a shame, its a really good program otherwise. I hope they fix this. smile.gif
Sodium Cyanide
QUOTE (DigeratiPrime @ Oct 4 2005, 06:31 PM)
hmm thats a shame, its a really good program otherwise.  I hope they fix this.  smile.gif
*


Indeed. The Tech Support guy mentioned that they are considering enabling this parameter for future standalone kits of BitDefender. You can take a crack at editing the .msi file with Orca if you are pretty good, you might get it to work. I tried it myself and I did get the registration to change, however it told me that I had an invalid key rather than just not registering like it was before. From my experiments it seems that if you have a correct key that it ignores you, but if you have an incorrect key it will complain. So something is disabled somewhere.

Anyway if you hack a working .msi together, please let me know. I would be interested. smile.gif
cachirro
does anyone knows how to tell the installer not to install the firewall and spamcontrol?

thanks.
Nucleus
I am a big fan of BitDefender, but all I have is problems regarding it's registration. Like mentioned in this post before, it is not possible to register BitDefender without using an AutoIT script.

The following script will register BitDefender 9 Pro Plus. It has been tested, and it's working. Big thanks to Larry at www.autoitscript.com This is the original post

The problem is, when bitdefender installation finishes and the script tries to run, so that it can complete the registration, bitdefender detects it as a virus, and does not let it run.

I don't know who's fault is that, bitdefender's or autoit's, but i am suspecting bitdefender, because other antivirus software, do not detect the script as a virus.

Anyone knows a way to work around this problem?
MHz
You were blessed to get Larry's help. Larry (AutoIt Dev) always trys to help as he is nice person. His code is can get so complex that it makes my head hurt trying to understand it.
AV programs constantly pick on AutoIt compiled scripts. The compiled scripts have a common bin file (interpreter) that is present in all compiled scripts. The AV companies make a mistake by targeting the bin code rather then the uncommon script code. Do a search of the AutoIt forums and you will find posts showing this.
One idea I have is to use Adlib to monitor for the presence of the definition file that BitDefender installs, delete it and perhaps copy over a later version. Hopefully this could be done before BitDefender runs.
Or you could get onto BitDefender and tell them to update their installer with an AutoIt friendly installer?
microbion
here is my version of the autoit install routine. its german and its a modification of the code provided here a few month ago for version 8... but i hope you'll handle that. it works fine!
check the code and have a look at the line


; Splash Screen 1
MouseClick("left", 750, 572, 1)


consider also that you have to "sleep" the installation before the splash screen thing like that:


Sleep("100000")




CODE
; Serial Number
$SN_1 = "12345-12345-12345-12345"
$SF_1 = "bitdefender_setup.exe"


; Execute Installer
If FileExists    ( @ScriptDir & "\" & $SF_1 ) Then    
    Run    ( @ScriptDir & "\" & $SF_1 )
Else
    Exit
EndIf
Sleep("8000")

; Welcome Screen
$Title1 = "BitDefender 9 Professional Plus Einstellungen"
If WinWait($Title1, "Willkommen zum BitDefender Professional Assistent") Then
ControlClick($Title1, "Willkommen zum BitDefender Professional Assistent", "Button1")
EndIf

; Advice
$Title1 = "BitDefender 9 Professional Plus Einstellungen"
If WinWait($Title1, "Hinweis") Then
ControlClick($Title1, "Hinweis", "Button1")
EndIf

; End User Licence
$Title1 = "BitDefender 9 Professional Plus Lizenzvertrag"
If WinWait($Title1, "Endbenutzer Lizenzvertrag") Then
ControlClick($Title1, "Endbenutzer Lizenzvertrag", "Button2")
ControlClick($Title1, "Endbenutzer Lizenzvertrag", "Button5")
EndIf

; Install Mode
$Title1 = "BitDefender 9 Professional Plus Einstellungen"
If WinWait($Title1, "Einstellung auswählen") Then
ControlClick($Title1, "Einstellung auswählen", "Button3")
EndIf

; Prepare to install
$Title1 = "BitDefender 9 Professional Plus Einstellungen"
If WinWait($Title1, "Installation wird vorbereitet") Then
ControlClick($Title1, "Installation wird vorbereitet", "Button1")
EndIf

; Ready to install
$Title1 = "BitDefender 9 Professional Plus Einstellungen"
If WinWait($Title1, "Bereit zum Installieren") Then
ControlClick($Title1, "Bereit zum Installieren", "Button6")
ControlClick($Title1, "Bereit zum Installieren", "Button7")
ControlClick($Title1, "Bereit zum Installieren", "Button4")
ControlClick($Title1, "Bereit zum Installieren", "Button5")
ControlClick($Title1, "Bereit zum Installieren", "Button1")
EndIf

Sleep("100000")

; Splash Screen 1
MouseClick("left", 750, 572, 1)

; Registration
$Title = "BitDefender 9 Professional Plus - Registrierung"
WinWaitActive ( $Title )
$SN = StringSplit( $SN_1 , "-" )
ControlSetText ( $Title , "" , "Edit1" , $SN[1] )
ControlSetText ( $Title , "" , "Edit2" , $SN[2] )
ControlSetText ( $Title , "" , "Edit3" , $SN[3] )
ControlSetText ( $Title , "" , "Edit4" , $SN[4] )
ControlClick ( $Title , "" , "Button1" )


; Finish
If WinWait("BitDefender 9 Professional Plus Einstellungen", "Beendet den BitDefender 9 Professional Plus Assistent") Then
ControlClick("BitDefender 9 Professional Plus Einstellungen", "Beendet den BitDefender 9 Professional Plus Assistent", "Fertig&stellen")
EndIf

; Install Info - Do not reboot!
If WinWait("Installerinformationen", "") Then
ControlClick("Installerinformationen", "", "&Nein")
EndIf


EXIT
Nucleus
Are you sure that this script works with BitDefender Version 9? And what does this script has, that will stop it from being detected as a virus by BitDefender?
microbion
yes the script works. of course you have to translate the titles into english. but it works definitely!

the issue with the virus thing is wellknown and dinky biggrin.gif . after installing BD9 just update the virus signatures and it'll work properly.

do you need a translation into english welcome.gif ?
Nucleus
Nope. This does the job for me just fine smile.gif

RunOnceEx.cmd

CODE
REG ADD %KEY%\020 /VE /D "BitDefender v9.0 Pro" /f
REG ADD %KEY%\020 /V 1 /D "%CDROM%\Software\BitDefender\BitDefender.msi /qb REBOOT=Suppress SCAN=0 UPDATE=0 ICON=0" /f
REG ADD %KEY%\020 /V 2 /D "%CDROM%\Software\BitDefender\AutoIt3.exe \"%CDROM%\Software\BitDefender\BitDefender.au3\"" /f


BitDefender.au3 is the one i posted before.

QUOTE (microbion)
after installing BD9 just update the virus signatures and it'll work properly


The autoit script is detected as a virus while trying to complete bitdefender registration. At least thats what happened with my unattended installation. But, i followed MHz advice, and i didnt compile the script. I just executed it as shown above in my RunOnceEx.cmd
Nucleus
There is no detailed explanation on how to register BitDefender 9 Professional Plus using the win.ini method, so here it goes.

First of all let’s make it clear, that win.ini is totally useless in WinNT, Win2K and WinXP, so the first move is to DELETE it. (%WINDIR%\win.ini) BitDefender will create it again.

Taken from http://www.computerhope.com/jargon/w/winini.htm

Win.ini
The Microsoft Windows 3.x, 95, and 98 initialization file located in windows directory. The win.ini file is used to load various settings each time Windows boots, for example, the communications drivers, wallpaper, screen saver, languages, fonts, etc... are loaded each time the win.ini is initialized. If this file becomes corrupt or bad Windows will either not load, or have several errors as it loads. Users who are running Windows NT 4.0, 2000, XP, or later operating systems no longer have a win.ini. Instead of storing these settings in this file they are stored in the system registry.

Step 1:

Install BitDefender and register it. A new win.ini will be created. Put it on your unattended cd.

Step 2:

RunOnceEx.cmd

CODE
REG ADD %KEY%\023 /VE /D "BitDefender v9.0 Pro" /f
REG ADD %KEY%\023 /V 1 /D "%CDROM%\Software\BitDefender\BitDefender.msi /qb REBOOT=Suppress SCAN=0 UPDATE=0 ICON=0" /f
REG ADD %KEY%\023 /V 2 /D "%CDROM%\Software\BitDefender\RegInfo.cmd" /f


Reginfo.cmd

CODE
cmdow @ /HID
@echo off

TASKKILL /F /IM bdmcon.exe

COPY /Y "%~dp0win.ini" "%WINDIR%"

PING 1.1.1.1 -n 1 -w 1000 >NUL

Start "" "%PROGRAMFILES%\Softwin\BitDefender9\bdmcon.exe"

EXIT


You should place win.ini in the same folder as Reginfo.cmd, so that it can be copied over to %WINDIR%. The %~dp0 in front of win.ini is for detecting the full path of the source file. (Thanks to MHz for that little bit of information newwink.gif)

Well, that's it. BitDefender is started, and it's registered. This method solved all my problems with autoit scripts, and removed the last autoit script from my unattended DVD smile.gif
Stalkie
Would it then be possible to copy win.ini before installation?
Nucleus
I haven't tried it, but I suppose it should be ok.
Stalkie
If it DOES work with copying before installation, it would remove the need for killing programs and services.

Much more "clean"
tempuser
Here is what i have done (Bit 9 Pro Plus)

;The comment below contains SFX script commands

Setup=bdis.msi /qb! REBOOT=ReallySuppress SCAN=0 UPDATE=0 ICON=1 WIN_KEY="cccccc-E7BBE-ccccc-E7A44"
TempMode
Silent=1
Overwrite=1

the issue here is parental control is installed. you can select the components you dont want.



My solution

Edit the msi, remove the component you dont want. Integrate the serial into the msi package.
xpmaniac4ever
Just found something interesting regarding BitDefender`s registration information. It is not located in the registry, as expected. BitDefender coders decided to store it in the Win.ini file. Just make a copy of Win.ini before BitDefender install and then look back into it after you install BD. It is MODIFIED ! Now copy the modified win.ini somewhere. Uninstall BitDefender. Replace the win.ini with the modified one. Reinstall BitDefender ! Hoooooooooray ! My BitDefender is REGISTERED ! Cheers biggrin.gif
Nucleus
Like I said
Evolver
QUOTE (Nucleus @ Jan 4 2006, 12:50 PM) *

Thanks Nucleus!!

Works great, even with Bitdefender 10 Pro thumbup.gif

But having a problem, when using it with WPI.
Then I get the following warningmessage:
CODE
The following applications should be closed before continuing the install:
Installation
: : : Cancel : : : : : : : : Retry : : : : : : : : Ignore : : :

I guess it's talking about the WPI-installer

Works fine with 'Ignore' though, but that doesn't make it unattended anymore, doesn't it? sad.gif

Any possibility to work around that?
radix
An AutoIt script for BitDefender Antivirus Plus v10 Build 247 is available here:
http://www.msfn.org/board/index.php?showto...st&p=694909
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.