07-11-2007 05:01 PM
07-12-2007 02:01 AM
07-13-2007 08:53 AM
07-13-2007 10:34 AM
07-13-2007 04:52 PM
07-14-2007 01:59 AM
07-16-2007 02:17 AM
07-16-2007 11:21 AM
07-16-2007 04:30 PM
Hi Paul,
The issue is actually with how Windows Vista and the UAC works. The issue
revolves around the fact that when you log in as an administrator, you are
actually running with standard user privileges. This means that when you
open the command prompt, you can only perform actions that are permitted by
standard users (i.e. you cannot write to the registry for example). However,
you can enter the "Admin Approval Mode" by right-clicking on the
command prompt and selecting "Run as Administrator" to elevate
yourself to have administrator privileges. This is all discussed in great
detail in several Microsoft documents include here, here
and here.
This is important to us because the National Instruments shared directory path
is stored in a registry key. So if you try and run the MSI from the command
prompt, it will install the program you created but it will not create any
registry entries. This is because you are considered a standard user. However,
as you mentioned if you right-click the command prompt and run as an administrator,
the registry entries are created and everything works.
So the workarounds to this are either
1) Enter the "Admin Approval Mode" for the command prompt
2) Run the setup.exe associated with the MSI instead as it forces a prompt for
elevation.
Hope this helps!
Best Regards,
07-17-2007 02:15 AM