Avast WEBforum

Consumer Products => Avast Free Antivirus / Premium Security (legacy Pro Antivirus, Internet Security, Premier) => Topic started by: big_gie on March 05, 2004, 10:19:03 PM

Title: Silent installation doesnt work?
Post by: big_gie on March 05, 2004, 10:19:03 PM
Hi,

I'm installing Avast pro unattended with my xp installation.

Everything is ok except it seems that some registry entries points to "D:\\Avast4Pro..." instead of "D:\Avast4Pro..." so when starting Avast I get errors like "Cannot find file://D:\\Avast4Pro\ENGLISH\Enhanced.html"

Here is the firsts lines of the Admin.ini file created for silent installation:
Code: [Select]
[Admin]
SilentInstallation=0
VerySilentInstallation=1
Path=%PRGFILES%\Avast4Pro
...

Should the "Path=%PRGFILES%\Avast4Pro" line be "Path=%PRGFILES%Avast4Pro" to prevent the double slash??

thanks!!!
Title: Re:Silent installation doesnt work?
Post by: Lisandro on March 06, 2004, 03:36:06 AM
I'm not at my XP system right now... Could you wait untill tomorrow? I have tried the silent installation some months ago and everything works fine.
Although, what is your %PRGFILES% folder?
Are you installing avast! on the second partition of the HDD?  ::)
Title: Re:Silent installation doesnt work?
Post by: big_gie on March 06, 2004, 11:10:56 PM
I have partitionned my HD into (at least) tree:
C: is for windows
D: is for Program files
E: is for personnal data

During XP installation, I tell windows to look on "D:" for programfiles (indeed, I use an winnt.sif for unattended installation of xp, containing those lines:
Code: [Select]
[Unattended]
    UnattendMode=FullUnattended
    OemSkipEula=Yes
    OemPreinstall=Yes
    TargetPath=\WINDOWS
    ProgramFilesDir="D:"
    CommonProgramFilesDir="D:\FichiersCommuns"

So now the registry entry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\\ProgramFilesDir and the environment variable %PROGRAMFILES% points to "D:"

Any ideas?

thanks :)
Title: Re:Silent installation doesnt work?
Post by: Lisandro on March 07, 2004, 11:03:41 PM
I have partitionned my HD into (at least) tree:
C: is for windows
D: is for Program files
E: is for personnal data

During XP installation, I tell windows to look on "D:" for programfiles (indeed, I use an winnt.sif for unattended installation of xp, containing those lines:
Code: [Select]
[Unattended]
    UnattendMode=FullUnattended
    OemSkipEula=Yes
    OemPreinstall=Yes
    TargetPath=\WINDOWS
    ProgramFilesDir="D:"
    CommonProgramFilesDir="D:\FichiersCommuns"

So now the registry entry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\\ProgramFilesDir and the environment variable %PROGRAMFILES% points to "D:"

Any ideas?

thanks :)

You can edit that Registry key to your 'really' program files folder (I suppose, D:\Program files\). If it is correct, I mean, the root of the second partition, you can try adding a slash after D:, you will have: D:\

