943,682 Members | Top Members by Rank

Ad:
Aug 22nd, 2008
0

Replacing executable file

Expand Post »
Hello everybody,

I hope this is the right forum to post my question. It's a bit "in-between".

I am about to write an updater for a programme of mine. The updater downloads an update-file from my server that has packed all files I want to replace and executes a simple script.
Now all works file apart from the executable (programme.app/Contents/MacOS/programme), that MacOS doesn't accept as a binary file: it says its plain text.
What can I do in this case? How can I set the type of that file so that it becomes a normal executable? (How) Can I use the programme /Developer/Tools/SetFileType?

Many thanks in advance
Simon
Similar Threads
Reputation Points: 56
Solved Threads: 29
Posting Whiz in Training
sDJh is offline Offline
255 posts
since Aug 2005
Aug 22nd, 2008
1

Re: Replacing executable file

Stupid question: have you checked to make sure that the binary has executable permissions?
Team Colleague
Reputation Points: 2240
Solved Threads: 338
Vampirical Lurker
John A is offline Offline
5,055 posts
since Apr 2006
Aug 22nd, 2008
0

Re: Replacing executable file

Thanks indeed. I guess that couldt had been the problem. In the net I've seen a solution that uses SetFile, but it seems to be enough to simpy set the permission to +x.

Thank you, you helped me a lot!
Reputation Points: 56
Solved Threads: 29
Posting Whiz in Training
sDJh is offline Offline
255 posts
since Aug 2005

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Mac tips 'n' tweaks Forum Timeline: dual boot OSX/Vista - sound issues
Next Thread in Mac tips 'n' tweaks Forum Timeline: G3 Mac





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC