We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

smljoju
Posts: 41
Joined: Fri Jun 27, 2014 1:36 pm

Clarity on "Permanent" components

If I set my component to be "Permanent" where does advanced installer actually keeps this preference? Because as I noticed:
1. Given:
1a. installer A has a component "permanent"
1b. installer B has no permanent component
2. Steps:
2a. install installer B
2b. install installer A (permanent component not kept)
2c. install installer B (permanent component kept)
2d. install installer A (permanent component kept)

And based on this, the component was always kept even if I for example, use some older installer wherein no component is set to be kept, it seems that conclusion is:
1. Component will only be kept after successfully using an installer with the component SET TO BE KEPT
2. Component will stay permanent until "I'm not sure when". I already tried logging out and it is still keeping my component even if I'm not using an installer that sets it be kept

Can anyone please provide some more info regarding this?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Clarity on "Permanent" components

Hi,

Please keep in mind that a registry key is created by Windows Installer for each installed component and some important information about that component is stored to that registry key. A key related to a component can be found at the following registry path:

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\{GUID}
The {GUID} is computed starting from the component's GUID as described in the last lines of the "Why files are left behind after package uninstall" FAQ.

When the "Permanent" flag is set for a component a "00000000000000000000000000000000" registry value is stored in the registry key related to that component storing the path to the file that is the key of that component, hence the files contained by that component will never be removed from the machine. So, if you want to have those files removed from the machine, you should delete the registry value mentioned above.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
smljoju
Posts: 41
Joined: Fri Jun 27, 2014 1:36 pm

Re: Clarity on "Permanent" components

thank you for the reply
smljoju
Posts: 41
Joined: Fri Jun 27, 2014 1:36 pm

Re: Clarity on "Permanent" components

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\{GUID}
This seems to be accurate enough but there appears to be 2 GUIDs, its more like

Code: Select all

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\{GUID1}\{GUID2}
{GUID1} not sure where this is from, can you please inform me where this is from?
{GUID2} is pertaining to the product ID as mentioned on the post you mentioned
smljoju
Posts: 41
Joined: Fri Jun 27, 2014 1:36 pm

Re: Clarity on "Permanent" components

ok I see it now {GUID1} seems to be the component (file) GUID
smljoju
Posts: 41
Joined: Fri Jun 27, 2014 1:36 pm

Re: Clarity on "Permanent" components

Btw I also saw that if permanent components are installed in different locations, then it will also change GUID, for example:

00000000000000000000000000000000 - location 1
10000000000000000000000000000000 - location 2
20000000000000000000000000000000 - location 3

and so forth, how do we distinguish between "permanent" GUIDs and real GUIDs? of course we can check product code but if there are already a lot of entries how do we really distinguish between permanent and product codes?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Clarity on "Permanent" components

Hi,
Btw I also saw that if permanent components are installed in different locations, then it will also change GUID, for example:

00000000000000000000000000000000 - location 1
10000000000000000000000000000000 - location 2
20000000000000000000000000000000 - location 3

and so forth, how do we distinguish between "permanent" GUIDs and real GUIDs? of course we can check product code but if there are already a lot of entries how do we really distinguish between permanent and product codes?
I'm afraid I don't fully understand this question. Can you give us more details (maybe exemplify)?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”