[Bug 21322] New: Platform SDK 2003 install sets PATH to incorrect value?
http://bugs.winehq.org/show_bug.cgi?id=21322 Summary: Platform SDK 2003 install sets PATH to incorrect value? Product: Wine Version: 1.1.36 Platform: x86 OS/Version: Linux Status: NEW Keywords: download, Installer Severity: normal Priority: P2 Component: -unknown AssignedTo: wine-bugs(a)winehq.org ReportedBy: dank(a)kegel.com Running the Platform SDK 2003 installer (e.g. winetricks psdk2003) and choosing the default install causes PATH to be set to the wrong value. $ wine cmd.exe /c echo %PATH% C:\windows\system32;C:\windows;C:\windows\system32\wbem $ sh winetricks psdk2003 $ wine cmd.exe /c echo %PATH% ;"C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\.";"C:\Program Files\Microsoft Platform SDK for Windows Server 2003 R2\Bin\win95." Changing the system PATH like that is an option you can turn on and off in the custom install. But even if you choose custom install, and it (and most everything else) off, this problem still occurs. I think this worked properly last month, but I haven't done a regression test. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21322 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |regression --- Comment #1 from Dan Kegel <dank(a)kegel.com> 2010-01-13 19:44:28 --- Also affects psdkwin7. It may have been caused by commit 1b7238a96983659c23eb5b35322d1427fedd6796 Author: James Hawkins <truiken(a)gmail.com> Date: Tue Dec 15 18:19:19 2009 -0800 msi: Simplify ITERATE_WriteEnvironmentString. but I haven't checked. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21322 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords|regression | Component|-unknown |kernel32 --- Comment #2 from Dan Kegel <dank(a)kegel.com> 2010-01-14 08:25:30 --- Nope! Reverting that did nothing here. I looked closer. After the program runs, system.reg contains [System\\CurrentControlSet\\Control\\Session Manager\\Environment] "PATH"=str(2):"C:\\windows\\system32;C:\\windows;C:\\windows\\system32\\wbem" and user.reg contains [Environment] "PATH"=";\"C:\\Program Files\\Microsoft Platform SDK for Windows Server 2003 R2\\Bin\\.\";\"C:\\Program Files\\Microsoft Platform SDK for Windows Server 2003 R2\\Bin\\win95.\"" which doesn't seem that bad. Maybe the problem is that Wine isn't combining the system-wide and the user-specific PATH settings properly; it should append them. A comment in http://www.tomshardware.com/forum/29472-45-environment-variable-where agrees with this. Looking at kernel32/process.c:set_registry_environment(), it seems as if in wine, user-specific registry settings simply override the system-wide ones, even for PATH. So unless I'm reading set_registry_environment() wrong, this is a kernel32 bug, and not a regression. I must have been wrong when I said this worked before. And sure enough, running wine-1.1.31's cmd still shows the screwed up PATH. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21322 --- Comment #3 from Dan Kegel <dank(a)kegel.com> 2010-01-14 23:28:07 --- Created an attachment (id=25738) --> (http://bugs.winehq.org/attachment.cgi?id=25738) Proposed fix This patch seems to do the trick. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21322 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |patch -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21322 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #25738|0 |1 is obsolete| | --- Comment #4 from Dan Kegel <dank(a)kegel.com> 2010-01-14 23:35:07 --- Created an attachment (id=25739) --> (http://bugs.winehq.org/attachment.cgi?id=25739) Proposed fix -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21322 --- Comment #5 from Dan Kegel <dank(a)kegel.com> 2010-01-14 23:35:52 --- The content of attachment 25738 has been deleted by Dan Kegel <dank(a)kegel.com> who provided the following reason: untidy The token used to delete this attachment was generated at 2010-01-14 23:35:40. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21322 --- Comment #6 from Dan Kegel <dank(a)kegel.com> 2010-01-15 16:06:30 --- http://support.microsoft.com/kb/100843 says that a couple other variables (e.g. LIBPATH) are also concatenated like this. (Also, I'm not sure where those quotes are coming from, or if they're there on native.) -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21322 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Platform SDK 2003 install |Setting a user-specific |sets PATH to incorrect |PATH cause systemwide one |value? |to be ignored (affects | |Platform SDK) -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21322 Dan Kegel <dank(a)kegel.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|Setting a user-specific |Setting a user-specific |PATH cause systemwide one |PATH causes systemwide one |to be ignored (affects |to be ignored (affects |Platform SDK) |Platform SDK) -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21322 Alexandre Julliard <julliard(a)winehq.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |DUPLICATE --- Comment #7 from Alexandre Julliard <julliard(a)winehq.org> 2010-01-28 08:58:14 --- Dup. *** This bug has been marked as a duplicate of bug 10011 *** -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
http://bugs.winehq.org/show_bug.cgi?id=21322 Dmitry Timoshkov <dmitry(a)codeweavers.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED --- Comment #8 from Dmitry Timoshkov <dmitry(a)codeweavers.com> 2010-01-28 09:27:45 --- Closing duplicate. -- Configure bugmail: http://bugs.winehq.org/userprefs.cgi?tab=email Do not reply to this email, post in Bugzilla using the above URL to reply. ------- You are receiving this mail because: ------- You are watching all bug changes.
participants (1)
-
wine-bugs@winehq.org