Author Topic: Silent installation doesnt work?  (Read 11877 times)

0 Members and 1 Guest are viewing this topic.

big_gie

  • Guest
Silent installation doesnt work?
« 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!!!

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67195
Re:Silent installation doesnt work?
« Reply #1 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?  ::)
The best things in life are free.

big_gie

  • Guest
Re:Silent installation doesnt work?
« Reply #2 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 :)

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67195
Re:Silent installation doesnt work?
« Reply #3 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 or Tweak UI XP.

But, I think could be a problem if avast! is installed at other partition that the primary one... I'm not sure.  :-\
The best things in life are free.

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11849
    • AVAST Software
Re:Silent installation doesnt work?
« Reply #4 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.

big_gie

  • Guest
Re:Silent installation doesnt work?
« Reply #5 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!

Offline igor

  • Avast team
  • Serious Graphoman
  • *
  • Posts: 11849
    • AVAST Software
Re:Silent installation doesnt work?
« Reply #6 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.

big_gie

  • Guest
Re:Silent installation doesnt work?
« Reply #7 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...

big_gie

  • Guest
Re:Silent installation doesnt work?
« Reply #8 on: March 09, 2004, 04:38:36 PM »
Ok, I changed the key to "D:\" and I get the same error...:(


big_gie

  • Guest
Re:Silent installation doesnt work?
« Reply #9 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:\"...
« Last Edit: March 09, 2004, 04:51:05 PM by big_gie »

big_gie

  • Guest
Re:Silent installation doesnt work?
« Reply #10 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??? :)

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67195
Re:Silent installation doesnt work?
« Reply #11 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.
The best things in life are free.

big_gie

  • Guest
Re:Silent installation doesnt work?
« Reply #12 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...

Offline Lisandro

  • Avast team
  • Certainly Bot
  • *
  • Posts: 67195
Re:Silent installation doesnt work?
« Reply #13 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.
The best things in life are free.

big_gie

  • Guest
Re:Silent installation doesnt work?
« Reply #14 on: March 09, 2004, 07:04:58 PM »
thanks anyway :)