Closed Bug 1321796 Opened 8 years ago Closed 8 years ago

Firefox 45.5.0 esr silent install path

Categories

(Firefox :: Installer, defect)

45 Branch
x86_64
Windows
defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: aleksandar.sismanovic, Unassigned)

Details

Attachments

(1 file)

3.03 KB, application/x-zip-compressed
Details
Attached file firefox.zip
User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.99 Safari/537.36

Steps to reproduce:

Domain: Windows 2003 R2
Clients: Windows 7 Enterprise and Windows XP Professional.

I am trying to install Firefox 45.5.0 esr on a number of Windows 7 64bit domain computers. Created GPO which installs silently, also cfg and ini files.

Since it is mixed client environment, I am looking for solution to install both on Win7 and WinXP.

Attached are files I use for installation.


Actual results:

Firefox is installed in path C:\Program Files\Mozilla Firefox instead in C:\Program Files (x86)\Mozilla Firefox ??
When I try manual installation on that client it start to install on correct path for 64bit OS - C:\Program Files (x86)\Mozilla Firefox.


Expected results:

Firefox should be installed (by documentation) in following path C:\Program Files (x86)\Mozilla Firefox
Component: Untriaged → Installer
OS: Unspecified → Windows
Hardware: Unspecified → x86_64
The batch file in your attachment says that you're using the installer for the 64-bit version, so this seems like the expected behavior. 64-bit installs are intended to default to Program Files. If you were installing a 32-bit version, it would default to Program Files (x86) on 64-bit systems, and to Program Files on your 32-bit systems. If you want all those systems to use Program Files (x86), you'll have to override the default in the INI file.
Flags: needinfo?(aleksandar.sismanovic)
(In reply to Matt Howell [:mhowell] from comment #1)


I am now confused because official mozilla document says:

Configuration
...Find the Firefox program directory where the Firefox executable is located. For example, in Win7x64 this is typically C:\Program Files (x86)\Mozilla Firefox...

https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment

Also when I install manually same 64bit installer it installs in Program Files (x86).
Flags: needinfo?(aleksandar.sismanovic)
Flags: needinfo?(mhowell)
(In reply to AS from comment #2)
> I am now confused because official mozilla document says:
> 
> Configuration
> ...Find the Firefox program directory where the Firefox executable is
> located. For example, in Win7x64 this is typically C:\Program Files
> (x86)\Mozilla Firefox...
> 
> https://developer.mozilla.org/en-US/Firefox/Enterprise_deployment

That documentation was probably written before we offered a 64-bit build for Windows; it's a relatively recent addition. I'll see if I can get that edited. To be fair to the authors of that page though, the text does say it's just giving an example.

> Also when I install manually same 64bit installer it installs in Program
> Files (x86).

Do you mean that Program Files (x86) is showing up as the default location for the 64-bit installer? That should not be happening. But manually changing the default and installing into (x86) is intentionally allowed.
Flags: needinfo?(mhowell) → needinfo?(aleksandar.sismanovic)
mhowell@mozilla.com(In reply to Matt Howell [:mhowell] from comment #3)

I will download installers again and try again. Also I will try to create separate batch files for installing on Win7 and WinXP systems.
Probably both installers can not be separated in one script, so it makes a mess installing both in Program Files and Program Files (x86).
I found that there are some Win7 32bit systems in network, so its one more point of problem...
Flags: needinfo?(aleksandar.sismanovic)
Keep in mind that if you use the InstallDirectoryPath setting in the installer INI file, then both the 32-bit and 64-bit installers running on any Windows version will use that path instead of their defaults. So then you would only have one path to worry about on all your systems.
64bit version installs without problems on Windows 7 Enterprise clients.

32bit version for Windows XP is not even starting to install on Windows XP clients.
I am using same installation batch file like for Windows 7, only difference is name of installer.
Installation not starting from network share, when i start batch file manually from clients, it installs Firefox.
Is there some trick for Windows XP?

\\SERVER\_INSTALL_za_GPO\Firefox\FirefoxSetup45.5.0esr-32bit.exe /INI=\\SERVER\_INSTALL_za_GPO\Firefox\firefox.ini
copy /Y \\SERVER\_INSTALL_za_GPO\Firefox\config\mozilla.cfg "C:\Program Files\Mozilla Firefox\"
copy /Y \\SERVER\_INSTALL_za_GPO\Firefox\config\override.ini "C:\Program Files\Mozilla Firefox\browser\"
copy /Y \\SERVER\_INSTALL_za_GPO\Firefox\config\autoconfig.js "C:\Program Files\Mozilla Firefox\defaults\pref\"
copy /Y \\SERVER\_INSTALL_za_GPO\Firefox\config\mozilla.INSTALLED "C:\Program Files\Mozilla Firefox\"
Flags: needinfo?(mhowell)
There shouldn't be any trick to using that installer on XP. I don't quite understand what you said you've tried; did you copy the batch file and the installer to a local disk, and it worked that way? Or did you run the batch file from the same location the GPO runs it from, just manually instead of from the GPO? In either case, try running the installer GUI instead of silent mode (as in, without the /INI parameter) and see if any error messages appear.
Flags: needinfo?(mhowell) → needinfo?(aleksandar.sismanovic)
I have run the batch file from the same location the GPO runs it from, just manually instead of from the GPO.
Also I have tried installation in silent mode without /INI parameter, still not working.

So when I just copy line from batch file and paste it in cmd on clients, installation runs without problems.
Flags: needinfo?(aleksandar.sismanovic) → needinfo?(mhowell)
Could you try running the installation without the /INI parameter, and without silent mode? I can't think of anything the installer does that would prevent it from launching at all depending on whether it was run from a GPO or not, so I'm trying to get something like a useful error message out of it.
Flags: needinfo?(mhowell) → needinfo?(aleksandar.sismanovic)
Not working.
I have tested now this batch file as User logon script, instead of Computer startup script and its working.

It doesn't make sense, it should be working for sure as Computer startup script since it is then installed under system account...
Flags: needinfo?(aleksandar.sismanovic) → needinfo?(mhowell)
I think I found what was the problem.
Windows XP clients did not read GPo for installation at startup even if I could start installation from that location after I log on to computer ?! Windows 7 client connect without problem.
So I moved installation files to SYSVOL and changed path in batch file and now it is working.

btw share from which I first tried to install Firefox we use for all other installations and it is working without problems...
Flags: needinfo?(mhowell)
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: