Unable to get post-installation configuration steps to apply to all users
I’m tuning Adobe Reader 6.0.1 and am unable to force my post-installalation configuration steps (a few preferences changes) to apply to all users. (These changes are 6 registry edits and I have them all contained in a single component.)
Some of the different things I’ve tried (unsuccessfully) include; switching them from HKCU to HKLM, switching them to HKUS, leaving them all in HKCU but setting a Key Path on one of them, setting ALLUSERS to 1 and setting ALLUSERS to 2.
Any tried and true methods out there?
If you want them to apply to all users they should go under HKLM or if they can only go under HKCU then you should set one as the key path and make sure the app launches with an advertised shortcut. This means the reg key will repair for each user.
If that doesn't work perhaps post up exactly which keys are causing the issue.
For these two keys, the best results (i.e. “best results” are that they work at all) are when I install them to HKCU, (but that, of course, doesn’t work for all users).
I’ll try the advertised shortcut option as that sounds quite promising. Actually, that brings another question to mind…
I’ve been using the following command line to launch the install (with a minimum interface):
MsiExec.exe /qb /i “<path>\Adobe Reader 6.0.1.msi” TRANSFORMS=”Adobe Reader 6.0.1.msi”
I thought about using advertisement but I was unable to add the “/jm” switch into the above command line. I tried numerous combinations (before the /qb, between the /qb and the /I and after the /i) but they all produced the “Incorrect command line parameters” error message.
What’s the best way to modify or replace that command line so that I can advertise the installation?
These first 4 work (for all users) when installed to HKLM:
One thing I need to confirm, is whether or not installing them to HKLM causes a situation where one user changes their preferences and that changes the same preference for all the other users. I’m going to test that next…
To advertise on the command line replace the /i with with /jm, but you don't really need to do that just make sure that the shortcuts are advertised shortcuts which will check the presence of those keys under HKCU.
It seems that you need those HKCU keys to be installed for every user on the machine. Just place them in the HKCU as normal, specify them as key paths. Then every time a user launches the app with an advertised shortcut the Windows Installer service will check the health of all key paths. If they are missing they will be reinstalled. So those keys will be re-installed for each user.
I'm placing them all in HKCU but I'm now including these two crucial steps:
1. I'm creating my Component within the same feature as the advertised shortcut and,
2. I'm setting that feature (and its parent) to Favor Advertise.
At this point I have all of my post installation Preferences edits working for all users (including user accounts that already existed on that PC).
But (I'm starting to think there's always a "but" with packaging/tuning ) here's the small problem I've got. As I go forward with my testing (specifically the first Acceptance Test...) I have found that the menu item 'Edit/Search' produces the error message "A plug-in used to perform Search is missing. Please reinstall Acrobat."
Following that I spent some time setting numerous features to 'Favor Advertise' and checking each one. No go. I then used the command line option ADVERTISE=ALL. Still no go...