Old 14th October 2004, 06:02   #1
saritha
Junior Member
 
Join Date: Jul 2004
Posts: 6
How can start log viewer in windows xp

Hi Iam writing an installer script which has gui menu It has menu-options like connect, disconnect, and view log and this gui stats in systray.

For view log menu item iam defining
! Define GUI_LOG_VIEWER "$WINDIR\norepad.exe"
! Define GUI_EDITOR "$WINDIR\norepad.exe"



For windows 2000 these are working well and fine but ……in windows xp ...if I click view log it’s giving error………like this "Error start-log-viewer C:\winnt\notepad.exe"

Can u tell me How can start log viewer in windows xp?
saritha is offline   Reply With Quote
Old 14th October 2004, 14:50   #2
Afrow UK
Moderator
 
Afrow UK's Avatar
 
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
Use
code:
ExecShell "open" "File.log"


On older Windows versions, Notepad is in $WINDIR, but on the latter versions (XP) I seem to remember Notepad is in $SYSDIR

-Stu
Afrow UK is offline   Reply With Quote
Old 15th October 2004, 06:03   #3
flizebogen
Senior Member
 
Join Date: Jan 2002
Location: Berlin
Posts: 172
In my Opion using ShellExec is not this good because .log doenst have to be associated with Notepad.

Nevertheless i think you can call Notepad without knowing it's Location because it's Location is a Directory with is in the "Path" Environemnt.
flizebogen 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