cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Nejchy
Level 4

Set permanent on a component programatically

Is it possible to set permanent on a component programatically in a Installscript or VBScript ?

Thank you for your help?
Labels (1)
0 Kudos
(4) Replies
cbragg
Level 7

During installation? or do you have an installation already installed you need to patch up?
0 Kudos
Nejchy
Level 4

Yes. During installation.

I actually have 2 types of install. Network or local.
If network is selected i would like the components to be permanent.
0 Kudos
cbragg
Level 7

Without having to write a custom action to modify tables at runtime (which is doable but a bit hacky) the easiest way to do it is to create two components exactly the same except one is set as permanent and the other isn't. Then all you need to do is to condition these components to install the correct one based on the user's selection
0 Kudos
Nejchy
Level 4

I thought of doing that. But I have a file that is 300MB.
And if i create 2 components, this file is added twice in my project.
Or is it possible to add it only once and then use it in 2 components.

Thank you for your answers.
0 Kudos