kalverson
27th September 2010 13:00 UTC
user profile folder (not the installer)
Just checking if someone has something here to make life easier. I have an install that creates a user profile for running a postgresql database. On the uninstall, I delete the user, but the profile folder is currently left behind. Is there anything available that will return just the profile folder path without the user attached so I can create and add a remove on the uninstall for the user folder?
Animaether
27th September 2010 13:46 UTC
you mean a Windows user profile?
If so.. I'm not 100% sure if this always applies ..wouldn't the parent folder of the current profile be applicable?
"Profiles folder: $0\"
SectionEnd
>
kalverson
27th September 2010 15:52 UTC
Quote:
Thanks, that worked perfectly. The GetParent saved me the hassel of writting that part myself.
Originally Posted by Animaether (Post 2702564) you mean a Windows user profile?
If so.. I'm not 100% sure if this always applies ..wouldn't the parent folder of the current profile be applicable?
"filefunc.nsh"
>OutFile "$%temp%\temp.exe"
>ShowInstDetails show
Section
${GetParent} "$PROFILE" $0
DetailPrint "Profiles folder: $0\"
SectionEnd
>
|
Animaether
27th September 2010 16:49 UTC
yeah, there's tons of goodies in the headers that ship with NSIS - I recommed reading through the docs in some idle time.. even if nothing in there helps you immediately, it can save you in the future (remembering that a function that might help you is in those headers). Ditto the wiki, but start with the docs as several wiki pages are deprecated in favor of the headers that ship with NSIS :)