Maciej Chojnacki
Posts: 15
Joined: 2010-10-05
|
Quick one.
How to make logFileLocation target path relative?
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<assemblyIdentity name="AddOn, PublicKeyToken=*********" />
<loaderSettings generateLogFile="true" shadowCopyEnabled="true" privileges="administrator"
configFileName="AddOn.dll.config">
<logFileLocation>?????</logFileLocation>
</loaderSettings>
</configuration>
Thanks in advance. |
|
Eugene Astafiev
Guest
|
Hi Maciej,
Currently this feature is not added to Add-in Express 2010. However, we have such plans to add it. As a workaround you can add your own custom action to the MSI installer, for example, and then edit the adxloader.dll.manifest file manually according to the target OS. |
|
Maciej Chojnacki
Posts: 15
Joined: 2010-10-05
|
Hmm, I'm sure I've read in one of your articles that this is possible.
Just to ensure - I want to put log into same folder that adxloader lays.
Does it change anything?
[Edited] - I found article. Maybe you need to change that if it;s not true also I underlined words bout relative paths.
http://www.add-in-express.com/docs/net-deploying-addins.php
The manifest (adxloader.dll.manifest) is the source of configuration information for the loader. Below, you see the content of a sample manifest file.
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<assemblyIdentity name="MyAddin14, PublicKeyToken=f9f39773da5c568a" />
<loaderSettings generateLogFile="true" shadowCopyEnabled="true"
privileges="user"> configFileName="app.config"
<logFileLocation>C:\MyLog.txt</logFileLocation>
</loaderSettings>
</configuration>
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<assemblyIdentity name="MyAddin14, PublicKeyToken=f9f39773da5c568a" />
<loaderSettings generateLogFile="true" shadowCopyEnabled="true"
privileges="user"> configFileName="app.config"
<logFileLocation>C:\MyLog.txt</logFileLocation>
</loaderSettings>
</configuration>
The manifest file allows generating the log file containing useful information about errors on the add-in loading stage. The default location of the log file is {user profile}\Documents\Add-in Express\adxloader.log. You can change the location using the logFileLocation node; relative paths are also acceptable. The manifest file allows you to disable the Shadow Copy feature of the Add-in Express loader, which is enabled by default (see Deploying ?Â?Ð?ã shadow copy). The privileges attribute accepts the "user" string indicating that the Add-in Express based setup projects can be run with non-administrator privileges. Please, note, any other value will require administrator privileges to install your project. You should be aware that the value of this attribute is controlled by the RegisterForAllUsers property value of add-in and RTD modules (see Add-in Express Module basics). If RegisterForAllUsers is True and privileges="user", a standard user running the installer will be unable to install your Office extension. If RegisterForAllUsers is False and privileges="administrator", your Office extension will be installed for the administrator only.
|
|
Eugene Astafiev
Guest
|
|
Bernhard Schandl
Posts: 6
Joined: 2010-10-22
|
Hi Eugene,
can variables like %APPDATA% be used to set an absolute path?
Thanks,
Bernhard |
|
Eugene Astafiev
Guest
|
Hi Bernhard,
Nope. However, we have such plans to add this feature in the next builds of Add-in Express. |
|