Old 4th May 2017, 07:30   #1
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Xi'an, China
Posts: 206
Question How to modify the log file name and file path?

Hello all,
How to modify the log file name and file path?
The default file name currently is install.log, the default path $INSTDIR.

THX

Born in: Xi'an, China
Live in: Shanghai, China
Name: 賈可(zh-Hant, trad.), 贾可(zh-Hans, simp.), Jia Ke (Pinyin).
Email: jiake@vip.qq.com
QQ: 137729898
jiake is offline   Reply With Quote
Old 4th May 2017, 10:20   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 4,557
The filename is hardcoded, you must recompile NSIS or hex-edit the stubs to change it.

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 4th May 2017, 10:34   #3
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Xi'an, China
Posts: 206
Quote:
Originally Posted by Anders View Post
The filename is hardcoded, you must recompile NSIS or hex-edit the stubs to change it.
Thank you for reply.

I want to install and uninstall all the different logs.
Specify the storage path.
It is easy to see when problems arise.

Is it possible to support this feature in future releases?

Thank you!

Born in: Xi'an, China
Live in: Shanghai, China
Name: 賈可(zh-Hant, trad.), 贾可(zh-Hans, simp.), Jia Ke (Pinyin).
Email: jiake@vip.qq.com
QQ: 137729898
jiake is offline   Reply With Quote
Old 4th May 2017, 11:20   #4
jiake
Senior Member
 
jiake's Avatar
 
Join Date: Oct 2007
Location: Xi'an, China
Posts: 206
I modified the [Ui.c] and recompiled to meet my needs.

Line 166:
Quote:
mystrcat(addtrailingslash(mystrcpy(g_log_file,state_output_directory)),_T("install.log"));
This allows you to specify a path using [SetOutPath] before [LogSet on].

Born in: Xi'an, China
Live in: Shanghai, China
Name: 賈可(zh-Hant, trad.), 贾可(zh-Hans, simp.), Jia Ke (Pinyin).
Email: jiake@vip.qq.com
QQ: 137729898
jiake is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump