Skip to content
⌘ NSIS Forum Archive

Problem with Installoptions!

4 posts

resista#

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#
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#
That is one solution, but, i would prefer letting the user choose to install as an update or full install!
kichik#
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.