Jump to content

Featured Replies

Posted

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 by Audigy

Remove the " "

"16422,%Bfedir%"

Name =Batch FileName Editor 4.5CmdLine =16422,%Bfedir%,Nameditor.exeSubDir =%Bfedir%WorkingDir=16422,%Bfedir%InfoTip =Batch File Rernamer

Edited by LUZR4LIFE

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.lnk

Remove the other shortcut section you made.

I find this way easier.

Edited by LUZR4LIFE

Change:

Name	  =Batch FileName Editor 4.5

To:

Name	  ="Batch FileName Editor 4.5",8,23

and change:

Name	  =Unistall

To:

Name	  ="Unistall",8,23

This should do the trick.

  • Author
  LUZR4LIFE said:
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.lnk

Remove the other shortcut section you made.

I find this way easier.

Ok LUZR4LIFE, I will give that try.... ;)

  Jonnyboy said:
Change:

Name	  =Batch FileName Editor 4.5

To:

Name	  ="Batch FileName Editor 4.5",8,23

and change:

Name	  =Unistall

To:

Name	  ="Unistall",8,23

This should do the trick.

Ive tried that Jonnyboy, but still no luck. :(

I think the error is here:

Bfedir=Batch FileName Editor

Should 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.exe

Because of the spaces the inf will not be able to create the shortcut, without wrapping the %Bfedir% in quotes.

Edited by Jonnyboy

  • Author

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"

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       =Uninstall

Also take a look at this. Batch FileName Editor 4.5

Sometimes 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 by LUZR4LIFE

LUZR there is a solution to ProfileItems (shortcuts) with spaces in the EXE name...just use the 8.3 filename example

Change

CmdLine=16422,SubFolderName,EXE Name.exe

To

CmdLine=16422,SubFolderName,EXENAM~1.EXE

You 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 Name

BTW you DONT have to change the name of EXE Name.exe in CopyFiles just the shortcut's command line

  • Author
  LUZR4LIFE said:
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       =Uninstall

Also take a look at this. Batch FileName Editor 4.5

Sometimes 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

  • Author
  ricktendo64 said:
LUZR there is a solution to ProfileItems (shortcuts) with spaces in the EXE name...just use the 8.3 filename example

Change

CmdLine=16422,SubFolderName,EXE Name.exe

To

CmdLine=16422,SubFolderName,EXENAM~1.EXE

You 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 Name

BTW you DONT have to change the name of EXE Name.exe in CopyFiles just the shortcut's command line

Thanx for the info ricktendo64, you made it all look so easy in your tutorial :worthy: , but its not :D:D

LUZR4LIFE, I have just created an addon using the new 5.3 version, and the shortcuts work fine with that :g:

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...