Desktop Shortcut problem - Part 2

Got a problem you cannot solve? Try here.
wxperson99
Posts: 63
Joined: Sun Jul 13, 2014 3:28 pm

Desktop Shortcut problem - Part 2

Postby wxperson99 » Sun Apr 03, 2016 11:54 am

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.

wxperson99
Posts: 63
Joined: Sun Jul 13, 2014 3:28 pm

Re: Desktop Shortcut problem - Part 2

Postby wxperson99 » Sun Apr 03, 2016 2:10 pm

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

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Desktop Shortcut problem - Part 2

Postby FrancescoT » Mon Apr 04, 2016 9:36 am

:D
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 160 guests