|
|
#1 |
|
Junior Member
Join Date: Apr 2007
Location: Houston
Posts: 20
|
Registry Data held in memory?
PHP Code:
If I run the installer and select two or more of the sections that run this check, all three will download and run the SQL. If I only choose one section the rerun the installer and add another section, the check works and the SQL is not loaded. I ran a test. I installed just one of the sections then put in code to halt the install. I had opened regedit prior to starting the installer. The regedit did not show the added key and value at the break. I then closed and restarted regedit and the key was there. I added a message box to display $R1 but it was blank all three times during the first run that SQL was not previously installed. If SQL was there before I ran the SQLinstaller, $R1 displayed the Version number. How do I get my installer to notice that a new registry key has been added without requiring the installer to be closed and restarted? |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Jun 2005
Posts: 211
|
Why not put the entire SQL Express check/install into one hidden section that is only run if any of the sections that require it need it?
|
|
|
|
|
|
#3 |
|
Senior Member
Join Date: Mar 2006
Location: Dallas
Posts: 442
|
I've seen new data appear in RegEdit without closing and reopening it, but sometimes I need to hit F5 Refresh. Have you tried that?
What OS are you running, maybe that makes some difference. Don |
|
|
|
|
|
#4 | |
|
Forum King
Join Date: Mar 2006
Location: Ath. GR
Posts: 2,078
|
Quote:
code: Quick AVI Creator - Quick and easy convert from DVD/MPEG/AVI/MKV to AVI/MP4/MKV Quick AVI Creator entirely edited with NSIS and entirely upgraded to Unicode NSIS |
|
|
|
|
|
|
#5 |
|
Junior Member
Join Date: Apr 2007
Location: Houston
Posts: 20
|
code: If I run this, $R1 is blank. Exit installer and check registry and this value is set. What am I missing? |
|
|
|
|
|
#6 |
|
Senior Member
Join Date: Mar 2006
Location: Dallas
Posts: 442
|
There's a good chance that the SQLInstaller.exe unpacks some files and then starts another exe. If it exits before the other exe finishes, your script will check the registry before the actual installer has created the entries, but they will be there when you check for them.
Verify the SQLInstaller.exe spawns another process and exits before it finishes with something like ProcExp.exe (Process Explorer) that can be downloaded from SysInternals Don |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|