FileWave Alliance

The Official Community Forum
  • Page:
  • 1

TOPIC: Using payload free packages with Lightning

Using payload free packages with Lightning 28 Jan 2013 15:35 #1166

  • Darren Wallace
  • Darren Wallace's Avatar Topic Author
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 6
  • Thank you received: 0
Hi,

Is it possible to use payload-free installers with lightning, such as those that just run a script?

If yes, do any changes need to be made to the script/s?
For example, with InstaDMG any scripts that reference the root volume, need "$3" added to the front.
(e.g. "/Library/Preferences/" became "$3/Library/Preferences/")?

Thanks

Darren

Re: Using payload free packages with Lightning 31 Jan 2013 18:52 #1178

  • Ben Miles
  • Ben Miles's Avatar
  • Offline
  • FileWave Staff
  • FileWave Staff
  • Posts: 172
  • Karma: 8
  • Thank you received: 8
Hello Darren,

Other users have reported using script only pkg files to make additional admin accounts.

But please let us know what you experience.
Ben Miles
FileWave (USA), Inc.
(fw)
Toll free: 1-888-filewave

Re: Using payload free packages with Lightning 07 Feb 2013 09:01 #1198

  • Darren Wallace
  • Darren Wallace's Avatar Topic Author
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 6
  • Thank you received: 0
Hi Ben,

I could have sworn I'd replied yesterday but it appears not...

Thanks for the confirmation that this is possible, but do you any option regarding me second point?

What would the paths in the script need to be prefixed with? For example, we have a script that runs the following command:

defaults write "/System/Library/User Template/English.lproj/Library/Preferences/com.apple.finder" ShowExternalHardDrivesOnDesktop -bool true

This command sets any new user to have External Hard Drives shown on their desktop. With InstaDMG we have to prefix this with $3 so the command becomes as follows:

defaults write ""$3"/System/Library/User Template/English.lproj/Library/Preferences/com.apple.finder" ShowExternalHardDrivesOnDesktop -bool true

I have tried both versions in Installation Package post flight scripts with no success. What is the correct prefix required to use with Lightning?

Thanks
Darren

Re: Using payload free packages with Lightning 13 Feb 2013 14:04 #1206

  • Ben Miles
  • Ben Miles's Avatar
  • Offline
  • FileWave Staff
  • FileWave Staff
  • Posts: 172
  • Karma: 8
  • Thank you received: 8

homerdjw wrote: Hi Ben,

I could have sworn I'd replied yesterday but it appears not...

With free accounts on the site, a moderator must approve the post before it shows up (sorry I have been flying a lot lately)

homerdjw wrote: Thanks for the confirmation that this is possible, but do you any option regarding me second point?

What would the paths in the script need to be prefixed with? For example, we have a script that runs the following command:

defaults write "/System/Library/User Template/English.lproj/Library/Preferences/com.apple.finder" ShowExternalHardDrivesOnDesktop -bool true

This command sets any new user to have External Hard Drives shown on their desktop. With InstaDMG we have to prefix this with $3 so the command becomes as follows:

defaults write ""$3"/System/Library/User Template/English.lproj/Library/Preferences/com.apple.finder" ShowExternalHardDrivesOnDesktop -bool true

I have tried both versions in Installation Package post flight scripts with no success. What is the correct prefix required to use with Lightning?

Thanks
Darren


I didn't think there needed to be one. Lightning only executes pkgs. Are you placing these scripts into pkg files to do defaults writes?

Let me know what you are trying, and I will pass that on to one of the developers.
Ben Miles
FileWave (USA), Inc.
(fw)
Toll free: 1-888-filewave

Re: Using payload free packages with Lightning 13 Feb 2013 14:07 #1207

  • Darren Wallace
  • Darren Wallace's Avatar Topic Author
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 6
  • Thank you received: 0
Thanks Ben, Sounds like you need some more employees in yur department :P

