benhinman
Posts: 37
Joined: Wed Aug 06, 2008 7:50 am

Permanent, Never Overwrite for child components.

Mon Aug 11, 2008 4:10 pm

Hi,

I have a folder and it has a number of child files which when viewed through the Organisation tab appear grouped (i.e. the folder does not represent a component.) If I were to select the permanent and never overwrite attributes, would these attributes apply to the child items of that folder?

Thanks,
Ben

Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact:  Website

Re: Permanent, Never Overwrite for child components.

Mon Aug 11, 2008 8:13 pm

Hi Ben,

Please note that there is no such thing as a "child component". A Component consists of one or more resources (files, registry entries, shortcuts, data sources etc) which are treated by the installer as a single coherent piece (that is, if the Component is installed, all its resources are installed). You can read more here.

Additionally, the "Permanent" and "Never Overwrite" attributes correspond to Components, not to resources (individual files). If you want all the files in a folder not to be removed on uninstall, you must set the "Permanent" attribute for the Component(s) attached to those files.

Use the "Go To Component", "Go To Resource" context-menu items (or press F8) to easily locate a Component/resource in the project. Use drag-and-drop in the Organization page in order to organize resources into Components appropriately.

Hope this helps.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

benhinman
Posts: 37
Joined: Wed Aug 06, 2008 7:50 am

Re: Permanent, Never Overwrite for child components.

Tue Aug 12, 2008 8:23 am

Hi Ionut,

Thanks for the quick reply.

I see now that the components are effectively grouped together and that you can seperate them out if nessecary.

I now have another related problem:

1) Selected Permanent & Never Overwrite for a group of components.
2) Installed.
3) Uninstalled - files remain in place :D.
4) Remove files manually.
5) De-select Permanent & Never Overwrite for the same group of components.
6) Installed.
7) Uninstalled - files remain in place :(.

How do I restore normal behavior?

Thanks,
Ben

benhinman
Posts: 37
Joined: Wed Aug 06, 2008 7:50 am

Re: Permanent, Never Overwrite for child components.

Tue Aug 12, 2008 8:29 am

No worries. I found the offending registry entry and removed it.

Thanks for all the help,
Ben

mcolwell
Posts: 4
Joined: Thu Feb 12, 2009 5:58 pm

Re: Permanent, Never Overwrite for child components.

Tue Feb 17, 2009 11:41 pm

Is there a quick way to set the "Never Overwrite" attribute to a lot of components at once. I have about 25000-30000 components (registry keys) that I need to have this attribute selected for, and am not anxious to go through and select this manually for each component. I'm looking for a way to do this programmatically, and am not sure how to go about doing this. Please post any ideas you have.

Thank you.

Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact:  Website

Re: Permanent, Never Overwrite for child components.

Wed Feb 18, 2009 10:16 am

Hi,

You can try setting the "Never Overwrite" attribute for multiple components by following these steps:
- in the "Organization" page select the feature which contains the components
- press SHIFT+F4 on your keyboard
- in the "Search Result" section select the components you want to configure
- after all components are selected double-click one of them while the "Ctrl" key is pressed
- in the Edit Components Properties dialog set the "Never Overwrite" attribute

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

mcolwell
Posts: 4
Joined: Thu Feb 12, 2009 5:58 pm

Re: Permanent, Never Overwrite for child components.

Wed Feb 18, 2009 3:58 pm

Thank you Cosmin!

That's exactly what I was looking for.

Mitchell

Return to “Common Problems”