Updating a value in registry for roaming profile - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

chrizmo
Posts: 9
Joined: Tue Jul 17, 2007 1:59 pm

Updating a value in registry for roaming profile

Hello.

I'm using a MSI-package to distribute a set of Office templates in our network. During this process, I want to standardize where the templates are stored, and I need to change the value in HKEY_CURRENT_USER/Software/Microsoft/Office/<Office Version>/Common/General/Shared Template. If I set up the value in .Default, it works perfectly...as long as the user doesn't have a profile before it logs in. Then it omits the default-registry and uses the old value.

Is there a way for me to add a value in the registry that overwrites the value in the users "private" registry? I'd rather not use GPO for this project.
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Updating a value in registry for roaming profile

Hi,
Is there a way for me to add a value in the registry that overwrites the value in the users "private" registry?
Please note that Windows Installer can access the HKEY_CURRENT_USER hive only for the current user (Windows does not permit access to the HKEY_CURRENT_USER hives of other users).

A workaround would be to make sure that the package is installed per-machine. This way you can use the self healing feature to automatically install the registry entries (if they were not installed) when a user logs on.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chrizmo
Posts: 9
Joined: Tue Jul 17, 2007 1:59 pm

Re: Updating a value in registry for roaming profile

Thank you, I'll give this a try.
chrizmo
Posts: 9
Joined: Tue Jul 17, 2007 1:59 pm

Re: Updating a value in registry for roaming profile

cosmin wrote:Hi,
A workaround would be to make sure that the package is installed per-machine. This way you can use the self healing feature to automatically install the registry entries (if they were not installed) when a user logs on.
Hello again.

I tried this, but don't see any functionality to make "self-healed registry values" am I missing something?

Chrizmo
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Updating a value in registry for roaming profile

Hi,

Please note that the self-healing feature works in the same way for any component in the package. It doesn't matter if the component contains a file or a registry entry. Did you try our how-to? If so, did it work?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chrizmo
Posts: 9
Joined: Tue Jul 17, 2007 1:59 pm

Re: Updating a value in registry for roaming profile

No but I think I know why. Seeing as how these are templates and not a program, I'm not able to have a "Advertised Shortcut". Thus I can't initiate repair (from what I understand from the How-to).

The templates are initiaded by MS office, but they can't be because Office can't find the templates without the changed registy value. Thoughts?
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Updating a value in registry for roaming profile

Hi,

If there is no application to be launched by the shortcut, an Advertised shortcut cannot be used. In this case, I'm afraid that GPO and manual installs are the only solutions. Unfortunately Windows and Windows Installer cannot access the HKEY_CURRENT_USER hive of another user account.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
chrizmo
Posts: 9
Joined: Tue Jul 17, 2007 1:59 pm

Re: Updating a value in registry for roaming profile

cosmin wrote:Hi,

If there is no application to be launched by the shortcut, an Advertised shortcut cannot be used. In this case, I'm afraid that GPO and manual installs are the only solutions. Unfortunately Windows and Windows Installer cannot access the HKEY_CURRENT_USER hive of another user account.

Regards,
Cosmin
Hello.

No unfortunately, the installer won't install any shortcuts. I think GPO's (almost the last resort) is the way to go.

Thanks for the help!

Chrizmo

Return to “Common Problems”