Welcome, Guest
Username Password: Remember me
  • Page:
  • 1

TOPIC: Duplicate file names

Duplicate file names 4 years, 11 months ago #152

  • Antzzz
  • OFFLINE
  • Fresh Boarder
  • Karma: 2
Hi Nick, another small problem - though not sure if this one is more a limitation of Cabwiz than your app.

I have the same file which I want to install to 2 different locations in the PPC, and each location has a different target filename. So since the installation file explorer only allows 1 source/target filename I created 2 entries in the explorer.

But then when building the installation it failed with a duplicate file error. If I look at the generated inf file I can see that under source disk files my source file is listed twice - as I would expect. If I manually delete one of them from the inf this works just fine.

So is it possible to work around this in PPCIC - perhaps detect duplicate source files and only put 1 entry for them in the source disk files list in the generated inf file?

Re:Duplicate file names 4 years, 11 months ago #154

  • nick_tg
  • OFFLINE
  • Moderator
  • Karma: 4
This is a limitation of the cabwiz.

1. For example there is no way of having a file with the same name, but different contents into one target.

2. But to have a file with the same content into different locations can be done as you described.

This post is for the new 2.1 beta:
www.aperitto.com/component/option,com_ku...view/id,148/catid,9/

This feature is implemented, the PPCIC search the source files and if find duplicates then delete them. But this can be done only in case 2, no way for case 1.

Regards,
Nick Protopapas

Re:Duplicate file names 4 years, 11 months ago #155

  • Antzzz
  • OFFLINE
  • Fresh Boarder
  • Karma: 2
Hmm, that worked - sort of...

What I'm trying to do is have the same file in 2 different places with 2 different target names. For example what I'm trying to acheive is:
File 1:
Source xyz.exe, target %InstallDir%\xyz.exe

File 2:
Source xyz.exe, target %InstallDir%\CE\R4100\autorun.exe

However with the change you've made I found that I can't have 2 different target names - if I change the target exe name for 1 in the file explorer it changes in the other as well. Is there any way around this problem?

Re:Duplicate file names 4 years, 11 months ago #173

  • Antzzz
  • OFFLINE
  • Fresh Boarder
  • Karma: 2
Great, I see that this problem has now been fixed too! Have tested 1 file being installed to 2 different places with different target names and it works well.
  • Page:
  • 1
Time to create page: 0.30 seconds