Skip to content
⌘ NSIS Forum Archive

replacing file inside compiled setup

5 posts

is99#

replacing file inside compiled setup

I have a bit complicated question.

Lets say my setup include some source file - file.ini
I want to replace this file inside the setup without recompiling.

Maybe something like this, if a user will run setup.exe /r newfile.ini the file will be replace or sometihng like this.

Is it possible ?

Thanks.
Red Wine#
Here is recent similar thread,

Are you a developer who uses NSIS to distribute your application? Are you a Winamp plug-in developer who wants to use NSIS to distribute your plug-in? Have suggestions for other people like you? This is the place.
is99#
Thanks for your quick answer.
Unfortunatly it dosn't help me too much, but knowing it can't be done so easy its also a good thing.

Tell me one more thing can I work in NSIS with /something after the setup? I mean can I write something like setup.exe /r and then iside the setup detect this /r and open a custom page or sometihng like this?
Red Wine#
Tell me one more thing can I work in NSIS with /something after the setup? I mean can I write something like setup.exe /r and then iside the setup detect this /r and open a custom page or sometihng like this?
It's possible combining ${GetParameters} and ${GEtOptions}.