read from a file while installation in nsis but do no copy it on the destination pc


I want to display the version on the installation dialog pages of nsis, by reading the version from a text file, but i have to copy this on the destination pc where the executable is run, but i want that the text file is not copied on the user's pc but is only read from,

that is,

i want to include this file into the exe, and read text from it to display on the nsis dialog pages, but not copy it anywhere on the pc wherever the exe is run?

is this possible? or is there any other way of doing this?


In general, you can use $PLUGINSDIR constant. It is de-facto temporary directory on target system and you can put there something and use. Following code will copy the file into the temporary directory on the target machine, but whole directory will be deleted after the installation completion. (InitPluginsDir is needed somewhere before)

InitPluginsDir File /oname=$PLUGINSDIR\blah.txt "..\myfile.txt"

But in your case, it could be better to solve it in some other way. You can define some constant containing version number and use it in the code, can't you? The !define command could be in generated file so you can automate it...


  • How to preserve alias property while signing app?
  • How to package a jar and all dependencies within a new jar with maven
  • How to write string.Contains(someText) in expression Tree
  • Use neo4j server instead of embedded mode
  • What do I do with this error when I run tests in rails?
  • Visual studio alerts workspace already exists
  • Automapper missing type map configuration or unsupported mapping
  • Unable to run SDL program in Eclipse but able to do so in Windows Explorer
  • How to send control C to Mac Terminal using python?
  • Why is django manage.py syncdb failing to create new columns on my development server?
  • Are there any libraries for Python to simulate keyboard action?
  • Find VMID for running instance
  • include dlls in visual studio c++ 2008
  • ImportError: cannot import name Pubnub
  • NSIS decompiler
  • netsh acl setting (need alternative method - registry settings?)
  • aapt.exe'' finished with non-zero exit value 1
  • Pass Dictionary to Javascript array
  • NUnit 3.0 TestCase const custom object arguments
  • Tamper-proof configuration files in .NET?
  • Code in Job's Script Block after Start-Process Does not Execute
  • Time complexity of a program which involves multiple variables
  • Running a C# exe file
  • Why is the timeout on a windows udp receive socket always 500ms longer than set by SO_RCVTIMEO?
  • SVN: Merging two branches together
  • Hibernate gives error error as “Access to DialectResolutionInfo cannot be null when 'hibernate.
  • InvalidAuthenticityToken between subdomains when logging in with Rails app
  • Buffer size for converting unsigned long to string
  • SQL merge duplicate rows and join values that are different
  • Free memory of cv::Mat loaded using FileStorage API
  • Hits per day in Google Big Query
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • Can Visual Studio XAML designer handle font family names with spaces as a resource?
  • How to get Windows thread pool to call class member function?
  • LevelDB C iterator
  • Authorize attributes not working in MVC 4
  • Can't mass-assign protected attributes when import data from csv file
  • Busy indicator not showing up in wpf window [duplicate]
  • Python/Django TangoWithDjango Models and Databases
  • Net Present Value in Excel for Grouped Recurring CF