This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Set permanent on a component programatically
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 19, 2009
02:32 AM
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?
Thank you for your help?
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 19, 2009
06:26 AM
During installation? or do you have an installation already installed you need to patch up?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 19, 2009
07:15 AM
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.
I actually have 2 types of install. Network or local.
If network is selected i would like the components to be permanent.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 19, 2009
07:38 AM
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 19, 2009
08:49 AM
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.
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.