bober Posted October 14, 2007 Posted October 14, 2007 icant get a desktop shortcut to be deleted via [uninstall] in a inf ,maybe someone can give me an example..thx Quote
ricktendo Posted October 14, 2007 Posted October 14, 2007 To add a shortcut to the desktop using ProfileItems try something like this (notice I leave out the SubDir=)[Desktop.AddShortcut]Name = Shortcut Name,0x00000008,25CmdLine = 16422,%PROG_DIR%,Program.exeWorkingDir = 16422,%PROG_DIR%To delete it useName = Shortcut Name,0x0000000A,25I just change the flag from 0x00000008 to 0x0000000A (,25 is the desktop number)Here are some other custom flags I discovered0x00000008,2 = %UserProfile%\Start Menu\Programs0x00000008,5 = %UserProfile%\My Documents0x00000008,6 = %UserProfile%\Favorites <- Perfect for adding custom IE Bookmarks0x00000008,7 = %UserProfile%\Start Menu\Programs\Startup0x00000008,8 = %UserProfile%\Recent0x00000008,9 = %UserProfile%\SendTo0x00000008,11 = %UserProfile%\Start Menu0x00000008,13 = %UsersProfile%\My Documents\My Music0x00000008,14 = %UsersProfile%\My Documents\My Videos0x00000008,16 = %UsersProfile%\Desktop0x00000008,19 = %UsersProfile%\NetHood0x00000008,20 = %WinDir%\Fonts0x00000008,21 = %UserProfile%\Templates0x00000008,22 = %AllUsersProfile%\Start Menu0x00000008,23 = %AllUsersProfile%\Start Menu\Programs0x00000008,24 = %AllUsersProfile%\Start Menu\Programs\Startup0x00000008,25 = %AllUsersProfile%\Desktop0x00000008,26 = %UserProfile%\Application Data <- Perfect for QuickLauch0x00000008,27 = %UserProfile%\PrintHood0x00000008,28 = %UserProfile%\Local Settings\Application Data0x00000008,31 = %AllUsersProfile%\Favorites <- More IE Bookmarks0x00000008,32 = %UserProfile%\Local Settings\Temporary Internet Files0x00000008,33 = %UserProfile%\Local Settings\Cookies0x00000008,34 = %UserProfile%\Local Settings\History0x00000008,35 = %AllUsersProfile%\Application Data0x00000008,36 = %WinDir%0x00000008,37 = %WinDir%\system320x00000008,38 = %ProgramFiles%0x00000008,39 = %UserProfile%\My Documents\My Pictures0x00000008,40 = %UserProfile%0x00000008,41 = %WinDir%\system320x00000008,43 = %CommonProgramFiles%0x00000008,45 = %AllUsersProfile%\Templates0x00000008,46 = %AllUsersProfile%\Documents0x00000008,47 = %AllUsersProfile%\Start Menu\Programs\Administrative Tools0x00000008,48 = %UserProfile%\Start Menu\Programs\Administrative Tools0x00000008,53 = %AllUsersProfile%\Documents\My Music0x00000008,54 = %AllUsersProfile%\Documents\My Pictures0x00000008,55 = %AllUsersProfile%\Documents\My Videos0x00000008,56 = %ResourceDir%0x00000008,57 = %ResourceDir%4090x00000008,59 = %UserProfile%\Local Settings\Application Data\Microsoft\CD Burning Quote
bober Posted October 14, 2007 Author Posted October 14, 2007 thx dude,thta did the trick,lol **** flags Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.