You can use a Tweak program for it too:
Tweak UI (http://ftp://ftp.creativelement.com/pub/win98ann/tweakui.zip) or Tweak UI XP (http://download.microsoft.com/download/whistler/Install/2/WXP/EN-US/TweakUiPowertoySetup.exe).

But, I think could be a problem if avast! is installed at other partition that the primary one... I'm not sure.  :-\
Title: Re:Silent installation doesnt work?
Post by: igor on March 08, 2004, 09:46:04 AM
The double-backslash appeared in registry when your %PRGFILES% was D:  ? ???
Or did you change it from D:\ to D: afterwards?

Btw, I think it's not a good idea do have their D:, without the backslash. If avast! appends another backslash in this case, then it's a bug and will be fixed.
Title: Re:Silent installation doesnt work?
Post by: big_gie on March 09, 2004, 04:39:31 AM
Hum...

Here is a registry entry I use to install all my program to the D:\ drive (that way, I can wipe out windows and keep my program's configuration):
Code: [Select]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
"ProgramFilesDir"="D:"

When I open a setup file, it ask me to install the application in "D:\<application name>"

Maybe I could try to change "D:" to "D:\" but that would need some testing...


But why should I have problem if the path misses a "\"? I could understand my problem if I've put  "D:\" and avast just add "\Avast" to the path, so it ends up with "D:\\Avast"... But the reg key is "D:" so even if avast add "\Avast" to this, its just one "\"!

Or maybe windows adds a "\" itself to the reg key? I'm not a developper so I don't know the avast's and windows' behavior...

Quote from: igor
Btw, I think it's not a good idea do have their D:, without the backslash. If avast! appends another backslash in this case, then it's a bug and will be fixed.
Quote
I'll try setting the key to "D:\" and post the results later....

thanks!
Title: Re:Silent installation doesnt work?
Post by: igor on March 09, 2004, 09:47:33 AM
But why should I have problem if the path misses a "\"? I could understand my problem if I've put  "D:\" and avast just add "\Avast" to the path, so it ends up with "D:\\Avast"... But the reg key is "D:" so even if avast add "\Avast" to this, its just one "\"!

I believe it can solve your problems with avast! for now - I was just trying to say that it may cause problems with other applications. I may be wrong, of course - I just think that "D:" often means "the current directory on drive D:", not necessarily "root of drive D:".
The problem with double-backslash should be fixed inside avast! itself.
Title: Re:Silent installation doesnt work?
Post by: big_gie on March 09, 2004, 04:22:26 PM
But why should I have problem if the path misses a "\"? I could understand my problem if I've put  "D:\" and avast just add "\Avast" to the path, so it ends up with "D:\\Avast"... But the reg key is "D:" so even if avast add "\Avast" to this, its just one "\"!
...I just think that "D:" often means "the current directory on drive D:", not necessarily "root of drive D:".

I can see this... but I don't understand why avast then adds 2 "\"!
I could understand the error if avast had errors trying to install in "D:Avast"...

I'll go check right now the registry change... givie me half an hour ill post back...
Title: Re:Silent installation doesnt work?
Post by: big_gie on March 09, 2004, 04:38:36 PM
Ok, I changed the key to "D:\" and I get the same error...:(

Title: Re:Silent installation doesnt work?
Post by: big_gie on March 09, 2004, 04:50:33 PM
Ok, I was able to install things silently with no errors!! :)

the reg key is set to "D:\" and I had to change the "Admin.ini" like this:
Quote
[Admin]
SilentInstallation=0
VerySilentInstallation=1
Path=%PRGFILES%Avast4Pro
Serial=XXXXXXXXXXXXXXXXXXXXXXXXXX
NoReboot=1
AskForReboot=0
Reboot=no
SvcAccount=
SvcPassword=c
ScheduleBoottimeScan=0
[Admin.upd]
SilentInstallation=0
VerySilentInstallation=1
Path=%PRGFILES%Avast4Pro
...
I removed, from those 2 path, the "\" and avast now launch normaly...

I'll try using the "D:" key instead of "D:\"...
Title: Re:Silent installation doesnt work?
Post by: big_gie on March 09, 2004, 05:04:35 PM
I changed my key to "D:" and installed silently using Path=%PRGFILES%Avast4Pro instead of Path=%PRGFILES%\Avast4Pro and everyting works fine...

So the problem is definitly with avast creating/interpreting the Admin.ini file...:(


By the way, am I the only one using silent installation??? :)
Title: Re:Silent installation doesnt work?
Post by: Lisandro on March 09, 2004, 06:43:25 PM
By the way, am I the only one using silent installation??? :)

No, you're not. When I have to uninstall/install avast! (which, now, is not so frequently  ;D), I use the silent installation. I used a lot in the near past, when I install more than one language of avast!  ;)
Oh, I forgot to say, that the admin.ini file works fine for me with default %PRGFILES% of Windows.
Title: Re:Silent installation doesnt work?
Post by: big_gie on March 09, 2004, 06:51:38 PM
Silent installations rocks :)

Could you try this one Technical?

Change this key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
"ProgramFilesDir"="D:"

(if you have a second partition...)
And try to install avast silently...
Title: Re:Silent installation doesnt work?
Post by: Lisandro on March 09, 2004, 06:58:11 PM
Silent installations rocks :)

Could you try this one Technical?

Change this key:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion]
"ProgramFilesDir"="D:"

(if you have a second partition...)
And try to install avast silently...

Right now no...  :'( Sorry.
I do not have a computer to mess my avast! installation right now  ;D Although, I have four partitions in my HDD.
Title: Re:Silent installation doesnt work?
Post by: big_gie on March 09, 2004, 07:04:58 PM
thanks anyway :)
Title: Re:Silent installation doesnt work?
Post by: igor on March 09, 2004, 07:13:20 PM
I believe some people use it, but most of them have the default value of Program Files folder.
As I said - the problem will be fixed in the next avast! update.
Title: Re:Silent installation doesnt work?
Post by: big_gie on March 09, 2004, 07:14:34 PM
thanx igor :)

continue your great work :)
Title: Re:Silent installation doesnt work?
Post by: big_gie on April 28, 2004, 03:40:12 AM
Hi,

I'm using the new v4.1.396 and still have the same problem...

I've try setting "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\\ProgramFilesDir" to "D:" and "D:\" and I get errors with both (?)...

Here are some screen shots. Those errors are all generated on the same run of avast...
1. Running avast will get me this...
2. ...then this...
3. This one is freezed like this until i end it via taskmanager
4. In avast (enhanced), if I select "News" I get this.
5. When I close avast I get this one...

Avast is looking for files in D:\\Avast... the problem is still their :(
Title: Re:Silent installation doesnt work?
Post by: big_gie on April 28, 2004, 03:51:16 AM
Sorry, forgot the picture :D