Jump to content
Audigy

Need help with first addon

Recommended Posts

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.AddReg
CopyFiles =BFNE.Files
ProfileItems=BFNE.AddShortcut,Uninstall.AddShortcut

[BFNE]
OptionDesc ="BFNE"
Tip ="Batch FileName Editor"
Modes =0,1,2,3
AddReg =BFNE.AddReg
CopyFiles =BFNE.Files
ProfileItems=BFNE.AddShortcut,Uninstall.AddShortcut

[DestinationDirs]
BFNE.Files=16422,%Bfedir%


[SourceDisksNames.x86]
1="Windows XP CD-Rom","BFNE.CAB",,"i386"

[SourceDisksFiles]
file.chm=1
License.txt=1
Name1.exe=1
Name2.dll=1
Readme.txt=1
uninstal.exe=1
uninstal.ini=1

[BFNE.Files]
filenameditor.chm,file.chm
License.txt
Nameditor.exe,Name1.exe
Nameditshell.dll,Name2.dll
Readme.txt
uninstall.exe,uninstal.exe
uninstall.ini,uninstal.ini

[BFNE.AddShortcut]
Name =Batch FileName Editor 4.5
CmdLine =16422,%Bfedir%,Nameditor.exe
SubDir =%Bfedir%
WorkingDir="16422,%Bfedir%"
InfoTip =Batch File Rernamer

[Uninstall.AddShortcut]
Name =Unistall
CmdLine =16422,%Bfedir%,uninstall.exe.
SubDir =%Bfedir%
WorkingDir="16422,%Bfedir%"
InfoTip =Uninstall

[BFNE.AddReg]
REMOVED

[Strings]
Bfedir=Batch FileName Editor

Edited by Audigy

Share this post


Link to post
Share on other sites

Remove the " "

"16422,%Bfedir%"

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

Edited by LUZR4LIFE

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites
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.... ;)

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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

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.AddReg
CopyFiles =BFNE.Files
ProfileItems=BFNE.AddShortcut,Uninstall.AddShortcut

[BFNE]
OptionDesc ="BFNE"
Tip ="Batch FileName Editor"
Modes =0,1,2,3
AddReg =BFNE.AddReg
CopyFiles =BFNE.Files
ProfileItems=BFNE.AddShortcut,Uninstall.AddShortcut

[DestinationDirs]
BFNE.Files=16422,%Bfedir%

[SourceDisksNames.x86]
1="Windows XP CD-Rom","BFNE.CAB",,"i386"

[SourceDisksFiles]
file.chm=1
License.txt=1
Name1.exe=1
Name2.dll=1
Readme.txt=1
uninstal.exe=1
uninstal.ini=1

[BFNE.Files]
filenameditor.chm,file.chm
License.txt
Nameditor.exe,Name1.exe
Nameditshell.dll,Name2.dll
Readme.txt
uninstall.exe,uninstal.exe
uninstall.ini,uninstal.ini

[BFNE.AddShortcut]
Name ="Batch FileName Editor 4.5",8,23
CmdLine =16422,%Bfedir%,Nameditor.exe
SubDir =%Bfedir%
WorkingDir=16422,%Bfedir%
InfoTip =Batch File Renamer

[Uninstall.AddShortcut]
Name ="Unistall",8,23
CmdLine =16422,%Bfedir%,uninstall.exe
SubDir =%Bfedir%
WorkingDir=16422,%Bfedir%
InfoTip =Uninstall

[BFNE.AddReg]
REMOVED

[Strings]
Bfedir="Batch FileName Editor"

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites

OK, Thanks. Try this. Also why did you change the file names?

[BFNE.AddShortcut]
Name =Batch FileName Editor
CmdLine =16422,%Bfedir%,Nameditor.exe
SubDir =Batch FileName Editor 4.5
WorkingDir =16422,%Bfedir%
InfoTip =Batch File Renamer

[Uninstall.AddShortcut]
Name =Unistall
CmdLine =16422,%Bfedir%,uninstall.exe
SubDir =Batch FileName Editor 4.5
WorkingDir =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

Share this post


Link to post
Share on other sites

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

Share this post


Link to post
Share on other sites
OK, Thanks. Try this. Also why did you change the file names?

[BFNE.AddShortcut]
Name =Batch FileName Editor
CmdLine =16422,%Bfedir%,Nameditor.exe
SubDir =Batch FileName Editor 4.5
WorkingDir =16422,%Bfedir%
InfoTip =Batch File Renamer

[Uninstall.AddShortcut]
Name =Unistall
CmdLine =16422,%Bfedir%,uninstall.exe
SubDir =Batch FileName Editor 4.5
WorkingDir =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

Share this post


Link to post
Share on other sites
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:

Share this post


Link to post
Share on other sites

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