After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 724090 - (gst.x86_64.msi) Windows x86_64 SDK Installer: Path Bug forces install to %ProgramFiles(x86)%
(gst.x86_64.msi)
Windows x86_64 SDK Installer: Path Bug forces install to %ProgramFiles(x86)%
Status: RESOLVED NOTGNOME
Product: GStreamer
Classification: Platform
Component: dont know
unspecified
Other Windows
: Normal blocker
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-02-11 03:45 UTC by John S
Modified: 2014-02-11 08:20 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description John S 2014-02-11 03:45:43 UTC
When using the GStreamer SDK 2013.6 (Congo) for Windows 64 bits (Runtime) MSI installer and selecting "C:\Program Files\Gstreamer" as the install Directory, it forces itself into "C:\Program Files (x86\Gstreamer". 

As a work-around, to get it into the appropriate directory for 64-bit applications, you have to manually move the "Gstreamer" folder to "C:\Program Files" and then export the relevant parts of the Windows Registry. This is so you can, next, "Find and Replace" all instances of "Program Files (x86)\\Gstreamer" with "Program Files\\Gstramer" (two \\ necessary for escaping the slash [\], part of syntax for a registry import [.reg file]) and then reimport the registry. 

Also, while you are fixing this bug where the installer chooses the directory against your will, you could also make the DEFAULT be "C:\Program Files". For even better compatibility, to find "Program Files" no matter what drive Windows is installed on, the variable that windows uses is "%ProgramFiles%", whitout quotes, and the 32-bit variable is "%ProgramFiles(x86)%", again without quotes.

A Windows installation using default settings transforms "%ProgramFiles%" into "C:\Program Files". When using Linux-native apps compiled for windows, like Gstreamer, this would really help avoid bugs with path variables since Linux does not like a SPACE ( ) in any path; the Linux-native application would be using %ProgramFiles% (no spaces) and windows would automatically be transforming it into a space. Please start referencing paths using windows-native variables where applicable as follows:
%ProgramFiles% = C:\Program Files
%ProgramFiles(x86)% = C:\Program Files (x86)\
%UserProfile% = C:\users\(username)\

Summing it all up, I changed all instances in the registry to "%ProgramFiles%\Gstreamer\....". 

I'm sure you devs know all of this, except for the bug above; I'm just pointing it out of how it would help compatibility between an OS that uses spaces in paths and the others that don't, just like Linux will allow a dot (.) in its path where windows will not. I know you know that any environmental variable can be referenced by putting its name between %% signs, as I did with the three native-to-windows variables above.

Ty for all and keep up the great work!
Comment 1 Sebastian Dröge (slomo) 2014-02-11 08:20:01 UTC
(In reply to comment #0)
> When using the GStreamer SDK 2013.6 (Congo) for Windows 64 bits (Runtime) MSI
> installer and selecting "C:\Program Files\Gstreamer" as the install Directory,
> it forces itself into "C:\Program Files (x86\Gstreamer". 

The stuff from gstreamer.com has nothing to do with the GStreamer project, it's just something provided by two companies and built on very old versions of GStreamer. Any problems with this should be reported to them.


Alternatively you could update to a newer version of GStreamer and use the binaries provided by the GStreamer project from here: http://gstreamer.freedesktop.org/data/pkg/windows/1.2.3/

They work more or less the same as the ones from gstreamer.com