Hi
I wondered if anyone else has used ‘Packages’ for creating an installer(maybe
you can suggest a similar product). I am creating a simple installer for an
in-house application-i will rather give the users a link to an installer than a
.zip as they have a habit of installing stuff on the desktop.(this is on OSX
only)
I know this is slightly ‘off topic'
I am however having two problems:-
The first is with permissions. If i zip the .4dbase up and send it to a machine
the installed app runs fine. However when i create an installer package(with
user persmissions set to Owner Root and user Admin(i also tried user Wheel) The
installed application does not have the correct permissions and wants to open
read only. I wondered if anyone has a suggestion to overcome that.
The second problem I have i with making an icon in the doc. I have written an
Applescript which runs after the install. and this should make an icon in the
Doc and relaunch the doc. If i run the Applescript it works fine but when i
attach it to my installer to run automatically it seems to fail. I wondered if
anyone might know a reason why the script might fail when it is executed from
an installer.
(the script could be better)
set the_choice to "Add Application" as string
if the_choice is "false" then error number -128
try
if word 1 of the_choice is "Add" then
set persistent_what to "persistent-apps"
set this_file to "/applications/xxxxxx.app" as string<<—here we
have the app name
do shell script "defaults write com.apple.dock " &
persistent_what & " -array-add
'<dict><key>tile-data</key><dict><key>file-data</key><dict><key>_CFURLString</key><string>"
& this_file &
"</string><key>_CFURLStringType</key><integer>0</integer></dict></dict></dict>'"
end if
tell application "Dock"
quit
repeat
try
activate
exit repeat
end try
end repeat
end tell
on error error_message number error_number
if error_number is not -128 then -- not user cancelled
display dialog "Error: " & error_number & return & error_message
end if
end try
Thanks to anyone who can point me in the right direction.
**********************************************************************
4D Internet Users Group (4D iNUG)
FAQ: http://lists.4d.com/faqnug.html
Archive: http://lists.4d.com/archives.html
Options: http://lists.4d.com/mailman/options/4d_tech
Unsub: mailto:[email protected]
**********************************************************************