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
- :
- Have the answer
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
‎Aug 12, 2010
08:49 PM
RunOnce values seem to execute during MSI installs
I'm seeing some interesting behavior. If I have a value in the RunOnce registry key, it seems that if I run another install, that value is being executed. I was under the impression that this would only be executed on reboot.
Does anyone know why this is executed? If so, does anyone know where in the sequence this get executed?
Thanks.
Scott
Does anyone know why this is executed? If so, does anyone know where in the sequence this get executed?
Thanks.
Scott
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 13, 2010
08:29 AM
Hmm, doesn't sound familiar; so if you have a RunOnce entry that launches notepad.exe, it'll run somewhere during installation?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 13, 2010
01:31 PM
Hi Robert,
I figured out the cause. I'm installing a driver using the command:
"rundll32.exe SETUPAPI.DLL,InstallHinfSection DefaultInstall 128 .\Some.inf"
Apparently, this has a side effect of immediately executing all entries in the RunOnce registry key:
http://support.microsoft.com/kb/281820
I figured out the cause. I'm installing a driver using the command:
"rundll32.exe SETUPAPI.DLL,InstallHinfSection DefaultInstall 128 .\Some.inf"
Apparently, this has a side effect of immediately executing all entries in the RunOnce registry key:
http://support.microsoft.com/kb/281820
![](/skins/images/7674467D6278680F3FD526C8217C9173/responsive_peak/images/icon_anonymous_message.png)