Rewriting PATH as REG_SZ instead of REG_EXPAND_SZ is actually a not
infrequent side-effect of some poorly written installers and
uninstallers - I see it from time to time (I do a lot of automated
workstation management).

Toby Ovod-Everett
AT&T Alaska Information Services
907.264.7620

This e-mail and any files transmitted with it are AT&T property, are
confidential, and are intended solely for the use of the individual or
entity to whom this email is addressed. If you are not one of the named
recipient(s) or otherwise have reason to believe that you have received
this message in error, please notify the sender and delete this message
immediately from your computer. Any other use, retention, dissemination,
forwarding, printing, or copying of this e-mail is strictly prohibited.
-----Original Message-----
From: Mark Dootson [mailto:mark.doot...@znix.com] 
Sent: Thursday, May 26, 2011 8:14 AM
To: Gabor Szabo
Cc: wxperl-users@perl.org
Subject: Re: Alien-wxWidgets-0.52 failure on 5.10.1

Hi

Something has killed your path expansion. You should not see 
%SystemRoot%. You should see the expanded path.

Perhaps something has written your path in the registry as REG_SZ rather

than REG_EXPAND_SZ

Run regedit and take a look at

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session 
Manager\Environment

Or is there some other way expansion could get switched off. Anyone ?

On 26/05/2011 17:03, Gabor Szabo wrote:
> Start/Run: cmd
>
> Microsoft Windows XP [Version 5.1.2600]
> (C) Copyright 1985-2001 Microsoft Corp.
>
> C:\Documents and Settings\Gabor Szabo>cmd /V
> 'cmd' is not recognized as an internal or external command,
> operable program or batch file.
>
> C:\Documents and Settings\Gabor Szabo>set PATH
> Path=C:\Program Files\CollabNet\Subversion
Client;%SystemRoot%\system32;%SystemR
>
oot%;%SystemRoot%\System32\Wbem;C:\strawberry\c\bin;C:\strawberry\perl\s
ite\bin;
>
C:\strawberry\perl\bin;C:\xyz\c\bin;C:\xyz\perl\site\bin;C:\xyz\perl\bin
> PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH
>
> C:\Documents and Settings\Gabor Szabo>
>
> Gabor
>
>
> On Wed, May 25, 2011 at 1:01 AM, Mark Dootson<mark.doot...@znix.com>
wrote:
>> Hi,
>>
>> So if you start cmd from the Start/Run thingy, in the resulting
command
>> window what do
>>
>> cmd /V
>>
>> and
>>
>> set PATH
>>
>> give you ?
>>
>> Regards
>>
>> Mark
>>
>>
>> On 24/05/2011 21:16, Gabor Szabo wrote:
>>>
>>> I already have Alien::wxWidgets 0.4601 installed on this machine
with
>>> perl 5.10.1
>>> I also have Alien::wxWidgets 0.52 installed on the same machine in
5.12.3
>>> (I just keep renaming the c:\strawberry directories to have the
right
>>> perl in them)
>>> Now when I tried to upgrade Alien::wxWidgets on th 5.10.1
>>> installation, staring from a command window
>>> I got this.
>>> Strangely I can run "cmd" from the Start/Run thingy but once the
>>> window is open if I type in cmd or cmd.exe
>>>
>>> I am told:
>>>
>>> 'cmd' is not recognized as an internal or external command,
>>> operable program or batch file.
>>>
>>> I am not sure how I managed to install it on the same machine using
>>> 5.12.3...
>>>
>>>
>>> C:\Documents and Settings\Gabor Szabo>cpan Alien::wxWidgets
>>> Database was generated on Tue, 24 May 2011 18:41:05 GMT
>>> Running install for module 'Alien::wxWidgets'
>>> Running make for M/MD/MDOOTSON/Alien-wxWidgets-0.52.tar.gz
>>> Fetching with LWP:
>>>
>>>
http://cpan.strawberryperl.com/authors/id/M/MD/MDOOTSON/Alien-wxWidgets-
0.52.tar.gz
>>> Checksum for
>>>
C:\strawberry\cpan\sources\authors\id\M\MD\MDOOTSON\Alien-wxWidgets-0.52
.tar.gz
>>> ok
>>>
>>>    CPAN.pm: Going to build M/MD/MDOOTSON/Alien-wxWidgets-0.52.tar.gz
>>>
>>> Creating new 'MYMETA.yml' with configuration results
>>> Creating new 'Build' script for 'Alien-wxWidgets' version '0.52'
>>> Building Alien-wxWidgets
>>> Fetching wxWidgets...
>>> fetching from:
>>> http://prdownloads.sourceforge.net/wxwindows/wxWidgets-2.8.12.tar.gz
>>> Extracting wxWidgets...
>>> Error listing contents of archive
>>>
>>>
'C:\strawberry\cpan\build\Alien-wxWidgets-0.52-0mBDLo\wxWidgets-2.8.12.t
ar.gz':
>>>   at inc/My/Build/Base.pm line 322
>>> Patching wxWidgets...
>>> Applying patch:
>>>
>>>
C:\strawberry\cpan\build\Alien-wxWidgets-0.52-0mBDLo\patches\wxMSW-2.8.0
-setup_u.patch
>>> perl -pe "" --
>>>
C:\strawberry\cpan\build\Alien-wxWidgets-0.52-0mBDLo\patches\wxMSW-2.8.0
-setup_u.patch
>>> | ..\inc\bin\patch.exe -N -p0 -u -b -z .bak
>>> Can't spawn "cmd.exe": No such file or directory at
>>> inc/My/Build/Base.pm line 342.
>>> Error: 65280 at inc/My/Build/Base.pm line 342.
>>>    MDOOTSON/Alien-wxWidgets-0.52.tar.gz
>>>    C:\strawberry\perl\bin\perl.exe ./Build -- NOT OK
>>> Running Build test
>>>    Can't test without successful make
>>> Running Build install
>>>    Make had returned bad status, install seems impossible
>>>
>>>
>>> regards
>>>     Gabor
>>

Reply via email to