MSI Self repair only works for installer.
Hi Gents
I'm trying to re-package Picasa3 and all seems to be going well apart from one problem. When you load the application for the first time it asks what drives you want to scan, after telling the application it goes and places a file in the c:\Documents and settungs\USERPROFILE\local settings\application data\Google\picasa2\db3\thumbindex.db(along with other files but this is the important one)
This file has the settings of the drive and therefore doesn't flash up at the start asking any questions. I would like this file to be dropped into each users local profile as they log on. I decided to create a UserProfile feature in Wisepackage Studio with the files I needed so when the application was run for the first time it would see these files were missing and do a quick self repair, placing the files needed into the appropriate place thus resolving the problem I have!
Unfortunately this only works for whoever installs the MSI! Any new users log in don't get any relf repair and are presented with the original problem.
If I need to I'll try the active setup method but don't see any reason why this shouldn't work.
Any help on this process would be much appreciated as im fairly new to this method.
Mike R
I'm trying to re-package Picasa3 and all seems to be going well apart from one problem. When you load the application for the first time it asks what drives you want to scan, after telling the application it goes and places a file in the c:\Documents and settungs\USERPROFILE\local settings\application data\Google\picasa2\db3\thumbindex.db(along with other files but this is the important one)
This file has the settings of the drive and therefore doesn't flash up at the start asking any questions. I would like this file to be dropped into each users local profile as they log on. I decided to create a UserProfile feature in Wisepackage Studio with the files I needed so when the application was run for the first time it would see these files were missing and do a quick self repair, placing the files needed into the appropriate place thus resolving the problem I have!
Unfortunately this only works for whoever installs the MSI! Any new users log in don't get any relf repair and are presented with the original problem.
If I need to I'll try the active setup method but don't see any reason why this shouldn't work.
Any help on this process would be much appreciated as im fairly new to this method.
Mike R
0 Comments
[ + ] Show comments
Answers (15)
Please log in to answer
Posted by:
AngelD
15 years ago
hmm maybe not Jonny, maybe not :)
"HKCU\Software\Classes" is excluded by default so anything written under this key will not travel along with the user.
So if everything fails then create a dummy entry alike the below, not maybe the best suggestion but the only thing that comes in mind.
"HKCU\Software\Classes\Software\RepairOnEntryPointPerLogonSession\<ComponentId>=<ProductCode>"
"HKCU\Software\Classes" is excluded by default so anything written under this key will not travel along with the user.
So if everything fails then create a dummy entry alike the below, not maybe the best suggestion but the only thing that comes in mind.
"HKCU\Software\Classes\Software\RepairOnEntryPointPerLogonSession\<ComponentId>=<ProductCode>"
Posted by:
MikeRae1980
15 years ago
Posted by:
AngelD
15 years ago
ORIGINAL: jmcfadyen
to all the people that have suggested making the file the keypath this is a bad move. It will result in permissioning errors etc as the initial files path will be written to the keypath. this will cause all users to look for that file during self healing (most users wont have access) ..
Yes, it's a bad move to have a file as keypath for user-based files (components) as any admin user will have permission to read the keypath file installed to another user's profile therefore the component will not be found as broken due to read/write access.
Regarding self-healing for such component:
The Windows Installer metadata (registry) pointing to the filepath will point to the path for latest user's (keypath) filepath whom triggered a repair.
So the keypath metadata will be changed during each repair; swapping back and forward between next-user, next-user, potential previous-user and so on.
There are some other issues having a file as keypath but the issue here will be a repair for non-admin users and no repair for admin users.
Posted by:
MikeRae1980
15 years ago
Posted by:
jcarri06
15 years ago
ORIGINAL: AngelD
ORIGINAL: jmcfadyen
to all the people that have suggested making the file the keypath this is a bad move. It will result in permissioning errors etc as the initial files path will be written to the keypath. this will cause all users to look for that file during self healing (most users wont have access) ..
There are some other issues having a file as keypath but the issue here will be a repair for non-admin users and no repair for admin users.
Told ya I'd get some heat :) lol. Thx for clarifying guys and glad you're up and running Mike.
- J
Posted by:
zipsantro
15 years ago
Posted by:
anonymous_9363
15 years ago
Posted by:
MikeRae1980
15 years ago
When installing the MSI it does ask if I want to make this app for all users, I say yes :)
Yes i'm creating this folder structure in Windows\Profiles\Local settings etc.
It does go to the correct forder because when I install the application it puts the file into my local UserProfile. Just not when other people log into the station.
Yes i'm creating this folder structure in Windows\Profiles\Local settings etc.
It does go to the correct forder because when I install the application it puts the file into my local UserProfile. Just not when other people log into the station.
Posted by:
anonymous_9363
15 years ago
Posted by:
Cybermage
15 years ago
Even then it is not a big problem.
Move the required files to the profile map of the userprofile folder in the packaging tool.
Make from the moved files a keypath in de components.
Do not forget the active setup key.
For more information maybe this treat wil be a great help.
http://itninja.com/question/gnu,-freeware-and-shareware-programs-to-cloning4997
Move the required files to the profile map of the userprofile folder in the packaging tool.
Make from the moved files a keypath in de components.
Do not forget the active setup key.
For more information maybe this treat wil be a great help.
http://itninja.com/question/gnu,-freeware-and-shareware-programs-to-cloning4997
Posted by:
MikeRae1980
15 years ago
Hi Gents,
Got the self healing part working by placing a reg file into the HKCU and placing the files into a new feature that then triggers the healing process. The only problem now is when the user logs onto another station that reg key now exists so the self healing doesn't fire off. So back to the original issue.
Any ideas how to get round this so every station they go to will recognise the files are not in place.
Woudl active setup help?
Got the self healing part working by placing a reg file into the HKCU and placing the files into a new feature that then triggers the healing process. The only problem now is when the user logs onto another station that reg key now exists so the self healing doesn't fire off. So back to the original issue.
Any ideas how to get round this so every station they go to will recognise the files are not in place.
Woudl active setup help?
Posted by:
AngelD
15 years ago
Posted by:
jcarri06
15 years ago
I'll probably get some *heat* for this since it goes against packaging standards and will fail validation...but due to your roaming profiles it may be your only way to go. Using the same feature structure you have to trigger self heal, make the keypath the file you're looking to replace instead of the registry.
You're in a bit of a predicament...You have a user specific file that needs to be created to run the application, you have users log on to different machines, and your profiles roam...you should toss a gasoline case with a lit match just to make it more interesting! lol.
Good luck,
- Jay
You're in a bit of a predicament...You have a user specific file that needs to be created to run the application, you have users log on to different machines, and your profiles roam...you should toss a gasoline case with a lit match just to make it more interesting! lol.
Good luck,
- Jay
Posted by:
jmcfadyen
15 years ago
to all the people that have suggested making the file the keypath this is a bad move. It will result in permissioning errors etc as the initial files path will be written to the keypath. this will cause all users to look for that file during self healing (most users wont have access) ..
you may need to resort to some custom scripts to call the API to trigger a specific set of actions from HKLM or deploy with login script other separate method.
you may need to resort to some custom scripts to call the API to trigger a specific set of actions from HKLM or deploy with login script other separate method.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.