Reinstall of a MSI failing if i don't reboot.
I have 2 MSI packages and the only difference between them are some HKCU registries.
For some complicated reasons i could not create a patch with those registries and apply it over the 1st MSI. So i had to take the MSI, add the modifications to it and save it as a 2nd MSI which will be deployed instead of the 1st one. For the machines on which the 1st MSI is already installed i have to uninstall it first and then install the modified MSI. There can't be any reboot/logoff between the uninstall and install.
The problem is that if i don't reboot after the uninstall i get the following error:
Error 1923.Service vfsdrv (vfsdrv) could not be installed. Verify that you have sufficient privileges to install system services.
If i click Ignore then the MSI installs with RC 0 and the service works fine, but this is not an option :(
The Event Viewer says:
The windream VFS Service service is marked as an interactive service. However, the system is configured to not allow interactive services. This service may not function properly.
The Interact with Desktop service argument in the MSI is set to Yes, but if i change it to NO i still get the error.
I did a registry monitoring to see what is changes at reboot, and found the PendingFileRenameOperations reg was deleted and the entry under: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Enum\Root\LEGACY_ VFSDRV.
I manually deleted these and also checked for them under ControlSet001 and 002, but still i get the error.
Now the problem is easily fixed if a do the reboot, but, as i said, i cannot :(
So, what is the OS doing at reboot and how can i reproduce it manually? The OS is Win7 Enterprise.
Thank you in advance