requiring a file with a variable path?
requiring a file with a variable path?
- Subject: requiring a file with a variable path?
- From: Rich Morin <email@hidden>
- Date: Sat, 02 Apr 2011 16:09:39 -0800
My installer needs to install a file tree in the user's
home directory, then copy a file from the installed tree
into a directory with a variable path.
Specifically, the directory may be named either:
/Library/Application Support/
Google SketchUp 7/SketchUp/plugins
Google SketchUp 8/SketchUp/plugins'
^
I have a (Ruby) preinstall script which checks for both
of these paths, as:
patt = '/Library/Application Support/' +
'Google SketchUp */SketchUp/plugins'
pl_path = Dir.glob(patt)[-1]
It then sets up a symlink (in /tmp/SketchApps_install)
that the postinstall script uses to perform the copy.
Problem is, I'd really like to have the installer check
for this symlink and issue a nastygram if it isn't there.
I've tried doing this in a couple of ways, but they all
run into problems.
Help?
-r
--
http://www.cfcl.com/rdm Rich Morin
http://www.cfcl.com/rdm/resume email@hidden
http://www.cfcl.com/rdm/weblog +1 650-873-7841
Software system design, development, and documentation
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Installer-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden