Installing MS Word Templates - 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!

herods
Posts: 1
Joined: Wed Dec 07, 2011 11:59 am

Installing MS Word Templates

Hi

I'm looking to create an installer to put MS Word templates into the appropriate locations on the users machine (copy .dotm files to two differnet locations).

These locations are, if they are the default locations, sub-directories of 'well known' locations (AppData, Templates etc), but if the user has customized their setup I would need to

1. Detect the existence of a Registry key.
2. Obtain the filepath from the value of that key
2. Concatenate it with the value of another key.
4. Place my files into that directory.

I'm really not sure how to go about that with advanced installer... custom actions???
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Installing MS Word Templates

Hi and welcome to Advanced Installer forums,

The public property that stores the install location is APPDIR. You can read more related information in this article.

Here's a thread that has the steps on how to accomplish the behavior you need in your project. My colleague also attached a sample project to his post.

In the "Property set with Formatted" custom actions "Formatted field" you can have something like this:

Code: Select all

[SEARCH_REG_1][SEARCH_REG_2]
where SEARCH_REG_1 and SEARCH_REG_2 are the names of registry searches that return the values you need to concatenate.

For more information on how to work with formatted type fields, here's another article to help.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”