- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: not able to protect my folder and files after using permanent option
- 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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @sasaurab,
As you said that a different project work fine, this means that there is some other configuration.
Few things that you can try...
Can you verify that, are there any custom action or script which is performing this delete explicitly?
The files which you want to protect are not generated dynamically?
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi sasaurab,
You can do that by setting the flag under Components > (your component) > General > Permanent = YES
Setting this flag will not uninstall your files under (your component).
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @sasaurab ,
Can you verify the attributes value of component in component table(Using InstallShield-Direct Edit mode)of final MSI for which you had set Permanent property to "Yes" to be 16?
The value of 16 would be for permanent,8 for permanent set to "No".
Thanks,
Jenifer
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @sasaurab ,
As @Jenifer pointed out you can check the "Attribute" value in "Components" table but note that this value varies and depends on the properties that is set in the Components view , for example by default when a component is created in InstallShield "Attribute" is set to 8 (as by default Components > General > Shared = YES ). And further setting Permanent = YES will change the "Attribute" value to 24. (ref: https://docs.microsoft.com/en-us/windows/desktop/msi/component-table)
Thanks.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hi @sasaurab,
As you said that a different project work fine, this means that there is some other configuration.
Few things that you can try...
Can you verify that, are there any custom action or script which is performing this delete explicitly?
The files which you want to protect are not generated dynamically?
Thanks
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Hey,
I have checked ,it need to do change in custom script only.Thanks for your support
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
@sasaurab Glad to help. Cheers