When using Software Distribution to deploy the JEdit X dmg file JEdit is not installed
The JEdit DMG file contains a folder that needs to be copied to the /Applications folder for installation. LANDesk Software Distribution does not have a default action for handling a folder contained inside a DMG.
A script needs to be made that LANDesk can run to install the software. It is recommended that the script be created in a text editor (pico, vi, bbedit, etc.) not a word processing program.
This example will use JEdit X 2.26
Create a script that contains commands necessary to install the software. Such a script may look like this:
#Copy Jedit folder to /Applications
cp -pr /Volumes/Jedit\ X\ 2.26\ Disk/Jedit\ X\ Folder /Applications/Jedit\ X\ Folder
Note: We have received reports that scripts created in notepad and other windows programs do not work
- After creating the script make it executable (chmod +x).
- Put the script in the JEDIT DMG file or create a new DMG that contains the script and the contents of the JEdit DMG.
- Put the DMG with the script in you package repository.
- When creating the Distribution Package for the DMG the -exec command needs to be added to the Install/Uninstall Options section.
- In the console go to Distribution Packages.
- Create a new Macintosh Package.
- Give it a Name.
- Give it a Description.
- Set the Primary file by putting in the URL to your Package Repository and selecting the DMG containing the script.
- Click on Install/Uninstall Options in the left pane.
- In the Enter command line or select options above and edit command line for MSI package: field type in -exec scriptPath/Name.
Example if the script is named JEditIntall.sh and is in the root of the DMG file you would enter -exec JEditInstall.sh
Note: The -exec switch adds the path to the root of the DMG to whatever parameter is passed to it. Although the path to JEditInstall.sh is /Volumes/JEdit\ X\ 2.26\ Disk/JEditInstall.sh when LANDesk executes the script the path starts at the root of the DMG.