Archive: Custom page - Displayed twice


Custom page - Displayed twice
  Hi @ all,

i have a problem with custom pages.

My custom page is displayed correctly.
(after the !insertmacro MUI_PAGE_INSTFILES)
When i click next on custom page
my finish page appears (thats correct too)

but if i click finish the installer jumps
back to custom page. If i click next again
and then finish (at finish page) the
installer exit.

maybe anyone knows that problem ;)


maybe if you show us part of your code where you put the page sequence... ;)
Also remember that happen to me when I try to use old scripts in new compiler...


omg...

while i was copying my code...
i saw my fault :( I just added it two times.
*call me stupid*

But it´s a great time to ask
a new question.

I used in my custom page a function
that writes the user input to a file
(it works)

But when the user is at finish page
clicks on "back" and change his values
its written two times in the file.

because the function only adds the user input
in a predefined line.


How can i "change" the line when the user
decides to change his values.
(maybe a delete - add new method or something else)


This thing pops in my head now:


PSEUDO CODE


>Var /global DoIt
>; In some point
$DoIt= 1 ;true

>; some custom page
>Function "SomePage"
>${if} DoIt = 1
WriteMe
>${endif}
>FunctionEnd

>; Some page exit
Function "MyFinishLeave"
>DoIt = 0
FunctionEnd
>

What are you currently using for line replacement? LineFind is a nice function that enumerates file lines and allows you to replace each of them.


did not have any line replacement,
just added a new line :)

joel: think this will not update lines
it just gives me the possibility to
add it only once.

but if user change values it should be updated
i guess. line replacement seems to be the right
keyword here - whats the syntax of linefind?

(i will look it up - just pre-asked if i do not find it.)


For all other users who would like to do the same,
i am going to use this now:

http://nsis.sourceforge.net/Replace_...ecified_string

Edit: Works great