|
|
|
|
#1 |
|
Junior Member
Join Date: Jul 2010
Posts: 14
|
Quit NSIS if REG Entry Not Present
I am not new to NSIS, but I am not familiar with most of the advanced functions. Right now, my installer reads the reg entry and sets it as the default install path, and shows the standard Instfiles page. What I want to be able to do, is run a check when the installer runs (oninit right?) that will check for that reg entry and display a dialogue if it is not found, and when it displays that dialogue, it should exit afterword. What is the best way to go about doing this?
|
|
|
|
|
|
#2 |
|
Major Dude
Join Date: Feb 2007
Posts: 672
|
|
|
|
|
|
|
#3 | |
|
Junior Member
Join Date: Jul 2010
Posts: 14
|
Quote:
code: I hope I don't seem lazy, I would just like an example to work from. |
|
|
|
|
|
|
#4 |
|
Major Dude
Join Date: Feb 2007
Posts: 672
|
Read the value from registry:
http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.2.12 Check for errors: http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.4.9 Show Messagebox: http://nsis.sourceforge.net/Docs/Chapter4.html#4.9.4.15 |
|
|
|
|
|
#5 | |
|
Junior Member
Join Date: Jul 2010
Posts: 14
|
Quote:
|
|
|
|
|
|
|
#6 | |
|
Major Dude
Join Date: Feb 2007
Posts: 672
|
Quote:
code: |
|
|
|
|
|
|
#7 |
|
Moderator
Join Date: Nov 2002
Location: Surrey, England
Posts: 8,434
|
Call ClearErrors before ReadRegStr as well in case you later add code which sets the error flag resulting in an incorrect Abort.
Stu |
|
|
|
|
|
#8 |
|
Junior Member
Join Date: Jul 2010
Posts: 14
|
|
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|