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.
Desktop Shortcut problem - Part 2
-
- Posts: 63
- Joined: Sun Jul 13, 2014 3:28 pm
Re: Desktop Shortcut problem - Part 2
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
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
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Desktop Shortcut problem - Part 2

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
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
Who is online
Users browsing this forum: No registered users and 137 guests