PaulFoz
18th February 2006 17:35 UTC
NSIS and the iPod
I would like to come up with a way of installing sound files and text files onto an iPod from a download.
To get more of an idea of what I mean check out the free download at http://www.talkingpanda.com/ilingo.php I would like to emulate this if possible.
Can NSIS do this and if so where should I start?
Many thanks in advance.
Paul
Comperio
18th February 2006 19:11 UTC
With the right plugins, NSIS can do just about anything!
The first question would be, how does the information get to the iPod? Can you just copy files over to it like you would an external hard drive? Or does the sent info have to filter through Apple's own programming interface?
Unfortunatley, I've not been able to find much about this. Seems Apple wants the user to use their own software for the most part. (The link you included in your original posts seems to indicate that ilingo uses some type of programming interface to get the info to the ipod.)
You may want to start by searching through Apple's dev site to try to find the answers.
The only thing I managed to find some useful info regarding the use of 'notes' at http://developer.apple.com/hardware/...notereader.pdf
If you can determine how to get the info to the ipod, I'm sure someone here can offer more suggestions on how to accomplish your task using NSIS.
PaulFoz
18th February 2006 19:28 UTC
Thanks mate,
The 'notes' feature is exactly where some of the files need to go. To place them here manually it is merely a case of 'click and drag'. The sound files however need to be placed into the iTunes library.
So what the installer would need to do is:
1. Check that the iPod is connected and enabled for disk use.
2. Place a seris of text files in to the notes folder on the iPod.
3. Open up iTunes and place a seris of sound files into the iTunes library.
You can see the whole procedure on the 'Installation' page on my website www.coolgorilla.com
Any more advice please????
PaulFoz
20th February 2006 02:13 UTC
I've just managed to install notes into the correct folder on the iPod but only because by default on Windows XP USB devices become the 'F' drive. Is there a plugin that could check for the location/existance of an iPod?
dandaman32
20th February 2006 06:41 UTC
You could probably use an IfFileExists check to look for the "Notes" folder on every drive. I'm not sure how to do a loop and increment the var by 1 letter (e. g. make a loop that starts at letter C and the next time the letter's D and so on and so forth)
-dandaman32
PaulFoz
20th February 2006 15:31 UTC
NSIS places the files into...
InstallDir "$PROGRAMFILES\My application"
Each ipod has a folder called "ipod_control" which would identify it as an iPod. Is there some way to utilse this in order to create a FilePath that would work?