Cannot install font on Windows 7

Add-in Express™ Support Service
That's what is more important than anything else

Cannot install font on Windows 7
 
David Canek


Guest


Hi,

I have added one TTF file in the 'Fonts Folder' of the ADX setup project. On Windows XP, the font gets correctly installed in C:\Windows\Fonts. On Windows 7, I am getting this error message: 'Error writing to file: C:\Windows\Fonts\myfont.ttf. Verify that you have access to that directory.' Do you have an idea what might help? I was thinking about changing InstallAllUsers to True (but would like to avoid such a solution).

Thanks.
Posted 26 Sep, 2011 02:04:21 Top
Andrei Smolin


Add-in Express team


Posts: 19213
Joined: 2006-05-11
Hi David,

To write to that folder, you must have administrative permissions. The only scenario in which having administrative permissions makes any sense is installing a per-user add-in. For how to create a per-machine add-in and how to deploy it, see http://www.add-in-express.com/creating-addins-blog/2011/02/22/deploying-permachine-office-extensions-msi-installer/ and http://www.add-in-express.com/creating-addins-blog/2011/02/28/deploying-office-extensions-clicktwice/.


Andrei Smolin
Add-in Express Team Leader
Posted 26 Sep, 2011 03:14:04 Top
David Canek


Guest


Thank you Andrei,

it seems that /UAC=On in the following command is enough:

"C:\Program Files\Add-in Express\Add-in Express for .NET\Bin\adxpatch.exe" "$(BuiltOuputPath)" /UAC=On
Posted 26 Sep, 2011 04:16:42 Top
Andrei Smolin


Add-in Express team


Posts: 19213
Joined: 2006-05-11
Hi David,

You can create a new empty add-in, set RegisterForAllUsers in its add-in module in the same way as you ghave in your real add-in, build the add-in project, create a setup project and check if it also has the "/UAC=On" parameter in the PostBuild event.


Andrei Smolin
Add-in Express Team Leader
Posted 26 Sep, 2011 04:35:57 Top