WINAMP.COM | Forums > Developer Center > NSIS Discussion > LogEx plugin |
| Pages (2): [1] 2 » |
Last Thread
Next Thread
|
| Author |
|
|
palecekp Junior Member
Registered: Feb 2007 |
stack problem
Hi, |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
RE: stack problem
Hi, |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
I found a small bug with v0.2 |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
P.S.: the example in the first post doesn't work anymore. |
||
|
|
|
palecekp Junior Member
Registered: Feb 2007 |
Re: RE: stack problem
Hi, |
||
|
|
|
djg72 Junior Member
Registered: Mar 2007 |
Problems with Append
I am trying to write a script using LogEx. It installs SQL Express and then reboots. I seem to only get log entries from after the reboot. code: Which created a file named "bAppendToFile" on my desktop. I also tried: code: Which didn't seem to create a file at all. I may have my syntax wrong, could you post an example with the correct syntax for appending to a file? Thanks. |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Hello djg72, When you use the following code:code: and the logfile already exists, the existing data will not be deleted.code: Hope this will help you. Best regards, Jan Pieter |
||
|
|
|
djg72 Junior Member
Registered: Mar 2007 |
Thanks
Thank you for your reply. I had originally tried using the line you suggested and it didn't work. Thank you also for clearing up that 'bTruncateFile' and 'bAppendFile' are the true and false of the same variable. code: To this: code: Maybe this will help someone. Thanks again for your help and this plugin works great. |
||
|
|
|
lushdog Junior Member
Registered: Jul 2007 |
I'm getting a "ÿþ" when I try to append a few particular files to the log. |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Can you send me a log file? |
||
|
|
|
lushdog Junior Member
Registered: Jul 2007 |
It's because the SQL server log uses UTF-Little Endian encoding rather than ASCII. |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
It's 'part' of the command shell. |
||
|
|
|
lushdog Junior Member
Registered: Jul 2007 |
Or: |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Your welcome. |
||
|
|
|
fantrs91 Junior Member
Registered: Apr 2008 |
Hi, |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Hi, |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Hi, |
||
|
|
|
fantrs91 Junior Member
Registered: Apr 2008 |
Hi, |
||
|
|
|
baxi Junior Member
Registered: Oct 2008 |
Read right on the file
I tried your plugin and found it to be quite usefull. I have only one problem with it: the file cannot be read while it is opened via your plugin. I would suggest the to change the dwShareMode parameter in the CreateFile function at least to 1: |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Hello baxi, |
||
|
|
|
baxi Junior Member
Registered: Oct 2008 |
Hi, |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Thanks for trying and letting me know. |
||
|
|
|
knippenberg Junior Member
Registered: Nov 2008 |
LogEx with NSIS Unicode branch
Hi JP, |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Hi Stefan, |
||
|
|
|
knippenberg Junior Member
Registered: Nov 2008 |
Hi JP, code: The call to Init seems to create the "t" file, and all succeeding calls to Write seem to add one line with the letter t or f to the file, most probably depending on which parameters I use. At the point of the init call, the directory for INSTALL_LOGFILE already exists. Any idea what I'm doing wrong here? Thanks, Stefan |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Hi Stefan, |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Hi Stefan, |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
I uploaded v0.7.1, which now uses the PluginCallback function from the new NSIS API lib, so /NOUNLOAD is no longer required. |
||
|
|
|
knippenberg Junior Member
Registered: Nov 2008 |
Hi JP, |
||
|
|
|
knippenberg Junior Member
Registered: Nov 2008 |
Hi again, |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Hi Stefan,
|
||
|
|
|
jimpark Senior Member
Registered: Sep 2007 |
I was able to make the LogEx plugin work simply by using the right pluginapi.lib. However, the DosEx plugin needs to be ported over also for the exampleu.nsi to work. __________________ |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Hi Stefan, |
||
|
|
|
knippenberg Junior Member
Registered: Nov 2008 |
Hi JP, |
||
|
|
|
silo5 Junior Member
Registered: Mar 2009 |
Hi JP, I'm using your plugin, version 0.7.2, thank you. Last edited by silo5 on 03-23-2009 at 02:46 PM |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Hi silo5, |
||
|
|
|
silo5 Junior Member
Registered: Mar 2009 |
Enjoy your vacation! |
||
|
|
|
jpderuiter Senior Member
Registered: Feb 2007 |
Hi silo5, code: instead. As no "true" is found, it assumes it's false. When checking for your second issue, I found that the logfile is released as soon as Logex::Close is called. (The logfile is locked indeed while the Logex plugin has it opened). Also calling Delete $logfile afterwards removed the logfile from my system. Can you give me a script in which this issue happens, so that I can reproduce it? Regards JP |
||
|
|
|
silo5 Junior Member
Registered: Mar 2009 |
|
||
|
|
|
| Pages (2): [1] 2 » |
Last Thread Next Thread
|
WINAMP.COM | Forums > Developer Center > NSIS Discussion > LogEx plugin |
Forum Rules:
|