/build/static/layout/Breadcrumb_cap_w.png

Why dont we mark User Specific file as a keypath

Now this is a very basic question , but bugs most of the packagers and i bet, most dont know the exact reason.

It is well know fact, when we mark user specific file as a keypath and suppose an application makes use of this file, on first launch in user it will repair. now when in admin , if we launch the shortcut, it will repair(the file was already present in admin, but still it repaired). now again go to user and launch the shortcut again, and the application heals(remember the file was already present in user after first launch in user). Here i m presuming , the location of the file gets hardcoded somewhere in registry , mostly machine specific location HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\Folders\<Path of file>. Can somebody please elaborate why is this so.....what exactly happens during this whole process.
I would really appreciate if somebody doesnt ask me to mark registry keypath for user specific file. I m really tired with those answers 


0 Comments   [ + ] Show comments

Answers (1)

Posted by: talonsprem87 10 years ago
10th Degree Black Belt
0

Now after doing a little research i found a particular registry location where this file location gets harcoded

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\S-1-5-18\Components\<Reverse GUID of component>


Comments:
  • I want to reply with something meaningful, but I dont quite get your question. Where is this file that you have made a keypath? - rileyz 10 years ago
    • Well the file that i m talking about resides under AppData Folder - talonsprem87 10 years ago
  • Just to clarify.
    You have a file that is keypath in the AppData folder. You start the app via the advertised shortcut, the file is already in the AppData folder, but it still repairs that file in the AppData folder?

    If the file is a keypath in the user profile, it should only repair once. If it keeps repairing, something is broken, you need to look in the event log to see what is triggering the repair. Are you sure that something else is not triggering the repair? - rileyz 10 years ago
    • yes i m dead sure about it....there is just one component i.e. the file under appdata folder. - talonsprem87 10 years ago

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
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