Bzr not installed into path via windows installer

Bug #139722 reported by Jonathan Jesse on 2007-09-15
2
Affects Status Importance Assigned to Milestone
Bazaar
Undecided
Unassigned

Bug Description

Don't remember the exact option, but I thought there was one to install bzr to the path. Seems silly that it doesn't install to the path. When I run the Start Bzr in the cmd window it only works for the c:\programs file\bazaar folder, when I have my bzr branches in e:\documentation

Jonathan

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jonathan Jesse пишет:
> Don't remember the exact option, but I thought there was one to install
> bzr to the path. Seems silly that it doesn't install to the path. When
> I run the Start Bzr in the cmd window it only works for the c:\programs
> file\bazaar folder, when I have my bzr branches in e:\documentation

By default, standalone installer add directory where bzr.exe installed
to environment variable PATH. If you unchecked this option during install
then it's not try to change environment variables.

Also, if you install Bazaar in non-admin mode, installer unable to change
global PATH environment variable, and only change settings for current user.
So, if you then login as different user you don;t have Bazaar in your PATH.

Can you show content of your PATH variable?
Start -> Run -> type 'cmd' and hit Enter,
then type 'PATH' in command shell window and hit Enter.
Select text in command shell window with mouse and hit Enter. Text will be copied
to clipboard. Then paste this text when you'll answer for this bug.

Can you say you're installing Bazaar in admin mode or not?
Can you install Bazaar again with option
"Add C:\Program Files\Bazaar directory to PATH environment variable"
turned on (this option appear on 6th step of installer wizard)?

 status incomplete

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG7BEKzYr338mxwCURApM8AJ9/oO1gHQ9TSwBzEKTnu+Q58d4hRgCfZ4cx
ebef476yx45jVUyl+H7xotY=
=lfKC
-----END PGP SIGNATURE-----

Changed in bzr:
status: New → Incomplete
Jonathan Jesse (jjesse) wrote :

In answer to your questions:

1. Yes I installed as an admin on my Windows XP Pro
2. I did not uncheck the option during the installation

Downloaded the standalone installer for Windows 0.90

C:\Documents and Settings\Jonathan>path
PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Al
tiris\Software Virtualization Agent\

C:\Documents and Settings\Jonathan>bzr
'bzr' is not recognized as an internal or external command,
operable program or batch file.

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jonathan Jesse пишет:
> In answer to your questions:
>
> 1. Yes I installed as an admin on my Windows XP Pro
> 2. I did not uncheck the option during the installation
>
> Downloaded the standalone installer for Windows 0.90
>
> C:\Documents and Settings\Jonathan>path
> PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Al
> tiris\Software Virtualization Agent\
>
> C:\Documents and Settings\Jonathan>bzr
> 'bzr' is not recognized as an internal or external command,
> operable program or batch file.

Weird. It's work for me all the time since bzr 0.8.
What is version of your Windows? I works with win2k, winxp-home and win98,
and it works for me on all these platforms. I just check on my
laptop with winxp-home, and users w/o admin rights indeed have Bazaar
in their PATH.

Can you check this behavior with 0.91rc2?

Can you log on as admin and check PATH environment variable again?
Can you open cmd shell window, then cd to C:\Program Files\Bazaar
and run command:

bzr_postinstall --add-path

and show output of this command?

If this command ran successfull then you should see
C:\Program Files\Bazaar in PATH, but you need to reboot
your machine first, or right-click My Computer, select Properties,
click on Advanced tab, then click Environment variables Button.
In bottom half of window you should see global environment variables.
Double-click on line with Path and check value of this variable.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG7RaozYr338mxwCURApSUAJ9FogkgEmK2MJmNrEjheaGKF70DnQCeNZAA
OanVYWnA9xOjYpj5N4mpghk=
=WmzW
-----END PGP SIGNATURE-----

Jonathan Jesse (jjesse) wrote :

Sure I can try the .01rc2 version as well. I double checked the path of my windows XP pro box signed in as an admin and still does not have bzr in the path.
After running bzr_postinstall -- add-path I get **** Bzr already in PATH
but still unable to use bzr from any other directory then c:\program files\bazaar.

I'll update the bug when I get a chance to try out the next version.

Thanks for the quick responses,

Jonathan

Alexander Belchenko (bialix) wrote :

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Jonathan Jesse пишет:
> Sure I can try the .01rc2 version as well. I double checked the path of my windows XP pro box signed in as an admin and still does not have bzr in the path.
> After running bzr_postinstall -- add-path I get **** Bzr already in PATH
> but still unable to use bzr from any other directory then c:\program files\bazaar.

If program say that 'Bzr already in PATH' then corresponding directory was successfully
added to registry during installation of Bazaar. It seems that something wrong with
your machine.

You can check value of PATH as I described in my previous mail:
My Computer -> Properties -> Advanced -> Environment variables -> System variables -> Path
or you can look at registry key:
HKLM\System\CurrentControlSet\Control\Session Manager\Environment
and inspect variable 'Path'.

I bet C:\Program Files\Bazaar should be there.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG7j6zzYr338mxwCURAgQpAJ9m2mA9QyoIH7MfUrJrbWfhyot//wCePOEU
FN0aVIMki+Ci0q3yp7eIDFA=
=m/dE
-----END PGP SIGNATURE-----

Jonathan Jesse (jjesse) wrote :

Marking this bug as invalid. I was using Altiris SVS (http://www.altiris.com/Products/SoftwareVirtualizationSolution.aspx) to install the application virtually. SVS currently has a problem reconginzing a difference between HKLM and HKEY_CUREENT_USER in changes to the path. Once I installed bzr in a non-virtual application it works fine.
Sorry about this,

Jonathan

Changed in bzr:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers