PDA

View Full Version : What is the difference between %MyDocumentsFolder% and %LaunchUserMyDocumentsFolder%?


searcher123
10-24-2008, 06:25 PM
Dears,
%LaunchUserMyDocumentsFolder% and %MyDocumentsFolder% variables both have equal values all the time. What is the difference between them?

Thanks

jassing
10-24-2008, 08:30 PM
The help seems pretty clear; but for the help file challenaged:

%LaunchUserMyDocumentsFolder%
The personal (My Documents) folder of the user who launched the setup when Collect launch user information is selected. Usually this is something like "C:\Documents and Settings\YourName\My Documents" on Windows 2000/XP, "C:\My Documents" on Windows 98/ME, and "C:\Users\YourName\Documents" on Windows Vista.

Note: Windows 95 did not have the My Documents folder and this variable will return "C:" if run on such a system.

vs.

%MyDocumentsFolder%
The user's personal (My Documents) folder on their system. Usually this is something like "C:\Documents and Settings\YourName\My Documents" on Windows 2000/XP, "C:\My Documents" on Windows 98/ME, and "C:\Users\YourName\Documents" on Windows Vista.

searcher123
10-25-2008, 03:10 AM
The help seems pretty clear(...)

I read the help before my question, but I didn't understand any difference between them practically!. In practice, both variable have alike values all the time!

Best Regards

pww
10-25-2008, 09:25 AM
usually installing some software requires admin privileges.

But you may be currently logged on as a restricted user, and start the installer by right click -> Run as ...
In that case %LaunchUserMyDocumentsFolder% will be sth like
C:\Documents and Settings\Some_Restricted_User\My Documents

, while %MyDocumentsFolder% will be sth like
C:\Documents and Settings\Some_Admin_User\My Documents

If you start the installer logged as admin, both will be the same.

searcher123
10-25-2008, 03:44 PM
usually installing some software requires admin privileges.

But you may be currently logged on as a restricted user, and start the installer by right click -> Run as ...
In that case %LaunchUserMyDocumentsFolder% will be sth like
C:\Documents and Settings\Some_Restricted_User\My Documents

, while %MyDocumentsFolder% will be sth like
C:\Documents and Settings\Some_Admin_User\My Documents

If you start the installer logged as admin, both will be the same.

Thanks for your reply,
I was thinking so and I was very glad to meet this feature, because I was waiting for that for a long time. But when I check it, I see these two variable have alike values when I ran my test file with Run AS and without Run As under a limited account. :huh

Best Regards

jcuster
10-25-2008, 07:01 PM
The help seems pretty clear; but for the help file challenaged:

This kind of remark is dangerously rude for customers of SUF. I'm sure IR Staff would agree.

jassing
10-25-2008, 09:25 PM
This kind of remark is dangerously rude for customers of SUF. I'm sure IR Staff would agree.

Didn't mean it to be offensive; sorry if it came off that way.

pww
10-26-2008, 03:54 PM
Thanks for your reply,
I was thinking so and I was very glad to meet this feature, because I was waiting for that for a long time. But when I check it, I see these two variable have alike values when I ran my test file with Run AS and without Run As under a limited account.


Do you have 'Collect launch user information' option enabled?
If value is the same, what it is - for the limited account or for an admin account?

searcher123
10-27-2008, 05:47 PM
Do you have 'Collect launch user information' option enabled?

Of course yes.

If value is the same, what it is - for the limited account or for an admin account?

Under Run As condition, "Admin Account" and in normal running, "Limited Account".

pww
10-27-2008, 06:33 PM
well .. hmm ..
Does the installation complete OK if started from a limited account?
Does it actually need admin rights to complete?
Do you have 'Require administartor' enabled ?
On what OS you're testing?

searcher123
10-28-2008, 08:09 AM
well .. hmm ..
Does the installation complete OK if started from a limited account?

I didn't install any file, I used the setup just for testing these two variable and my setup was executed without any error.

Does it actually need admin rights to complete?
Do you have 'Require administartor' enabled ?

I tested many situations, all with the same results!

On what OS you're testing?

WinXP Pro (With and without SP1, SP2 & SP3)

Best Regards