Determine Default User folder path

Got a problem you cannot solve? Try here.
Post Reply
gsaunders
Posts: 81
Joined: Mon Aug 16, 2010 2:37 pm

Determine Default User folder path

Post by gsaunders »

Is there a way to determine the default user path from within InstallAware script?

I am now familiar with any knownfolderid's that reference this and didn't know if anyone knows how to determine this.

Thanks,

Greg
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Determine Default User folder path

Post by giaviv »

Hi,

What do you mean exactly by the default user's path?
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
gsaunders
Posts: 81
Joined: Mon Aug 16, 2010 2:37 pm

Re: Determine Default User folder path

Post by gsaunders »

giaviv wrote:Hi,

What do you mean exactly by the default user's path?
The default user profile path.

Normally they would be:
(On XP: C:\Documents and Settings\Default User )
(On Win7: C:\Users\Default )

Greg
giaviv
Posts: 2039
Joined: Fri Dec 17, 2010 1:39 pm

Re: Determine Default User folder path

Post by giaviv »

Greg,

I guess a way to do it would be to run cmd.exe as the default user and then echo the environment variable.
Aviv Giladi
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Product Guides - http://www.installaware.com/publication ... guides.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Post Reply