Deliver a Template.dotm to all user folders. - Advanced Installer Community
karlwj
Posts: 5
Joined: Fri Jan 27, 2012 9:14 pm

Deliver a Template.dotm to all user folders.

Hi,
I am dealing with two similar scenarios and looking for advice. We have a file, Template.DOTM, that gets delivered to "%appdata%\Microsoft\Word\Startup". On it's own, this is already a challenge, as the path only exists in the registry it it was changed, so when dealing with Windows language versions this path is an issue. We have to assume the path is %appdata%\Microsoft\Word\Startup". But that's not what I am trying to address here, just bringing it up in case the whole approach is wrong.

Anyways, if you are a local admin, and you run our installer, the Template.dotm is delivered to the location. However, if you are not, and you have to elevate, the template is then delivered to c:\Users\Admin\AppData\Roaming\Microsoft\Word\Startup. Obviously an issue as it does not work as expected.

Let's, for a moment, assume I cannot use the "Program Files" location (which is identified as an alternative startup folder), and stick to USERS.

What can I do, with AdvancedInstaller, that could a) route the DOTM file to the correct user rather than admin when elevation is used b) preferably install the DOTM in all assumed Startup folders. Or does this have to be a custom action?
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Deliver a Template.dotm to all user folders.

Hello,
Anyways, if you are a local admin, and you run our installer, the Template.dotm is delivered to the location. However, if you are not, and you have to elevate, the template is then delivered to c:\Users\Admin\AppData\Roaming\Microsoft\Word\Startup. Obviously an issue as it does not work as expected.
Please keep in mind this is the normal behavior when you are using a per-machine installation type.
a) route the DOTM file to the correct user rather than admin when elevation is used
In order to achieve this you should set the installation type to the per-user only type, from "Install Parameters" page.
b) preferably install the DOTM in all assumed Startup folders.
For this you can build a per-machine installation package and use the Advertised shortcuts support. Please take a look on the "How do I implement self-healing into the application?" article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Building Installers”