1st Posted January 16, 2009 Posted January 16, 2009 hai, can help me to create shortcut to lanch inf file in start menuand shortcut to automatic merge the registry filesorry bad english :crying_anim02: Quote
ricktendo Posted January 16, 2009 Posted January 16, 2009 The trick to making shortcuts to files that dont have icons is to use IconPath and IconIndex to tell the shortcut what icon to use, if you dont the shortcut will not be createdHere is an exampleName=Shortcut NameCmdLine=11,,"rundll32 advpack.dll,LaunchINFSection FileName.inf,InfSectionName"WorkingDir=-1IconPath=11,,shell32.dllIconIndex=69; INF icon numberInfoTip=Registry tweaksYou can change the icon to whatever one you like, in my example I am using the number 69 which will add a shortcut with the icon for a INF fileSince this is a regtweak, here is another example using the icons from regedit.exeName=Shortcut NameCmdLine=10,,"regedit.exe /s ""%11%\RegFileName.reg"""WorkingDir=-1IconPath=10,,regedit.exeIconIndex=1; REG_FILE icon numberInfoTip=Registry tweaks Quote
1st Posted January 17, 2009 Author Posted January 17, 2009 thx Rick for reply methis work :thumbsup_anim:you the best :thumbsup_anim: :thumbsup_anim: :thumbsup_anim: Quote
ricktendo Posted January 17, 2009 Posted January 17, 2009 Show me your final shortcut code I would like to see it Quote
1st Posted January 19, 2009 Author Posted January 19, 2009 (edited) [Version]signature="$Windows NT$"[Optional Components]WinKey[DefaultInstall]OptionDesc="Enable/Disable WinKey"Tip ="Enable/Disable WinKey"Modes =0,1,2,3CopyFiles =win_on.files,win_off.filesProfileItems=enable.addshortcut,disablee.addshortcut[WinKey]OptionDesc="Enable/Disable WinKey"Tip ="Enable/Disable WinKey"Modes =0,1,2,3CopyFiles =win_on.files,win_off.filesProfileItems=enable.addshortcut,disablee.addshortcut[sourceDisksNames.x86]1="WinKeys","win.cab",,"i386"[DestinationDirs]win_on.files =11win_off.files=11[sourceDisksFiles]win_on.inf=1win_off.inf=1[win_on.files]win_on.inf[win_off.files]win_off.inf[enable.addshortcut]Name= WinKey onCmdLine=11,,"rundll32 advpack.dll,LaunchINFSection win_on.inf,DefaultInstall"WorkingDir=11subdir=WinKey InfoTip=Enable WinKey[disablee.addshortcut]Name= WinKey offCmdLine=11,,"rundll32 advpack.dll,LaunchINFSection win_off.inf,DefaultInstall"WorkingDir=11subdir=WinKey InfoTip=Disable WinKeyprobem Cmdline were the inf file in Program Files Edited January 19, 2009 by 1st Quote
ricktendo Posted January 19, 2009 Posted January 19, 2009 If you are launching the DefaultInstall section you dont have to add it to the advpack.dll switch, also you are forgetting the IconPath/Index[Version]signature="$Windows NT$"[Optional Components]WinKey[DefaultInstall]OptionDesc="Enable/Disable WinKey"Tip ="Enable/Disable WinKey"Modes =0,1,2,3CopyFiles =win_on.files,win_off.filesProfileItems=enable.addshortcut,disablee.addshortcut[WinKey]OptionDesc="Enable/Disable WinKey"Tip ="Enable/Disable WinKey"Modes =0,1,2,3CopyFiles =win_on.files,win_off.filesProfileItems=enable.addshortcut,disablee.addshortcut[SourceDisksNames.x86]1="WinKeys","win.cab",,"i386"[DestinationDirs]win_on.files =11win_off.files=11[SourceDisksFiles]win_on.inf=1win_off.inf=1[win_on.files]win_on.inf[win_off.files]win_off.inf[enable.addshortcut]Name= WinKey onCmdLine=11,,"rundll32 advpack.dll,LaunchINFSection %11%\win_on.inf"WorkingDir=11subdir=WinKeyInfoTip=Enable WinKeyIconPath=??IconIndex=??[disablee.addshortcut]Name= WinKey offCmdLine=11,,"rundll32 advpack.dll,LaunchINFSection %11%\win_off.inf"WorkingDir=11subdir=WinKeyInfoTip=Disable WinKeyIconPath=??IconIndex=?? 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.