why self healing does not happen for userprofile files eventhough the file is set as key path in msi.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0

because when you have files to deploy to the users profile you need to set an HKCU entry as the keypath.

windows installer cannot detect the user profile path as a keypath as such it uses a dummy hkcu entry as the trigger for the repair scenario.

if you need to deploy to .\local settings\app data you will find yourself in a spot of trouble if you use roaming profiles.

I would recommend putting a dummy key somewhere like this

HKCU\Software\Packages\[ProductName]\ValidationFix_[ComponentName]

This will ensure all your validation fixes for all packages show up in the same place which keeps things tidy. Naming it referencing the Components name also makes it easy to identify the keypath should you want to test / force repair on the required component.

You may also be interested in an article I have written call "Current User Healing" at http://www.itninja.com/question/current-user-self-healing which describes a method to handle this for laptop uses when disconnected from a network resource. ( [SourceList] )

Answered 08/12/2007 by: jmcfadyen
Fifth Degree Black Belt

Please log in to comment
0
Yes my app does have a shortcut and when i launch that u get a txt file in C:\Documents and settings\User profile which disables the Tip of the Day dialog box of my application.The entry in the txt file says "Show Tip Of The Day =False". This txt file is set as key path.When i delete this file to check for repair it does not happen and also the Tip of the day dialog box appears.This is what the problem is to be precise.There are no registry entry to Disable the dialog box.I have only one feature.
Answered 08/12/2007 by: VinaySalimath
Senior Yellow Belt

Please log in to comment
0
Follow John's proposal as this will solve your problem.
If you use a file as keypath instead of a HKCU registry you will have another issue instead. When an admin user starts the application for the first time they keypath for the component will be checked. In general the file should not be found, that is when a regular user runs the application. But as admin users has read on other users profile directories it will be found, so the component holding this file as keypath will not be seen as broken and not get repaired.

Have in mind if you have more then one feature the position of the components feature membership will have a role in this. If you're unsure to solve this just add the component to the same feature as the component holding the EXE file/shortcut.
Answered 08/13/2007 by: AngelD
Red Belt

Please log in to comment
0
Hi,
When I open the starting page of Quicktest professional v9.1 and click on object repository(Ctrl R) I get the error "This operation cannot be performed.For further help please contact support".
Could any body help me in this regard.I have already captured the changes from the source and included but still i am getting this error.
Answered 11/13/2007 by: VinaySalimath
Senior Yellow Belt

Please log in to comment
0
1. Is this related to your earlier post? If not, please re-post as a new question.
2. Use ProcMon. This will tell what operation could not be performed, and why.
Answered 11/13/2007 by: VBScab
Red Belt

Please log in to comment
Answer this question or Comment on this question for clarity