Skip to content
⌘ NSIS Forum Archive

Installer not creating directory

6 posts

Kaos61#

Installer not creating directory

If this question has been asked & answered, I humbly apologize. However, I have searched the forums and all the relevant help files etc for every keyword I can think of and have still come up empty.

In a nutshell, what I am trying to do is create an installer that I can distribute to our other offices that will install all our custom MS Word templates in the right place. (C:\Users\username\AppData\Roaming\Microsoft\Templates\custom)

The computers we are distributing to are running Vista Home Premium.

I have tried every variation I can think of to get it to create the right directory, but I'm just getting nothing.

EDIT: Also, how do I attach more than 1 file to my post?
kichik#
$APPDATA is already the roaming directory. $LOCALAPPDATA is the non-roaming directory. But $TEMPLATES will give you direct access to what you need.

You can attach a ZIP file with multiple files in it.
Kaos61#
I tried using $TEMPLATES but that installs them to C:\Users\username\AppData\Roaming\Microsoft\Windows\Templates

That is not the default directory for templates. These people are completely computer illiterate so getting them to change the default directory is not an option.
Kaos61#
and here is the second attempt seeing as it wouldn't let me combine them together
kichik#
Well, that's where Windows says the templates should go. If it's not the right place for you, you can skip $TEMPLATES and go with $APPDATA\Microsoft\Templates\Custom.
Kaos61#
THANK YOU THANK YOU THANK YOU!! It works! It was the roaming/non-roaming thing that had me stumped.