Thanks Guys for the info.I'm using the following code snibit:
code:
$ShellDesk = Readvalue('HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders','Desktop')
$AppData = Readvalue('HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders','AppData')
$ShellQuick = "$AppData\Microsoft\Internet Explorer\Quick Launch\"; Lotus Notes
IF EXIST("C:\Notes\notes.exe") = 1
$TargetFilespec="C:\notes\notes.exe"
; Add the Icon to the Desktop
$cmdline = '"$MakeScutPath" /n "$ShellDesk\Lotus Notes" /t "$TargetFilespec" /s "I:\notes\data" /o /r max /k CTRL+ALT+L '
Shell $cmdline
; Add the Icon to the Quick Launch Bar
$cmdline = '"$MakeScutPath" /n "$ShellQuick\Lotus Notes" /t "$TargetFilespec" /s "I:\notes\data" /o /r max '
Shell $cmdline
ELSE
ENDIF
It works under Win9x and Win2K no problem.
I have a few users who think that an application is NOT installed if the shortcut is not on their desktop!!
BTW: I'm using the MakeScut Utility from ScriptLogic to create/edit the ShortCuts. Great little util. I was creating each shortcut manually and then coping from a network share to each user's PC when they logged on. This way is much cleaner and I don't have to worry about what version of Windows the user is running.