|
|
#1 |
|
Senior Member
Join Date: Jul 2008
Posts: 157
|
A baffling problem: The following line runs PERFECTLY in an NSIS script:
PHP Code:
PHP Code:
Please note that I am not asking about the 'assoc' internal Windows command (I also know about the alternative File Association plugin). I am merely trying to understand why the behavioral change of nsExec::Exec when adding redirection to a log file. Thanks.
|
|
|
|
|
|
#2 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
In what way does it ruin the association?
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#3 | |||
|
Senior Member
Join Date: Jul 2008
Posts: 157
|
Quote:
![]() To this (incorrect) context menu: ![]() I also compared the registry before and after and the only relevant difference that I was able to spot is: OK: Quote:
Quote:
|
|||
|
|
|
|
|
#4 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
Try getting rid of the space before the >.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
|
|
#5 | |||
|
Senior Member
Join Date: Jul 2008
Posts: 157
|
Quote:
It turns out that this problem exists in the command.com prompt (in Windows XP at least) without regard to NSIS. The following works: Quote:
Quote:
|
|||
|
|
|
|
|
#6 |
|
Moderator
Join Date: Nov 2002
Location: Birmingham, England
Posts: 8,202
|
It's more likely just how assoc.exe parses its command line. Command Prompt will give it everything before the > including the space.
Stu Need an installer? http://www.afrowsoft.co.uk |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|