• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
How can I perform custom file version checking ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How can I perform custom file version checking ?


  • Subject: How can I perform custom file version checking ?
  • From: Yun Zhi Lin <email@hidden>
  • Date: Wed, 13 Jun 2007 15:10:07 +0800

Hi

I have some versioned files in my application. When I upgrade the application, I try to check the version of each file. If the file on disk is the same version as in the package, it will not be installed again.

I found some notes about file version checking on http://developer.apple.com/releasenotes/DeveloperTools/Installer.html,but it does not provide enough information. I try to add a CustomFileVersion.plist in the Resource folder and write a version check script. But it seems nothing happened. My CustomFileVersion.plist is like:

<dict>
 <key>./Contents/VersionFile</key>        <!-- path to versioned file, it is relative to  app root-->
 <dict>
   <key>check</key>
   <string>builtin-check-name</string>
   <key>exec</key>
   <string>CheckVersion</string>  <!--  script ,which simply returns 1 -->
   <key>data</key>
   <string>2</string>
 </dict>
</dict>


As mentioned in the notes, the VersionFile will not be installed again, but I found the file is updated. Is there anything wrong with my script or CustomFileVersion.plist?

Thanks!

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Prev by Date: Destination Folder
  • Next by Date: Re: Installer Plug-ins in Distribution Package?
  • Previous by thread: RE: Destination Folder
  • Next by thread: Re: command-line build Distribution Package
  • Index(es):
    • Date
    • Thread