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:
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? :
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:
So now the registry entry at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ProgramFilesDir and the environment variable %PROGRAMFILES% points to “D:”
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:\
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.
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=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.
I'll try setting the key to "D:\" and post the results later....
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.
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.
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.