Install uses CURRENT_USER instead of LOCAL_MACHINE for AssemblyFoldersEx

Bug #638289 reported by Donald Mull Jr
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
NUnit V2
Fix Released
Medium
Charlie Poole

Bug Description

When using the .msi installer the registry entry for
SOFTWARE\Microsoft\.NETFramework\v2.0.50727\AssemblyFoldersEx\NUnit 2.5.7.10213 (or whatever version) is placed into HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE. This means that msbuild will not find the nunit.framework.dll when running in a different account than that which installed nunit (like on a build server).

Tags: installer

Related branches

Revision history for this message
Charlie Poole (charlie.poole) wrote :

When running as admin, we need to ask whether to install for all users or just current user.

tags: added: installer
Changed in nunit-3.0:
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Charlie Poole (charlie.poole) wrote :

It looks like this bug was erroneously filed against NUnit 3.0, which doesn't have an installer yet. As a result, it has been passed over for more than a year. I'm changing it to the NUnit V2 project so we can decide how to resolve it.

affects: nunit-3.0 → nunitv2
Revision history for this message
Charlie Poole (charlie.poole) wrote :

This will be fixed in the 2.6 release. To install for all users, you must be an administrator
and use the following command at the comand line:
   msiexec /i <path-to-msi-file> ALLUSERS=1

Changed in nunitv2:
status: Confirmed → In Progress
assignee: nobody → Charlie Poole (charlie.poole)
milestone: none → 2.6.0rc
Changed in nunitv2:
status: In Progress → Fix Committed
Changed in nunitv2:
status: Fix Committed → Fix Released
Revision history for this message
gopal.pagrut@gemalto.com (gopal-pagrut) wrote :

I want the Nunit to be use by different account. So i am using this version of nunit(2.6.0 onward). But when i installed the Nunit(with administrator rights). It put the Nunit under HKEY_CURRENT_USER instead of HKEY_LOCAL_MACHINE.

I tried in both Win7 64bit and window XP 32bit, but its the same.
I tried in command prompt with "msiexec /i <C:\Users\gpagrut\Downloads\NUnit-2.6.0.12035.msi> ALLUSERS=1" , but doesnot work in both Operating system.

Can you please give me some tips to installed or is it the case that this issues is partially fixed?

Thank You.

Regards
Gopal

Revision history for this message
Charlie Poole (charlie.poole) wrote :

The msi should install under HKEY_LOCAL_MACHINE if you are the administrator and if you use the command line option specified. It won't install under HKLM in any other circumstance.

If it's not working, you'll have to wait for NUnit 3.0 to see a fix, since there are no more planned releases of NUnit 2.x after 2.6.2, which is the current release.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.