PDA

View Full Version : How to create shortcut on desktop FOR ALL USERS ??



krishnaa
06-08-2004, 09:09 AM
Hello,

I have specified 2 shotcuts in installshield designer , but I cant see them when I am logged in as diff user that installing user.


How can I tell installshield to create desktop shortcuts for all users on all operating systems ??

Mark at IS
06-08-2004, 02:42 PM
To get the location of the common desktop folder , you can use InstallScript code like the following:

RegDBSetDefaultRoot ( HKEY_LOCAL_MACHINE );
RegDBGetKeyValueEx ( "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\Shell Folders", "Common Desktop", nvType, svCommonDesktopFolder, nvSize );

Then you can call AddFolderIcon to create a shortcut.