Hello,
I would like to create a test MSI package, which leaves your machine in a pending reboot state letting the Windows Update service indicate a reboot request for the user.
Shall I try to overwrite a file being used during the installation?
Thanks.
How to leave your machine in a pending reboot state ?
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: How to leave your machine in a pending reboot state ?
Dear Tommy,
for what I know, any pending state should be stored under;
- "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending"
- "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations "
- "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired "
... but honestly I never had the need to programmatically set such condition.
Anyway you may try to overwrite a file being used during the installation, the MSI engine should automatically set the pending state in such cases.
Doing a google search I found this tool (which seems to be free) "http://exodusdev.com/products/whyreboot" ... you may try to see how it works.
Hope this helps you.
Regards
for what I know, any pending state should be stored under;
- "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\RebootPending"
- "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations "
- "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update\RebootRequired "
... but honestly I never had the need to programmatically set such condition.
Anyway you may try to overwrite a file being used during the installation, the MSI engine should automatically set the pending state in such cases.
Doing a google search I found this tool (which seems to be free) "http://exodusdev.com/products/whyreboot" ... you may try to see how it works.
Hope this helps you.
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: How to leave your machine in a pending reboot state ?
Thank you for your answer. I need this actually to set up a test case of an automated installation powered by Powershell.
I am trying to overwrite the file but the installer just hangs.
I have set no attributes, properties and copy options on the "install Files" dialog.
I am trying to overwrite the file but the installer just hangs.
Code: Select all
Run Program d:\temp\timeout /T -1 /NOBREAK (WAIT)
Install Files D:\Temp\timeout.exe to d:\temp
I have set no attributes, properties and copy options on the "install Files" dialog.
Re: How to leave your machine in a pending reboot state ?
Can I launch this in the bootstrapper somehow ?
Otherwise the installer hangs since it can not overwrite any file what it has itself started.
Code: Select all
Run Program d:\temp\timeout /T -1 /NOBREAK (WAIT)
Otherwise the installer hangs since it can not overwrite any file what it has itself started.
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: How to leave your machine in a pending reboot state ?
if I haven't missed your question, you may try to use "Run Program" to execute "cmd.exe" and then to pass all the rest as "Run Program" parameters.
http://www.installaware.com/forum/viewtopic.php?f=2&t=4603
Regards
http://www.installaware.com/forum/viewtopic.php?f=2&t=4603
Regards
Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Re: How to leave your machine in a pending reboot state ?
No. I just would like to run with "Run Program" and in the next line I would like to install timeout.exe into d:\temp. But I guess the MSI engine can not do this unless timeout.exe started by another process.
Code: Select all
d:\temp\timeout.exe
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: How to leave your machine in a pending reboot state ?
Honestly ...I haven't tried and I suppose as you that very probably it can't be possible.


Francesco Toscano
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
InstallAware Software
White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE
Who is online
Users browsing this forum: No registered users and 101 guests