Vista access to users\\public

Got a problem you cannot solve? Try here.
Post Reply
bradak
Posts: 9
Joined: Tue Oct 31, 2006 3:48 pm

Vista access to users\\public

Post by bradak »

Is there a system variable to access either
users
users\\public

in Windows Vista? Something like $PROGRAMFILES$, etc?

thanks,
Brad
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

This is returned by Get Folder Location on all platforms (these folders are not new to Vista, but their locations have indeed changed).
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
bradak
Posts: 9
Joined: Tue Oct 31, 2006 3:48 pm

Post by bradak »

Get Folder Location gets the folder location for the following predefined system locations:
System->Application Data Directory
System->CD Burning Directory
System->Desktop Directory
System->Fonts Directory
System->Profiles Directory
System->Program Files Directory
System->Recent Files Directory
System->Send To Directory
System->System Directory
System->Templates Directory
System->Windows Directory

I need to get the path to the new system "Users" or "Users\\Public" folders.

If you don't have something for this, is there a way to find the system drive? Then I could do the following:
$SYSTEMDRIVE$\\Users\\Public
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

I had already answered this question, and you repeated the answer :) Use the System->Profiles directory.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
bradak
Posts: 9
Joined: Tue Oct 31, 2006 3:48 pm

Post by bradak »

System->Profile returns:
"c:\\Users\\<username>" on Vista

I need access to:
"c:\\Users\\Public"
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

bradak wrote:I need to get the path to the new system "Users"...
Which you got.
bradak wrote:...is there a way to find the system drive? Then I could do the following:
$SYSTEMDRIVE$\\Users\\Public
You already have something better.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
bradak
Posts: 9
Joined: Tue Oct 31, 2006 3:48 pm

Post by bradak »

I'm new to IA, so maybe I'm missing something, but
you still haven't shown me how to do this.

I have:
"c:\\Users\\<username>\"

How do I get:
"c:\\Users\\Public"
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Extract File Path and Set Variable are the commands to use.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
bradak
Posts: 9
Joined: Tue Oct 31, 2006 3:48 pm

Post by bradak »

Thanks that did the trick.
Post Reply