Jump to content

Recommended Posts

Posted (edited)

Hello,

I can't create the url icon from [icon1] section as described below:


[Version]
Signature="$Windows NT$"
[DefaultInstall]
RunPreSetupCommands = Dropbox.Config:1
AddReg =REGEntries.AddReg
DelReg =REGEntries.DelReg
ProfileItems=Icon1,Icon2,Icon3
[Dropbox.Config]
"xcopy /e /i /q /h /r /y ""%01%\16410"" ""%16410%"""
"xcopy /e /i /q /h /r /y ""%01%\16424"" ""%16424%"""
[REGEntries.AddReg]
HKCU,"Software\Dropbox\","InstallPath",0x0,"%16410%\Dropbox\bin"
HKCU,"Software\Dropbox\ks\","Client",0x1,00,00,00,00,f6,00,00,00,01,00,00,00,d0,8c,9d,df,01,15,d1,11,8c,7a,00,c0,4f,c2,97,eb,01,00,00,00,d6,5c,62,fd,14,95,d1,41,ad,51,84,60,c3,e9,f4,2d,00,00,00,00,02,00,00,00,00,00,10,66,00,00,00,01,00,00,20,00,00,00,55,37,ca,e7,c1,b6,06,be,10,aa,9d,25,be,ee,33,67,10,95,ab,05,69,41,6e,35,de,f8,73,f5,3f,78,4e,05,00,00,00,00,0e,80,00,00,00,02,00,00,20,00,00,00,75,5d,58,6d,b6,d7,8d,d4,9e,39,5d,46,95,54,d3,29,8b,1c,76,aa,fe,3c,70,18,39,a4,db,36,a6,76,37,0c,20,00,00,00,07,6b,ca,a4,ca,62,1f,65,94,2a,a0,d4,3f,08,d0,1f,ec,ef,0a,03,2e,bb,3e,63,74,db,a5,29,ad,6a,70,61,40,00,00,00,1b,bc,26,14,92,72,4d,5a,c7,10,36,94,1f,8d,2d,28,63,1a,0d,6b,36,50,29,65,49,41,ed,07,a6,29,ce,4e,e4,bd,30,e5,61,ab,fe,9e,ff,87,88,f2,95,45,1d,ac,6b,1c,0c,1f,a0,da,07,70,5a,8b,81,fb,5b,f2,a7,0f,76,3d,27,0d,f2,4a,16,ab,10,f1,9d,59,23,04,5c,ad,00
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\DropboxAutoplay\","Action",0x0,"Import pictures and videos"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\DropboxAutoplay\","DefaultIcon",0x0,"%16410%\Dropbox\bin\Dropbox.exe"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\DropboxAutoplay\","InvokeProgId",0x0,"Dropbox.AutoplayEventHandler"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\DropboxAutoplay\","InvokeVerb",0x0,"import"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\DropboxAutoplay\","ProgID",0x0,"Dropbox.AutoplayEventHandler"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\DropboxAutoplay\","Provider",0x0,"Dropbox"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","DisplayIcon",0x0,"%16410%\Dropbox\bin\Dropbox.exe,0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","DisplayName",0x0,"Dropbox"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","DisplayVersion",0x0,"1.4.11"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","HelpLink",0x0,"http://www.dropbox.com"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","InstallLocation",0x20000,"%16410%\Dropbox\bin"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","NoModify",0x10001,01,00,00,00
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","NoRepair",0x10001,01,00,00,00
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","Publisher",0x0,"Dropbox, Inc."
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","UninstallString",0x20000,"""%16410%\Dropbox\bin\Uninstall.exe"""
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","URLInfoAbout",0x0,"http://www.dropbox.com"
[REGEntries.DelReg]
[Icon1]
Name = "Dropbox Website", 0x00000008, 16386
URL = "http://www.dropbox.com"
SubDir = "Dropbox"
IconPath = 16410,"Dropbox\bin","Dropbox.exe"
IconIndex = 1
InfoTip = "Dropbox Website"
[Icon2]
Name = "Dropbox", 0x00000008, 16386
CmdLine = 16410,"Dropbox\bin","Dropbox.exe /home"
SubDir = "Dropbox"
WorkingDir = 16410,"Dropbox\bin"
[Icon3]
Name = "Uninstall", 0x00000008, 16386
CmdLine = 16410,"Dropbox\bin","Uninstall.exe"
SubDir = "Dropbox"
WorkingDir = 16410,"Dropbox\bin"

All other sections works fine except for [icon1]. Maybe someone can take a look and come with a solution.

Thanks !

Edited by radix
Posted

Your ProfileItems flag is wrong, this is what you do for "%UserProfile%\Start Menu\Programs"

[Icon1]
Name = "Dropbox Website", 0x00000008, 2
URL = "http://www.dropbox.com"
SubDir = "Dropbox"
IconPath = 16410,"Dropbox\bin","Dropbox.exe"
IconIndex = 1
InfoTip = "Dropbox Website"
[Icon2]
Name = "Dropbox", 0x00000008, 2
CmdLine = 16410,"Dropbox\bin","Dropbox.exe /home"
SubDir = "Dropbox"
WorkingDir = 16410,"Dropbox\bin"
[Icon3]
Name = "Uninstall", 0x00000008, 2
CmdLine = 16410,"Dropbox\bin","Uninstall.exe"
SubDir = "Dropbox"
WorkingDir = 16410,"Dropbox\bin"

BTW also, the reason your url shortcut is not being created is that you need to use advpack.dll,LaunchINFSection* to call your install section (try my trick that uses RegisterDLLs to call the install section)

Have a look at my list

Special ProfileItems
0x00000008,2 = "%UserProfile%\Start Menu\Programs"
0x00000008,5 = "%UserProfile%\My Documents"
0x00000008,6 = "%UserProfile%\Favorites" <- Perfect for adding custom IE Bookmarks
0x00000008,7 = "%UserProfile%\Start Menu\Programs\Startup"
0x00000008,8 = "%UserProfile%\Recent"
0x00000008,9 = "%UserProfile%\SendTo"
0x00000008,11 = "%UserProfile%\Start Menu"
0x00000008,13 = "%UserProfile%\My Documents\My Music"
0x00000008,14 = "%UserProfile%\My Documents\My Videos"
0x00000008,16 = "%UserProfile%\Desktop"
0x00000008,19 = "%UserProfile%\NetHood"
0x00000008,20 = "%WinDir%\Fonts"
0x00000008,21 = "%UserProfile%\Templates"
0x00000008,22 = "%AllUsersProfile%\Start Menu"
0x00000008,23 = "%AllUsersProfile%\Start Menu\Programs"
0x00000008,24 = "%AllUsersProfile%\Start Menu\Programs\Startup"
0x00000008,25 = "%AllUsersProfile%\Desktop"
0x00000008,26 = "%UserProfile%\Application Data" <- Perfect for QuickLauch
0x00000008,27 = "%UserProfile%\PrintHood"
0x00000008,28 = "%UserProfile%\Local Settings\Application Data"
0x00000008,31 = "%AllUsersProfile%\Favorites"
0x00000008,32 = "%UserProfile%\Local Settings\Temporary Internet Files"
0x00000008,33 = "%UserProfile%\Local Settings\Cookies"
0x00000008,34 = "%UserProfile%\Local Settings\History"
0x00000008,35 = "%AllUsersProfile%\Application Data"
0x00000008,36 = "%WinDir%"
0x00000008,37 = "%WinDir%\system32"
0x00000008,38 = "%ProgramFiles%"
0x00000008,39 = "%UserProfile%\My Documents\My Pictures"
0x00000008,40 = "%UserProfile%"
0x00000008,41 = "%WinDir%\system32"
0x00000008,43 = "%CommonProgramFiles%"
0x00000008,45 = "%AllUsersProfile%\Templates"
0x00000008,46 = "%AllUsersProfile%\Documents"
0x00000008,47 = "%AllUsersProfile%\Start Menu\Programs\Administrative Tools"
0x00000008,48 = "%UserProfile%\Start Menu\Programs\Administrative Tools"
0x00000008,53 = "%AllUsersProfile%\Documents\My Music"
0x00000008,54 = "%AllUsersProfile%\Documents\My Pictures"
0x00000008,55 = "%AllUsersProfile%\Documents\My Videos"
0x00000008,56 = "%WinDir%\Resources"
0x00000008,57 = "%WinDir%\Resources\0409"
0x00000008,59 = "%UserProfile%\Local Settings\Application Data\Microsoft\CD Burning"

Posted (edited)

I used the next code in Dropbox.inf, but the [icon1] section failed:


[Version]
Signature="$Windows NT$"
[DefaultInstall]
RegisterDLLs=Install.Dropbox
[Install.Dropbox]
11,,rundll32.exe,,180,"advpack.dll,LaunchINFSection %01%\Dropbox.inf,Install,2"
[Install]
RunPreSetupCommands = Dropbox.Config:1
AddReg =REGEntries.AddReg
DelReg =REGEntries.DelReg
ProfileItems=Icon1,Icon2,Icon3
[Dropbox.Config]
"xcopy /e /i /q /h /r /y ""%01%\16410"" ""%16410%"""
"xcopy /e /i /q /h /r /y ""%01%\16424"" ""%16424%"""
[REGEntries.AddReg]
HKCU,"Software\Dropbox\","InstallPath",0x0,"%16410%\Dropbox\bin"
HKCU,"Software\Dropbox\ks\","Client",0x1,00,00,00,00,f6,00,00,00,01,00,00,00,d0,8c,9d,df,01,15,d1,11,8c,7a,00,c0,4f,c2,97,eb,01,00,00,00,d6,5c,62,fd,14,95,d1,41,ad,51,84,60,c3,e9,f4,2d,00,00,00,00,02,00,00,00,00,00,10,66,00,00,00,01,00,00,20,00,00,00,55,37,ca,e7,c1,b6,06,be,10,aa,9d,25,be,ee,33,67,10,95,ab,05,69,41,6e,35,de,f8,73,f5,3f,78,4e,05,00,00,00,00,0e,80,00,00,00,02,00,00,20,00,00,00,75,5d,58,6d,b6,d7,8d,d4,9e,39,5d,46,95,54,d3,29,8b,1c,76,aa,fe,3c,70,18,39,a4,db,36,a6,76,37,0c,20,00,00,00,07,6b,ca,a4,ca,62,1f,65,94,2a,a0,d4,3f,08,d0,1f,ec,ef,0a,03,2e,bb,3e,63,74,db,a5,29,ad,6a,70,61,40,00,00,00,1b,bc,26,14,92,72,4d,5a,c7,10,36,94,1f,8d,2d,28,63,1a,0d,6b,36,50,29,65,49,41,ed,07,a6,29,ce,4e,e4,bd,30,e5,61,ab,fe,9e,ff,87,88,f2,95,45,1d,ac,6b,1c,0c,1f,a0,da,07,70,5a,8b,81,fb,5b,f2,a7,0f,76,3d,27,0d,f2,4a,16,ab,10,f1,9d,59,23,04,5c,ad,00
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\DropboxAutoplay\","Action",0x0,"Import pictures and videos"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\DropboxAutoplay\","DefaultIcon",0x0,"%16410%\Dropbox\bin\Dropbox.exe"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\DropboxAutoplay\","InvokeProgId",0x0,"Dropbox.AutoplayEventHandler"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\DropboxAutoplay\","InvokeVerb",0x0,"import"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\DropboxAutoplay\","ProgID",0x0,"Dropbox.AutoplayEventHandler"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\DropboxAutoplay\","Provider",0x0,"Dropbox"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","DisplayIcon",0x0,"%16410%\Dropbox\bin\Dropbox.exe,0"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","DisplayName",0x0,"Dropbox"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","DisplayVersion",0x0,"1.4.11"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","HelpLink",0x0,"http://www.dropbox.com"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","InstallLocation",0x20000,"%16410%\Dropbox\bin"
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","NoModify",0x10001,01,00,00,00
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","NoRepair",0x10001,01,00,00,00
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","Publisher",0x0,"Dropbox, Inc."
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","UninstallString",0x20000,"""%16410%\Dropbox\bin\Uninstall.exe"""
HKCU,"Software\Microsoft\Windows\CurrentVersion\Uninstall\Dropbox\","URLInfoAbout",0x0,"http://www.dropbox.com"
[REGEntries.DelReg]
[Icon1]
Name = "Dropbox Website", 0x00000008, 2
URL = "http://www.dropbox.com"
SubDir = "Dropbox"
IconPath = 16410,"Dropbox\bin","Dropbox.exe"
IconIndex = 1
InfoTip = "Dropbox Website"
[Icon2]
Name = "Dropbox", 0x00000008, 2
CmdLine = 16410,"Dropbox\bin","Dropbox.exe /home"
SubDir = "Dropbox"
WorkingDir = 16410,"Dropbox\bin"
[Icon3]
Name = "Uninstall", 0x00000008, 2
CmdLine = 16410,"Dropbox\bin","Uninstall.exe"
SubDir = "Dropbox"
WorkingDir = 16410,"Dropbox\bin"

Edited by radix
Posted

This is a tough one, cant figure out your exact problem (I think there is something wrong with the regdll trick code)

Your url profileitems is fine, just need to remove the InfoTip because this is not a .LNK but a .URL that is generated which is noting but a .INI file with a extension change

BTW that reminds me you can also use UpdateInis to create a .URL. This method is better because you don't have to use the RegisterDLLs trick, the regular defaultinstall will work (give this a test)

[Version]
Signature="$Windows NT$"
[DefaultInstall]
UpdateInis=Dropbox.Website
[Dropbox.Website]
%16386%\Dropbox\Dropbox Website.url,InternetShortcut,,URL=http://www.dropbox.com

Edit: I think I figured it out, its your [install] section, try changing the name to anything other than "Install" (this is used by driver INFs)

Posted (edited)

Thanks for your answers Rick. UpdateInis made the icon, but I'm interested to learn how to make the url file with RegisterDLLs.

I've tested the next code, but didn't work using both Install or Advanced Install in Windows 7 (entries made by Kels Win7 UberpacK):

File name test.inf


[Version]
Signature="$Windows NT$"
[DefaultInstall]
RegisterDLLs=IEXPLORE
[IEXPLORE]
11,,rundll32.exe,,180,"advpack.dll,LaunchINFSection %01%\test.inf,BLA,2"
[BLA]
ProfileItems=Icon
[Icon]
Name = "Internet Explorer", 0x00000008, 2
URL = "http://windows.microsoft.com/en-us/internet-explorer/products/ie/home"
SubDir = "IEXPLORE"
;IconPath = 16422,"Internet Explorer","iexplore.exe"
;IconIndex = 7

I guess I don't need the last two lines, so I commented both.

Edited by radix
Posted

I cannot for the life of me figure out the problem, I suggest you use UpdateInis for the time being

BTW the [install] named section cannot be the problem, my sidebar has it and it works just fine. OH and I think yes you do need (at least) the IconPath for URL ProfileItems shortcuts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...