Using environment variable for adxloader log file location

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

Using environment variable for adxloader log file location
Custom location 
RikardG




Posts: 95
Joined: 2009-10-19
Hi,

According to the post "//www.add-in-express.com/forum/read.php?MID=43620#message43620" you were going to add the feature of being able to use an environment variable for the adxloader log file location.

Is this implemented?

Regards
Posted 05 Jul, 2011 06:57:28 Top
Andrei Smolin


Add-in Express team


Posts: 16846
Joined: 2006-05-11
Hello,

Yes, it is implemented in Add-in Express 2010 for Office and .NET, 6.4.3056. The keyword is LogFileLocation.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 05 Jul, 2011 07:04:29 Top
RikardG




Posts: 95
Joined: 2009-10-19
OK. I got it to work with the AppDataFolder variable when the specified folder did exists when the log file was to be created. But when the log folder did not exists, the log file was not created. Did I do something wrong?

I specified the following in the manifest file:

<logFileLocation>%AppDataFolder%\MyProduct\Logs\MyLog.txt</logFileLocation>

Regards
Posted 06 Jul, 2011 02:13:22 Top
Andrei Smolin


Add-in Express team


Posts: 16846
Joined: 2006-05-11
Make sure that you replaced loader files in your project with their newer versions in {Add-in Express}\Redistributables.

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 06 Jul, 2011 05:09:04 Top
RikardG




Posts: 95
Joined: 2009-10-19
I have version 6.4.3056.0 of the loader and I can't find any newer.
Posted 07 Jul, 2011 04:40:43 Top
Andrei Smolin


Add-in Express team


Posts: 16846
Joined: 2006-05-11
Does the user have appropriate permissions? Can you try creating a folder in that location?

Regards from Belarus (GMT+2),

Andrei Smolin
Add-in Express Team Leader
Posted 07 Jul, 2011 05:16:08 Top