Audigy Posted July 27, 2008 Posted July 27, 2008 (edited) I need some help with this addon, it installs and uninstalls without a problem, but the shortcuts are missing :crying_anim02: .Can someone point me in the right direct, as to what I am doing wrong. Thanx [Version]Signature="$Windows NT$"[Optional Components]BFNE[DefaultInstall]AddReg =BFNE.AddRegCopyFiles =BFNE.FilesProfileItems=BFNE.AddShortcut,Uninstall.AddShortcut[BFNE]OptionDesc ="BFNE"Tip ="Batch FileName Editor"Modes =0,1,2,3AddReg =BFNE.AddRegCopyFiles =BFNE.FilesProfileItems=BFNE.AddShortcut,Uninstall.AddShortcut[DestinationDirs]BFNE.Files=16422,%Bfedir%[SourceDisksNames.x86]1="Windows XP CD-Rom","BFNE.CAB",,"i386"[SourceDisksFiles]file.chm=1License.txt=1Name1.exe=1Name2.dll=1Readme.txt=1uninstal.exe=1uninstal.ini=1[BFNE.Files]filenameditor.chm,file.chmLicense.txtNameditor.exe,Name1.exeNameditshell.dll,Name2.dllReadme.txtuninstall.exe,uninstal.exeuninstall.ini,uninstal.ini[BFNE.AddShortcut]Name =Batch FileName Editor 4.5CmdLine =16422,%Bfedir%,Nameditor.exeSubDir =%Bfedir% WorkingDir="16422,%Bfedir%"InfoTip =Batch File Rernamer[Uninstall.AddShortcut]Name =UnistallCmdLine =16422,%Bfedir%,uninstall.exe.SubDir =%Bfedir%WorkingDir="16422,%Bfedir%"InfoTip =Uninstall[BFNE.AddReg]REMOVED[Strings]Bfedir=Batch FileName Editor Edited July 27, 2008 by Audigy Quote
LUZR4LIFE Posted July 27, 2008 Posted July 27, 2008 (edited) Remove the " ""16422,%Bfedir%"Name =Batch FileName Editor 4.5CmdLine =16422,%Bfedir%,Nameditor.exeSubDir =%Bfedir%WorkingDir=16422,%Bfedir%InfoTip =Batch File Rernamer Edited July 27, 2008 by LUZR4LIFE Quote
Audigy Posted July 27, 2008 Author Posted July 27, 2008 Thanx for you reply LUZR4LIFE, I have tried removing the "" but it didn't work Quote
LUZR4LIFE Posted July 27, 2008 Posted July 27, 2008 (edited) OK, make a shortcut for that file.Batch FileName Editor 4.5.lnk (something like that)EX.CopyFiles =AddShortcut.Files[SourceDisksFiles]PowerISO.lnk =1[AddShortcut.Files]PowerISO.lnkRemove the other shortcut section you made.I find this way easier. Edited July 27, 2008 by LUZR4LIFE Quote
Jonnyboy Posted July 27, 2008 Posted July 27, 2008 Change:Name =Batch FileName Editor 4.5To:Name ="Batch FileName Editor 4.5",8,23and change:Name =UnistallTo:Name ="Unistall",8,23This should do the trick. Quote
Audigy Posted July 27, 2008 Author Posted July 27, 2008 OK, make a shortcut for that file.Batch FileName Editor 4.5.lnk (something like that)EX.CopyFiles =AddShortcut.Files[SourceDisksFiles]PowerISO.lnk =1[AddShortcut.Files]PowerISO.lnkRemove the other shortcut section you made.I find this way easier.Ok LUZR4LIFE, I will give that try.... Change:Name =Batch FileName Editor 4.5To:Name ="Batch FileName Editor 4.5",8,23and change:Name =UnistallTo:Name ="Unistall",8,23This should do the trick.Ive tried that Jonnyboy, but still no luck. Quote
Jonnyboy Posted July 27, 2008 Posted July 27, 2008 (edited) I think the error is here:Bfedir=Batch FileName EditorShould be:Bfedir="Batch FileName Editor"in addition the other changes in my previous post.When the inf tries to make the shortcut it will silently fail if it can't find the file c:\Program files\Batch FileName Editor\Nameditor.exeBecause of the spaces the inf will not be able to create the shortcut, without wrapping the %Bfedir% in quotes. Edited July 27, 2008 by Jonnyboy Quote
Audigy Posted July 27, 2008 Author Posted July 27, 2008 I have made all the changes you suggested Jonnyboy, but it still doesn't work Updated INF:[Version]Signature="$Windows NT$"[Optional Components]BFNE[DefaultInstall]AddReg =BFNE.AddRegCopyFiles =BFNE.FilesProfileItems=BFNE.AddShortcut,Uninstall.AddShortcut[BFNE]OptionDesc ="BFNE"Tip ="Batch FileName Editor"Modes =0,1,2,3AddReg =BFNE.AddRegCopyFiles =BFNE.FilesProfileItems=BFNE.AddShortcut,Uninstall.AddShortcut[DestinationDirs]BFNE.Files=16422,%Bfedir% [SourceDisksNames.x86]1="Windows XP CD-Rom","BFNE.CAB",,"i386"[SourceDisksFiles]file.chm=1License.txt=1Name1.exe=1Name2.dll=1Readme.txt=1uninstal.exe=1uninstal.ini=1[BFNE.Files]filenameditor.chm,file.chmLicense.txtNameditor.exe,Name1.exeNameditshell.dll,Name2.dllReadme.txtuninstall.exe,uninstal.exeuninstall.ini,uninstal.ini[BFNE.AddShortcut]Name ="Batch FileName Editor 4.5",8,23CmdLine =16422,%Bfedir%,Nameditor.exeSubDir =%Bfedir% WorkingDir=16422,%Bfedir%InfoTip =Batch File Renamer[Uninstall.AddShortcut]Name ="Unistall",8,23CmdLine =16422,%Bfedir%,uninstall.exeSubDir =%Bfedir%WorkingDir=16422,%Bfedir%InfoTip =Uninstall[BFNE.AddReg]REMOVED[Strings]Bfedir="Batch FileName Editor" Quote
LUZR4LIFE Posted July 27, 2008 Posted July 27, 2008 (edited) Can you give me a link for the 4.5 exe, I can not get it to DL? Also, there is a 5.3 out. Edited July 27, 2008 by LUZR4LIFE Quote
Audigy Posted July 27, 2008 Author Posted July 27, 2008 Can you give me a link for the 4.5 exe, I can not get it to DL? Also, there is a 5.3 out.I didnt know there was new version out LUZR4LIFE, but here is version 4.5, hope rapidshare is ok, Batch FileName Editor v4.5! Quote
LUZR4LIFE Posted July 27, 2008 Posted July 27, 2008 (edited) OK, Thanks. Try this. Also why did you change the file names?[BFNE.AddShortcut]Name =Batch FileName EditorCmdLine =16422,%Bfedir%,Nameditor.exeSubDir =Batch FileName Editor 4.5WorkingDir =16422,%Bfedir%InfoTip =Batch File Renamer[Uninstall.AddShortcut]Name =UnistallCmdLine =16422,%Bfedir%,uninstall.exeSubDir =Batch FileName Editor 4.5WorkingDir =16422,%Bfedir%InfoTip =UninstallAlso take a look at this. Batch FileName Editor 4.5Sometimes shortcuts will not work so here is an alternative. I have not tested it yet, I need to setup a XP on VMW. All you need to do is use the modded .inf, add the 2 files to your .cab and arc.Let me know if that worked. Edited July 27, 2008 by LUZR4LIFE Quote
ricktendo Posted July 27, 2008 Posted July 27, 2008 LUZR there is a solution to ProfileItems (shortcuts) with spaces in the EXE name...just use the 8.3 filename exampleChangeCmdLine=16422,SubFolderName,EXE Name.exeToCmdLine=16422,SubFolderName,EXENAM~1.EXEYou can use CMenu if you have it to get the 8.3 filename, just right click on the EXE Name and choose: More Options -> Path To Clipboard -> 8.3 NameBTW you DONT have to change the name of EXE Name.exe in CopyFiles just the shortcut's command line Quote
Audigy Posted July 27, 2008 Author Posted July 27, 2008 OK, Thanks. Try this. Also why did you change the file names?[BFNE.AddShortcut]Name =Batch FileName EditorCmdLine =16422,%Bfedir%,Nameditor.exeSubDir =Batch FileName Editor 4.5WorkingDir =16422,%Bfedir%InfoTip =Batch File Renamer[Uninstall.AddShortcut]Name =UnistallCmdLine =16422,%Bfedir%,uninstall.exeSubDir =Batch FileName Editor 4.5WorkingDir =16422,%Bfedir%InfoTip =UninstallAlso take a look at this. Batch FileName Editor 4.5Sometimes shortcuts will not work so here is an alternative. I have not tested it yet, I need to setup a XP on VMW. All you need to do is use the modded .inf, add the 2 files to your .cab and arc.Let me know if that worked.I was just trying different thinks with the filenames to see if I could get it to work.I have tried your modded .inf & added the .lnk files, but FGCBA gives me an error....Error Msg Quote
Audigy Posted July 27, 2008 Author Posted July 27, 2008 LUZR there is a solution to ProfileItems (shortcuts) with spaces in the EXE name...just use the 8.3 filename exampleChangeCmdLine=16422,SubFolderName,EXE Name.exeToCmdLine=16422,SubFolderName,EXENAM~1.EXEYou can use CMenu if you have it to get the 8.3 filename, just right click on the EXE Name and choose: More Options -> Path To Clipboard -> 8.3 NameBTW you DONT have to change the name of EXE Name.exe in CopyFiles just the shortcut's command lineThanx for the info ricktendo64, you made it all look so easy in your tutorial :worthy: , but its not LUZR4LIFE, I have just created an addon using the new 5.3 version, and the shortcuts work fine with that :g: 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.