[gps-devel] Re: Install issue with XP Home

SJousseaume@aol.com SJousseaume@aol.com
Sat, 19 Jul 2003 03:10:21 EDT


--part1_a.335b3c30.2c4a48dd_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

I found:
In my default setup of xp, the HOME variable is set to "%USERPROFILE%". I did 
not see this right away because the value shown in the "control panel>system" 
dialogbox is the substitution of %USERPROFILE% (recusive substitution). When 
I hit the edit button for HOME, I see that in reality the value is 
%USERPROFILE%.

"Echo  %HOME%" returns "%USERPROFILE%"

I concluded that GPS looks at HOME and not at USERPROFILE. Gps gets the 
expanded string of HOME but do not does any recusive substitution on this string by 
parsing '%' tokens.

I fixed the problem by setting my HOME to the USERPROFILE value, it works 
now.

It might be a good help to add an INSTALL.txt file in the root of GPS that 
repeats the install procedure for 2000/NT/XP (unzip + setting PATH). One could 
append a remark about this problem at the end of this file while no software 
fix is provided.

I hope this helps,

       Sylvain

> 
> 
> ----------------------------------------------
> ENVIRONMENT:
> ----------------------------------------------
> I run:
> Microsoft Windows XP
> Home Edition
> Version 2002
> Service Pack 1
> 
> The user Owner that I use has administrator rights.
> 
> ----------------------------------------------
> PROBLEM DESCRIPTION
> ----------------------------------------------
> After unzipping the GPS in C:/MyProgramFiles/gps and setting adding the bin 
> in my PATH, I get:
> "Cannot create config directory %USERPROFILE%\.gps
> Exiting ..."
> 
> "echo %USERPROFILE%"  returns:
> "C:\Documents and Settings\Owners" with cmd.exe
> 
> I tried creating myself a ".gps" directory at this location with explorer. 
> Explorer complains
> because of the '.' . I managed to do it with cmd.exe.
> This did not solve my problem, I still get the same message from gps.
> 
> I restarted my computer just in case, I still have the problem.
> 
> ----------------------------------------------
> HINT ?
> ----------------------------------------------
> Assuming I don't have an XP setup problem (my computer just got out of the 
> box),
> could it be that the environment variable do not get properly expanded in XP
> and that %USERPROFILE% is just stuck as is in a system call?
> 
> I can't download the source right now so do not take the following
> too seriously because I am only speculating here:
> if this was the case, you might need to look at 
> GetEnvironmentVariable(Win32.LPCSTR;Win32.LPSTR;Win32.DWORD)
> from win32
> (I am sure you know better about this than I do! Just trying to help!).
> 
> Does anyone has ever had this problem?
> 
> Thanks,
> Regards,
> 
>        Sylvain


--part1_a.335b3c30.2c4a48dd_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<HTML><FONT FACE=3Darial,helvetica><FONT  SIZE=3D2 FAMILY=3D"SANSSERIF" FACE=
=3D"Arial" LANG=3D"1">I found:<BR>
In my default setup of xp, the HOME variable is set to "%USERPROFILE%". I di=
d not see this right away because the value shown in the "control panel&gt;s=
ystem" dialogbox is the substitution of %USERPROFILE% (recusive substitution=
). When I hit the edit button for HOME, I see that in reality the value is %=
USERPROFILE%.<BR>
<BR>
"Echo&nbsp; %HOME%" returns "%USERPROFILE%"<BR>
<BR>
I concluded that GPS looks at HOME and not at USERPROFILE. Gps gets the expa=
nded string of HOME but do not does any recusive substitution on this string=
 by parsing '%' tokens.<BR>
<BR>
I fixed the problem by setting my HOME to the USERPROFILE value, it works no=
w.<BR>
<BR>
It might be a good help to add an INSTALL.txt file in the root of GPS that r=
epeats the install procedure for 2000/NT/XP (unzip + setting PATH). One coul=
d append a remark about this problem at the end of this file while no softwa=
re fix is provided.<BR>
<BR>
I hope this helps,<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sylvain<BR>
<BR>
<BLOCKQUOTE TYPE=3DCITE style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT=
: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px"><BR>
<BR>
----------------------------------------------<BR>
ENVIRONMENT:<BR>
----------------------------------------------<BR>
I run:<BR>
Microsoft Windows XP<BR>
Home Edition<BR>
Version 2002<BR>
Service Pack 1<BR>
<BR>
The user Owner that I use has administrator rights.<BR>
<BR>
----------------------------------------------<BR>
PROBLEM DESCRIPTION<BR>
----------------------------------------------<BR>
After unzipping the GPS in C:/MyProgramFiles/gps and setting adding the bin=20=
in my PATH, I get:<BR>
"Cannot create config directory %USERPROFILE%\.gps<BR>
Exiting ..."<BR>
<BR>
"echo %USERPROFILE%"&nbsp; returns:<BR>
"C:\Documents and Settings\Owners" with cmd.exe<BR>
<BR>
I tried creating myself a ".gps" directory at this location with explorer. E=
xplorer complains<BR>
because of the '.' . I managed to do it with cmd.exe.<BR>
This did not solve my problem, I still get the same message from gps.<BR>
<BR>
I restarted my computer just in case, I still have the problem.<BR>
<BR>
----------------------------------------------<BR>
HINT ?<BR>
----------------------------------------------<BR>
Assuming I don't have an XP setup problem (my computer just got out of the b=
ox),<BR>
could it be that the environment variable do not get properly expanded in XP=
<BR>
and that %USERPROFILE% is just stuck as is in a system call?<BR>
<BR>
I can't download the source right now so do not take the following<BR>
too seriously because I am only speculating here:<BR>
if this was the case, you might need to look at GetEnvironmentVariable(Win32=
.LPCSTR;Win32.LPSTR;Win32.DWORD)<BR>
from win32<BR>
(I am sure you know better about this than I do! Just trying to help!).<BR>
<BR>
Does anyone has ever had this problem?<BR>
<BR>
Thanks,<BR>
Regards,<BR>
<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Sylvain</BLOCKQUOTE><BR>
<BR>
</FONT></HTML>
--part1_a.335b3c30.2c4a48dd_boundary--