DESKTOPDIR for ALLUSERS?

Got a problem you cannot solve? Try here.
Post Reply
JeffTucker
Posts: 62
Joined: Thu Mar 19, 2009 11:07 am
Contact:

DESKTOPDIR for ALLUSERS?

Post by JeffTucker »

I'm installing on an XP Pro machine, and sitting in the debugger I see this sequence.
Set Variable ALLUSERS to TRUE
...
Get Folder Location System->Desktop Directory into DESKTOPDIR

Inspection of DESKTOPDIR shows "c:\\Documents and Settings\\qaadamin01\\Desktop"
Shouldn't this be for All Users? Is there a fix/work around for this anomaly?
Fiddling with technology
MichaelNesmith
Posts: 3452
Joined: Thu Dec 22, 2005 7:17 pm
Contact:

Post by MichaelNesmith »

Not all system variables have a value for all users. The all users flag is effective only when applicable.
Michael Nesmith
Install[b]Aware[/b]
[i]Home of The Next Generation MSI Installer[/i]
Get your free copy today - http://www.installaware.com/
JeffTucker
Posts: 62
Joined: Thu Mar 19, 2009 11:07 am
Contact:

I don't understand

Post by JeffTucker »

From the documentation I understand that setting ALLUSERS to true, and querying the DESKTOPDIR variable should result in a directory like: c:\\documents and settings\\All Users\\Desktop. In this case certainly (XP Pro) such a directory does exist - I don't give the user the option to install only on one user's desktop.
I'm resorting to:
Set Persistent Variable ALLUSERS to TRUE

Get Exact OS Level into OperatingSystem
Get Folder Location System->Desktop Directory into DESKTOPDIR
if Variable DESKTOPDIR not Contains All Users
if Variable OperatingSystem Equals VISTA
Set Persistent Variable DESKTOPDIR to C:\\Users\\All Users\\Desktop
else
Set Persistent Variable DESKTOPDIR to C:\\Documents and Settings\\All Users\\Desktop
end
end
Fiddling with technology
JeffTucker
Posts: 62
Joined: Thu Mar 19, 2009 11:07 am
Contact:

Found the error

Post by JeffTucker »

There is a check box in the call to Get Folder Location System->Desktop Directory into DESKTOPDIR "For all users". It was not checked.
Fiddling with technology
Post Reply