This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- This problem is driving me crazy
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Oct 22, 2009
02:14 PM
Installing SQL 2008 Express sometimes fails because of pending reboot
SQL 2008 Express is installed silently as a prerequisite, but sometimes fails because of a pending reboot. The problem is that the error message is not very informative for the user.
Does anyone have an idea how to detect a pending reboot before installing the SQL 2008 Express prerequisite and inform the user to reboot before continuing?
Does anyone have an idea how to detect a pending reboot before installing the SQL 2008 Express prerequisite and inform the user to reboot before continuing?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Nov 11, 2009
08:22 AM
You can check for the "PendingFileRenameOperations" under registry key"HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager"
//Sample code
------------------------------------------------------------------------
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
szKey="SYSTEM\\CurrentControlSet\\Control\\Session Manager";
nType=REGDB_STRING_MULTI;
szName="PendingFileRenameOperations";
if(RegDBGetKeyValueEx(szKey,szName,nType,szValue,nSize)!=0) then //registry not found
return FALSE; //no pending reboot
else
return true; //reboot required
endif;
------------------------------------------------------------------------
//Sample code
------------------------------------------------------------------------
RegDBSetDefaultRoot(HKEY_LOCAL_MACHINE);
szKey="SYSTEM\\CurrentControlSet\\Control\\Session Manager";
nType=REGDB_STRING_MULTI;
szName="PendingFileRenameOperations";
if(RegDBGetKeyValueEx(szKey,szName,nType,szValue,nSize)!=0) then //registry not found
return FALSE; //no pending reboot
else
return true; //reboot required
endif;
------------------------------------------------------------------------
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎May 24, 2010
03:48 AM
How can i detect this? is there another way?
i am running few changed prerequisites and this is messing my installer.
please help! :confused:
i am running few changed prerequisites and this is messing my installer.
please help! :confused: