Vista access to users\\public

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

Vista access to users\\public

Postby bradak » Fri Nov 03, 2006 8:10 pm

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:

Postby MichaelNesmith » Sat Nov 04, 2006 3:19 am

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
InstallAware
Home of The Next Generation MSI Installer
Get your free copy today - http://www.installaware.com/

bradak
Posts: 9
Joined: Tue Oct 31, 2006 3:48 pm

Postby bradak » Mon Nov 06, 2006 12:55 pm

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:

Postby MichaelNesmith » Mon Nov 06, 2006 1:01 pm

I had already answered this question, and you repeated the answer :) Use the System->Profiles directory.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

bradak
Posts: 9
Joined: Tue Oct 31, 2006 3:48 pm

Postby bradak » Mon Nov 06, 2006 2:38 pm

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:

Postby MichaelNesmith » Mon Nov 06, 2006 6:14 pm

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

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

bradak
Posts: 9
Joined: Tue Oct 31, 2006 3:48 pm

Postby bradak » Mon Nov 06, 2006 6:26 pm

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:

Postby MichaelNesmith » Mon Nov 06, 2006 6:45 pm

Extract File Path and Set Variable are the commands to use.
Michael Nesmith

InstallAware

Home of The Next Generation MSI Installer

Get your free copy today - http://www.installaware.com/

bradak
Posts: 9
Joined: Tue Oct 31, 2006 3:48 pm

Postby bradak » Mon Nov 06, 2006 7:16 pm

Thanks that did the trick.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 35 guests