resista
1st October 2002 17:35 UTC
Problem with Installoptions!
I have a problem. :(
I have three extra pages made with installoptions, where the users can choose their favourite programs to be set up in an ini file(My project installs a litestep distro)
However, if a user is just updating, then the ini file should not be touched! Is it possible to set a section not to show installoptioin pages if it is(or not) selected, and not to write the inistrings?
/resista
kichik
1st October 2002 17:46 UTC
Check if the user is updating and only call IO if he isn't. For example:
ReadRegStr$0 HKLM "Software\myApp" "installed"
>StrCmp $0 "yes" skip_io
; ....
; io stuff
; .....
>skip_io:
resista
1st October 2002 22:49 UTC
That is one solution, but, i would prefer letting the user choose to install as an update or full install!
kichik
2nd October 2002 12:07 UTC
So make an IO pages that will let the user choose and according to what the user chose, display, or don't display the required IO pages.