For a BundleInstallation script, can I no longer a...
# suitescript
d
For a BundleInstallation script, can I no longer add a library file in v2.0?
m
My understanding in no. When the module tries to load to execute the
beforeInstall
function, your custom modules do not exist in the account yet.
d
Crap. Well, I'm really doing everything in the afterInstall ... and in SS1, we had a company-wide library file that we did some post install actions. No, in SS2.0, it fails saying that module (file) doesn't exist. Of course, it does.
e
My guess would be that since the script you specify must be able to respond to
beforeInstall
, the installer loads your script before it begins installation and wires up the entry points then, but the file doesn't exist yet
So even though you're not actually using
beforeInstall
, the script has to get loaded before anything occurs, and they don't check again during
afterInstall
- That's just a hypothesis; I have no evidence or testing to prove that's how it works
d
Right, thanks @erictgrubaugh
So, the take away here is, embed anything I need at 'installation' time into one file ... don't reference anything externally. Sucks, but at least I have a way forward
e
aye