/build/static/layout/Breadcrumb_cap_w.png

Trigger self healing/Active Setup

Hi,

I´m going to create a MSI that creates 2 folders under [AppDataFolder] and copy a bunch of files under the last folder in the hierarcy.

My problem is that only the one installing the msi gets the folder and files copied. Since there are no shortcut to any program I thought I should try Active Setup. But the users in the near future in my company are going to be local users and not local administrators. Will Active Setup work then? To trigger a repair of the msi?

IF it will work there is still a problem, because I cant get the package to repair/self heal the files to the current user. So there must be something wrong with the package.

I use Install Shield 2010 and simply create the folder structure in the GUI of Install Shield and answer "yes" if I want to create a component. Then I put the files in the folder structure and put a keypath on one of the files. Something I´m missing?

Cheers
Agathorn

0 Comments   [ + ] Show comments

Answers (8)

Posted by: anonymous_9363 13 years ago
Red Belt
0
- Current user files and/or registry settings which are installed by Active Setup CANNOT be self-healed.
- Active Setup will work for ANY user - vanilla or admin - who logs on to the system.

Take a look at John McFadyen's Windows Live blog on self-healing.
Posted by: stabish 13 years ago
Orange Belt
0
You would need to stage those files first & then create an ActiveSetup to call a batch file or a vbscript to copy the folder in Users Appdata.
Posted by: pjgeutjens 13 years ago
Red Belt
0
Since there are no shortcut to any program I thought I should try Active Setup. But the users in the near future in my company are going to be local users and not local administrators. Will Active Setup work then? To trigger a repair of the msi?

David,

first of all, for robust propagation of user settings, in my opinion self-healing triggered by advertisement is a much better option than Active Setup if it's an option for you. self-healing being an integral part of Windows Installer tech, Active Setup to me is Microsoft's Poor Man's Alternative.

you should keep in mind that advertised shortcuts are not the only way to trigger self-healing in an MSI. You can also advertise COM registration of DLLs and exe files, program associations and extensions. That being said, this is not something I have yet played with extensively, trying to actively trigger a self-heal that would take care of user settings, stemming from a non-shortcut advertisement. Key tables in this respect that come to mind for me are Class, Extension and ProgID, but might not be limited to this.

I hope some of the others here can input, and I for one will follow this topic, to learn [;)]

PJ
Posted by: anonymous_9363 13 years ago
Red Belt
0
There's only one table you missed, Pieter - the Mime table. The rest of what you say is spot on.
Posted by: Agathorn 13 years ago
Senior Purple Belt
0
I thought Active Setup was designed for self healing of user specific files etc that was hard to get into place because lack of advertised shortcuts just like in my case.
What do you use Active Setup for then?
Posted by: pjgeutjens 13 years ago
Red Belt
0
David,

there are many environments where self-healing is not possible, like Citrix or like the one I'm working in at the moment for example. We use a custom system for managing user shortcuts, and it doesn't do well with advertised shortcuts. In those cases Active Setup is an alternative. It can indeed perform the same task, but is much more limited than MSI self-healing, which guards your entire application's integrity, not just your user specific files and settings.
Posted by: anonymous_9363 13 years ago
Red Belt
0
Maybe this is a question of semantics, in that the user profile stuff is "kind of" self-healed but only once, when the user logs in. Self-healing, in fact, means that if a key path is missing, the Windows Installer engine will heal the feature containing the missing key path. If your user removes stuff which has been installed via AS, the engine - having had no involovement in the install - doesn't heal.
Posted by: Colbey 13 years ago
Yellow Belt
0
Active setup could be used to trigger a repair of your msi once for each user as they logon. The repair will run with elevated rights. This would allow your msi to create the files and folder structures for each user on the machine when they logon, but you would not get the usual benefits of advertisement and self healing triggered by use of an advertised shortcut each time the application is launched.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