Page 1 of 1

Desktop Shortcut problem - Part 2

Posted: Sun Apr 03, 2016 11:54 am
by wxperson99
I am going a bit wacky here.

I am trying to create an install for a single user.

I have a variable DTOP set to the users Desktop

Get Folder Location System->Desktop Directory into DTOP

~InstallAware Clipboard Data~
~Get Folder Location~
~{CCEB9F18-4EF5-410E-B3FB-6DB2584B2AA6}~
~DTOP~
~17~
~FALSE~

When I go create a shortcut using the following

Create Shortcut $DTOP$\Hurrtrak EMPro to $TARGETDIR$\hurrtrak.exe

~InstallAware Clipboard Data~
~Create Shortcut~
~{A0B5DE4B-41B1-4A5D-8CA6-487859978166}~
~$TARGETDIR$\hurrtrak.exe|FALSE~
~Hurrtrak EMPro~
~$DTOP$|FALSE~
~~
~~
~|FALSE~
~|FALSE~
~0|~
~0|~

It is installing to the public desktop folder.

Using display message I am confirming that the DTOP variable is set to C:\users\george\desktop

But the shortcut ends up at c:\users\public\desktop

How can this happen when I never set DTOP to the public desktop location?

Help is definitely needed here.

Thanks,

George

PS.. I chose DTOP after trying the normal variable of DESKTOP to make sure it was not being set somewhere else.

Re: Desktop Shortcut problem - Part 2

Posted: Sun Apr 03, 2016 2:10 pm
by wxperson99
OK.. I think I found the problem.

I did not fully understand that the ALLUSERS variable had the power that it does.

Originally I did not use that variable.. just used the following command
"Get Folder Location System->Desktop Directory into DESKTOPDIR"

Apparently the ALLUSERS variable does more than it would appear on the surface. When using the following command... everything seems to work out OK.
if Variable ALLUSERS Equals TRUE
Get Common Folder Location System->Desktop Directory into DESKTOPDIR
else
Get Folder Location System->Desktop Directory into DESKTOPDIR
end

I set the ALLUSERS var to FALSE and it went to the local directories.. when I set it to true to went to the public folders (all users).... without changing any other part of my code.

I still dont get it entirely but am past this issue for now... Some day I will try to understand how it all works.

George

Re: Desktop Shortcut problem - Part 2

Posted: Mon Apr 04, 2016 9:36 am
by FrancescoT
:D