Desktop Shortcut problem
Posted: Sun Mar 13, 2016 11:17 am
HI... I will try to keep this succinct as possible.
I have users who had installed a prior version of my application with WISE.
I have an installation which will update their system now using IA.
When I create shortcuts (hoping to duplicate what they already have for uninstall purposes) I end up with a shortcut.lnk in both the users desktop and the public desktop... so it appears I have 2 sets of the same desktop shortcuts.
Wise created the original USER desktop shortcuts and Installaware creates the PUBLIC ones.
I figure I have 2 options but for now want to examine #2.
1. Delete the user desktop shortcuts during the IA install.
or
2. Change the IA $desktopdir$ to the users desktop location. Right now IA pointing to the public desktop.
If I choose to do #2.... HOW DO I GET THE DESKTOPDIR variable to show the users desktop location??
The code I have currently have in the IA routine related to DESKTOPDIR are shown below (both copy text and IA copy)
I am still new to IA and could really use some help.
Thanks,
George
*** Code below
Get Folder Location System->Desktop Directory into DESKTOPDIR (get for ALL users is NOT checked)
.
.
Read Registry Key HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Desktop into DESKTOPDIR
.
.
Create Shortcut $DESKTOPDIR$\Hurrtrak EMPro to $TARGETDIR$\hurrtrak.exe
OR
~InstallAware Clipboard Data~
~Get Folder Location~
~{CCEB9F18-4EF5-410E-B3FB-6DB2584B2AA6}~
~DESKTOPDIR~
~17~
~FALSE~
~InstallAware Clipboard Data~
~Read Registry~
~{0874967A-C26E-4090-A5B3-849D1667A245}~
~DESKTOPDIR~
~1~
~Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders~
~Desktop~
~InstallAware Clipboard Data~
~Create Shortcut~
~{A0B5DE4B-41B1-4A5D-8CA6-487859978166}~
~$TARGETDIR$\hurrtrak.exe|FALSE~
~Hurrtrak EMPro~
~$DESKTOPDIR$|FALSE~
~~
~~
~|FALSE~
~|FALSE~
~0|~
~0|~
I have users who had installed a prior version of my application with WISE.
I have an installation which will update their system now using IA.
When I create shortcuts (hoping to duplicate what they already have for uninstall purposes) I end up with a shortcut.lnk in both the users desktop and the public desktop... so it appears I have 2 sets of the same desktop shortcuts.
Wise created the original USER desktop shortcuts and Installaware creates the PUBLIC ones.
I figure I have 2 options but for now want to examine #2.
1. Delete the user desktop shortcuts during the IA install.
or
2. Change the IA $desktopdir$ to the users desktop location. Right now IA pointing to the public desktop.
If I choose to do #2.... HOW DO I GET THE DESKTOPDIR variable to show the users desktop location??
The code I have currently have in the IA routine related to DESKTOPDIR are shown below (both copy text and IA copy)
I am still new to IA and could really use some help.
Thanks,
George
*** Code below
Get Folder Location System->Desktop Directory into DESKTOPDIR (get for ALL users is NOT checked)
.
.
Read Registry Key HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Desktop into DESKTOPDIR
.
.
Create Shortcut $DESKTOPDIR$\Hurrtrak EMPro to $TARGETDIR$\hurrtrak.exe
OR
~InstallAware Clipboard Data~
~Get Folder Location~
~{CCEB9F18-4EF5-410E-B3FB-6DB2584B2AA6}~
~DESKTOPDIR~
~17~
~FALSE~
~InstallAware Clipboard Data~
~Read Registry~
~{0874967A-C26E-4090-A5B3-849D1667A245}~
~DESKTOPDIR~
~1~
~Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders~
~Desktop~
~InstallAware Clipboard Data~
~Create Shortcut~
~{A0B5DE4B-41B1-4A5D-8CA6-487859978166}~
~$TARGETDIR$\hurrtrak.exe|FALSE~
~Hurrtrak EMPro~
~$DESKTOPDIR$|FALSE~
~~
~~
~|FALSE~
~|FALSE~
~0|~
~0|~