File in $PLUGINSDIR can't be opened: Difference between revisions

From NSIS Wiki
Jump to navigationJump to search
m (Added category links.)
m (Adding new author and category links.)
Line 1: Line 1:
{|align=right
{{PageAuthor|virtlink}}
|<small>Author: [[{{ns:2}}:virtlink|virtlink]] ([[{{ns:3}}:virtlink|talk]], [[{{ns:-1}}:Contributions/virtlink|contrib]])</small>
 
|}
<br style="clear:both;">
; Issue
; Issue
: A file (for example, a text file containing release notes) which is extracted to the $PLUGINSDIR can sometimes not be opened in another program (i.e. notepad.exe) at the end of the installation.
: A file (for example, a text file containing release notes) which is extracted to the $PLUGINSDIR can sometimes not be opened in another program (i.e. notepad.exe) at the end of the installation.
Line 12: Line 10:
: You should place the file(s) in a permanent directory, like the $TEMP directory or the $INSTDIR directory.
: You should place the file(s) in a permanent directory, like the $TEMP directory or the $INSTDIR directory.


[[{{ns:14}}:Minor Issues]]
[[Category:Minor Issues]]

Revision as of 12:12, 24 June 2005

Author: virtlink (talk, contrib)


Issue
A file (for example, a text file containing release notes) which is extracted to the $PLUGINSDIR can sometimes not be opened in another program (i.e. notepad.exe) at the end of the installation.
Cause
The installer immideately removes the $PLUGINSDIR directory and it's contents after the installer quits. This causes any file which resides in the $PLUGINSDIR directory to be deleted when the installer quits, while the program tries to reach it.
Solution
You should place the file(s) in a permanent directory, like the $TEMP directory or the $INSTDIR directory.