Results 1 to 10 of 10
Discuss Installer 4 - Install.plist at the iPhone Developer Exchange - Hackint0sh.org; Hi, can anyone says which commands i can use in Install.plist ? Thanks...
  1. #1
    Newbie Array

    Join Date
    Oct 2007
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default Installer 4 - Install.plist

    Hi, can anyone says which commands i can use in Install.plist ?

    Thanks



  2. #2
    Developer Array javacom's Avatar

    Join Date
    Mar 2008
    Posts
    304
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    28

    Thumbs up Common Script Commands of Installer

    These are old script commands for Installer, I think they are still applicable in Installer 4

    CopyPath() and RemovePath()
    Code:
    <array>
    	<string>CopyPath</string>
    	<string>YourProg.app/</string>
    	<string>/Applications/YourProg.app</string>
    </array>
    and
    Code:
    <array>
    	<string>RemovePath</string>
    	<string>/Applications/YourProg.app</string>
    	<string>/var/mobile/Library/Preferences/com.yourcompany.YourProg.plist</string>
    </array>
    Other Common Commands
    • AbortOperation(string) This will make Installer both abort the install process and displays a message telling the user why
    • Confirm(string,string,string) Confirm an action.
    • Exec(terminalCommand) Runs a Terminal command. Useful for things like chmod, chown, etc.
    • ExecNoError(terminalCommand) Runs a Terminal command.
    • LinkPath(oldPath, newPath) Links the two paths.
    • MovePath(oldPath, newPath) Moves files from one location to another
    • Notice(string) Displays a pop message while Installing
    • SetStatus(string) Sets the status of the install process. Useful for lengthy installs.


    Example
    Code:
    <array>
    	<string>Confirm</string>
    	<string>Changing Permission. Do you wish to continue?</string>
    	<string>Yes</string>
    	<string>No</string>
    </array>
    <array>
    	<string>SetStatus</string>
    	<string>Changing Permissions</string>
    </array>
    <array>
    	<string>Exec</string>
    	<string>/bin/chmod -R 755 /var/mobile/Media/MyProgData</string>
    </array>
    <array>
    	<string>Exec</string>
    	<string>/usr/bin/chown -R mobile /var/mobile/Media/MyProgData/.</string>
    </array>
    <array>
    	<string>Notice</string>
    	<string>Installation Completed.  Please restart iPhone.</string>
    </array>
    If / IfNot
    If(condition[array], action[array]) Use this to check for specific conditions and have Installer react accordingly. Example
    Code:
    <array>
    	<string>IfNot</string>
    	<array>
    		<array>
    			<string>InstalledPackage</string>
    			<string>com.anothercompany.anotherprog</string>
    		</array>
    	</array>
    	<array>
    		<array>
    			<string>AbortOperation</string>
    			<string>You must install another package first.</string>
    		</array>
    	</array>
    </array>
    Some common things to check with If / IfNot
    • InstalledPackage(bundleIdentifier) Checks to see whether or not an application is installed.
    • ExistsPath(path) Checks to see whether a specific file or directory exists
    • FirmwareVersionIs(arrayOfFirmwaresTocheck) Checks the firmware version
    Last edited by javacom; 09-02-2008 at 05:37 AM.
    Touch Dial is an easy-to-use application for one touch dial / sms icon on the home screen for iPhone.

    This app can read the accelerometer and do phone dial or SMS dial for the same number based on the your setting for Portrait or Landscape Mode of iPhone.


  3. #3
    Newbie Array ubunix's Avatar

    Join Date
    Aug 2008
    Location
    MI
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Great thread

  4. #4
    Rookie Array

    Join Date
    Aug 2008
    Posts
    10
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    This is really nice topic

    This commands still avaible for installer 4? There are any document?

    Thanks in advance

  5. #5
    Rookie Array

    Join Date
    Aug 2008
    Posts
    10
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by javacom View Post
    These are old script commands for Installer, I think they are still applicable in Installer 4
    I guess not.. because some commands like Exec doesn't work.. and now have a command called ChangeMode...

    Where you found this document?

    Thanks in advance


  6. #6
    Newbie Array

    Join Date
    Aug 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    hmmm strange :O

  7. #7
    Newbie Array

    Join Date
    Aug 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    useful topic :O

  8. #8
    Newbie Array

    Join Date
    Aug 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    you should search on google! yay ! =)

  9. #9
    Developer Array javacom's Avatar

    Join Date
    Mar 2008
    Posts
    304
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    28

    Default

    Quote Originally Posted by igorhmm View Post
    I guess not.. because some commands like Exec doesn't work.. and now have a command called ChangeMode...

    Where you found this document?

    Thanks in advance

    Unfortunately, the new installer script commands are not described in the ripdev documentation and sample scripts in http://ripdev.org/ as quoted below. So we have to guess now.

    Script Commands
    Description forthcoming. For now, keep in mind that the scripts are completely compatible with the Installer 3.x script
    commands. If you miss a certain command and would like to have it implemented, please contact us at
    feedback@ripdev.com.
    Last edited by javacom; 08-27-2008 at 04:26 AM.

  10. #10
    Newbie Array

    Join Date
    Sep 2008
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Recently I have set up my own repo for my files....I have looked at some examples of Install.plist but i am thinking i have missed something. I understand that all files need to be in the root of the zip...here are my questions

    1. If the folder you want to move files to does not exist does it make it automaticlly??

    2. Can I copy an entire folder to a directory...and if so what is the command??
    I have made the Install.plist work with single files like wallpapers and that works fine but when I am trying to copy an entire folder and there is no extension I get a little confused.

    Any help would be greatly appreciated.....sorry for the noob questions and I hope I am making sense!! Thanks again!!


 

 

Similar Threads

  1. Replies: 3
    Last Post: 12-22-2012, 03:06 AM
  2. 1.1.3 carrier.plist & operator.plist inaccessible
    By legitimie in forum iPhone "2G" (Rev. 1)
    Replies: 23
    Last Post: 02-29-2008, 06:31 PM
  3. Canīt install any applications on Installer - Fucked up Installer V3.0b8
    By adrianbehr in forum Free Toolchain Software (Cydia App's)
    Replies: 3
    Last Post: 01-14-2008, 01:01 AM
  4. Replies: 0
    Last Post: 08-19-2007, 06:07 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 09:18 AM.
twitter, follow us!