These scripts go into the "Postflight" script of a package. It's quite a common thing to have an installer package with no actual content to install, just to enable a script to run. Or at least it's quite common for us!

The above is an example but essentially yes. I know of quite a few installer packages that'll do a similar thing (such as Apple's Garageband additional loops).

Thanks

Darren

Re: Using payload free packages with Lightning 13 Feb 2013 14:20 #1208

  • Ben Miles
  • Ben Miles's Avatar
  • Offline
  • FileWave Staff
  • FileWave Staff
  • Posts: 172
  • Karma: 8
  • Thank you received: 8
Darren,
You are exactly correct with the script location. I wanted to be sure you weren't trying to drop a script in there loose, and actually putting it into a PKG.

When you look at the recipes on a target machine (after imaged by lightning) do you see a receipt for your PKG that you made (/Library/Recipets/ and/or /private/var/db/receipts) ?
If you see that it is running, but not actually applying the default write. Maybe you can email it to us This email address is being protected from spambots. You need JavaScript enabled to view it. if it is not too big, just make the subject something like "empty PKG script fails default write in lightning" or something
Ben Miles
FileWave (USA), Inc.
(fw)
Toll free: 1-888-filewave

Re: Using payload free packages with Lightning 13 Feb 2013 15:05 #1209

  • Darren Wallace
  • Darren Wallace's Avatar Topic Author
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 6
  • Thank you received: 0
Hi Ben,

I'm sorry but I'm not going to be near the machine two try this for a few weeks (onsite jobs for other customers).

I'll still send one of our payload free scripts to the address and see what happens.

Would that subject line above and a link to this post be enough or should I add a reference of some kind?

Thanks

Darren

Re: Using payload free packages with Lightning 13 Feb 2013 16:18 #1210

  • Ben Miles
  • Ben Miles's Avatar
  • Offline
  • FileWave Staff
  • FileWave Staff
  • Posts: 172
  • Karma: 8
  • Thank you received: 8
No that should be fine
Ben Miles
FileWave (USA), Inc.
(fw)
Toll free: 1-888-filewave

Re: Using payload free packages with Lightning 14 Mar 2013 11:04 #1242

  • Darren Wallace
  • Darren Wallace's Avatar Topic Author
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 6
  • Thank you received: 0
Hi Ben,

I've not had any reply from the Support team. Is there any news on this as I'm sure I can't be the only one.

Thanks

Darren

Re: Using payload free packages with Lightning 28 Mar 2013 00:45 #1254

  • Jon Brown
  • Jon Brown's Avatar
  • Offline
  • 1st level - White Belt
  • 1st level - White Belt
  • Posts: 1
  • Thank you received: 0
I am also having the same issue, I get a failure on an empty package with the following payload script
#!/bin/bash


# Change BSDIT Password

sudo dscl . -passwd $3/Users/bsdit <passwd>

# Enable ARD

sudo $3/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Resources/kickstart -activate -configure -access -on -users bsdit -privs -all -restart -agent -menu -clientopts -setreqperm -reqperm yes

# Hide User from the login screen

sudo defaults write $3/Library/Preferences/com.apple.loginwindow Hide500Users -bool YES

# Cleanup 

sudo echo -n "Yes\r" | systemsetup -setremotelogin off
sudo spctl --master-disable

Re: Using payload free packages with Lightning 16 Sep 2013 07:45 #1321

  • Darren Wallace
  • Darren Wallace's Avatar Topic Author
  • Offline
  • 2nd Level - Yellow Belt
  • 2nd Level - Yellow Belt
  • Posts: 6
  • Thank you received: 0
Hi Ben,

I have followed your instructions and contacted support yet not had any response.

As we currently use InstaDMG and this meet our purposes for the most part (but with a steeper learning curve) we haven't chased it up.

Now we are re-evaluating the use of a GUI image building, and lightening has come up again.

Is there any chance you can discuss this internally and come back with the answer?

Darren
  • Page:
  • 1