I working on a application I need to install to a user's desktop (in XP or 2000). I created a self-extracting executable that extracts the necessary files and then runs the following batch file to copy a shortcut (created previously) to the desktop for all users:
@echo off
copy "Application.lnk" "%allusersprofile%\Desktop\Application.lnk" /y
My only issue appears to be if that user does not have Admin rights to that PC. If the user doesn't have the admin rights, the shortcut will not copy succesfully.
What I would like to do is either copy the icon to the current user's desktop only, or overcome the issue with having to have admin rights.
Any suggestions would be much apprciated.
Thanks!
JD
@echo off
copy "Application.lnk" "%allusersprofile%\Desktop\Application.lnk" /y
My only issue appears to be if that user does not have Admin rights to that PC. If the user doesn't have the admin rights, the shortcut will not copy succesfully.
What I would like to do is either copy the icon to the current user's desktop only, or overcome the issue with having to have admin rights.
Any suggestions would be much apprciated.
Thanks!
JD
