INF install issue on OS > XP

Hey guys, I was searching the archives but couldn’t find the answer, and I am sure this was talked about before.

I have a filter driver being installed through an MSI, where I run:

$WINDIR$\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall 132 $TARGETDIR$\i386\driver.inf

It works great. On Windows 2000 after that part installs, the MSI does some last minute clean up, and then prompts for a reboot.

On XP however, when I run the INF it immediately prompts for a reboot, and then the MSI prompts again. In some cases, the installer fails to finish cleaning up as the system starts a shutdown.

Now I know this is more an installer issue, but I was wondering if there is a way around this that you guys may have found. Suppressing the reboot prompt on the INF install portion would work best, allowing the MSI to do its cleanup and then prompt for a reboot.

Anyone know how I should approach this?


Regards,
Dana Epp
[Blog: http://silverstr.ufies.org/blog/]

Hi
What we did to “solve” this problem was to set the start type to disabled in
the inf file. This prevents the system prompting for reboot. After calling
InstallHinfSection we manually set the start type in the registry to boot.
If someone has a better solution please let me know. Supposedly passing 132
to InstallHinfSection should prevent the prompt, but this is not so in XP.

Regards
Jorge

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dana Epp
Sent: Friday, July 16, 2004 3:27 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] INF install issue on OS > XP

Hey guys, I was searching the archives but couldn’t find the answer, and I
am sure this was talked about before.

I have a filter driver being installed through an MSI, where I run:

$WINDIR$\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall
132 $TARGETDIR$\i386\driver.inf

It works great. On Windows 2000 after that part installs, the MSI does some
last minute clean up, and then prompts for a reboot.

On XP however, when I run the INF it immediately prompts for a reboot, and
then the MSI prompts again. In some cases, the installer fails to finish
cleaning up as the system starts a shutdown.

Now I know this is more an installer issue, but I was wondering if there is
a way around this that you guys may have found. Suppressing the reboot
prompt on the INF install portion would work best, allowing the MSI to do
its cleanup and then prompt for a reboot.

Anyone know how I should approach this?


Regards,
Dana Epp
[Blog: http://silverstr.ufies.org/blog/]


Questions? First check the IFS FAQ at
https://www.osronline.com/article.cfm?id=17

You are currently subscribed to ntfsd as: xxxxx@segurmatica.com
To unsubscribe send a blank email to xxxxx@lists.osr.com

Jorge,

Thats an interesting approach. I will have to try it. Thanks!

I had the same assumptions as you for passing 132, but for some reason it isn’t the case. If this works though, thats fine… I can simply add the registry change in the cleanup of the MSI.

Thanks again for the tip!

Jorge Lodos wrote:

Hi
What we did to “solve” this problem was to set the start type to disabled in
the inf file. This prevents the system prompting for reboot. After calling
InstallHinfSection we manually set the start type in the registry to boot.
If someone has a better solution please let me know. Supposedly passing 132
to InstallHinfSection should prevent the prompt, but this is not so in XP.

Regards
Jorge

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of Dana Epp
Sent: Friday, July 16, 2004 3:27 PM
To: Windows File Systems Devs Interest List
Subject: [ntfsd] INF install issue on OS > XP

Hey guys, I was searching the archives but couldn’t find the answer, and I
am sure this was talked about before.

I have a filter driver being installed through an MSI, where I run:

$WINDIR$\System32\rundll32.exe setupapi,InstallHinfSection DefaultInstall
132 $TARGETDIR$\i386\driver.inf

It works great. On Windows 2000 after that part installs, the MSI does some
last minute clean up, and then prompts for a reboot.

On XP however, when I run the INF it immediately prompts for a reboot, and
then the MSI prompts again. In some cases, the installer fails to finish
cleaning up as the system starts a shutdown.

Now I know this is more an installer issue, but I was wondering if there is
a way around this that you guys may have found. Suppressing the reboot
prompt on the INF install portion would work best, allowing the MSI to do
its cleanup and then prompt for a reboot.

Anyone know how I should approach this?


Regards,
Dana Epp
[Blog: http://silverstr.ufies.org/blog/]