|
|
|
|
#1 |
|
Guest
Posts: n/a
|
WRITE INI while compiling
Hi
I need help. I have a script, that installs a set of new files into a program. After the setup a INI file I updated by the new version number, that is set manually. I want to change the script, but i do not know how to handle. How is it possible to write the INI file during the compilation, before the files are packed into the setup? Here is the script. Hope you can help: code: |
|
|
|
#2 |
|
Major Dude
Join Date: Oct 2006
Posts: 1,892
|
You can create an nsis exe, or bat, or vbs script, that writes data to the ini. You can execute this exe/whatever during compilation using !execute or !system. See chapter 5 for details: http://nsis.sourceforge.net/Docs/Chapter5.html
|
|
|
|
|
|
#3 | |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Quote:
You can fake a .ini file with !appendfile... IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
|
#4 |
|
Senior Member
Join Date: May 2009
Posts: 152
|
I personally prefer to use AutoIt for compile time scripting when NSIS is impractical or to complicated.
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|