After spending some time with this package, I have a small dilemna.

Explorer is holding a .dll hostage. Once I kill explorer than relaunch it, I can delete the file. I am creating an MSI that will need to remove this file upon uninstall. The file however, will most likely need to be removed after a reboot, unless someone else has a better way of doing this.?.?

I figured maybe the runonce item in the registry with a batch file, but where do I put the batch file?

Any other assistance would be greatly appreciated.

Thank You.
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
Build your MSI in the usual way. The Windows Installer engine will handle this for you. Just be sure to get the Reboot stuff right, according to whether you want to force a reboot or let the user take care of it.
Answered 08/12/2009 by: VBScab
Red Belt

Please log in to comment
0
For some reason, it's not working. :(

The file is not being deleted by windows installer because it's being held hostage by Explorer. Only until I kill explorer then relaunch, am I able to delete the .dll.
Answered 08/12/2009 by: Secondlaw
Third Degree Blue Belt

Please log in to comment
0
have u checked the other usual crap? file versioning, date, etc...? and after a reboot, no luck? what about the logs.. what does it say on attempting to copy the file? is it marked for deletion?

just wondering: anything in HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\PendingFileRenameOperations??
Answered 08/12/2009 by: kiptek
Second Degree Green Belt

Please log in to comment
0
Yes, the dll is listed under "PendingFileRenameOperations" but nothing happens with it.
Answered 08/12/2009 by: Secondlaw
Third Degree Blue Belt

Please log in to comment
0
Youneed to kill IE, then do your install... just the same as when installing via GUI & it pops up & tells you that there is program that needs to be closed b4 installation continues. How are you deploying this? There are many scripts available to kill IE & other tasks online... just make sure you sequence it right.don't complicate a relatively simple issue.
Answered 08/12/2009 by: kiptek
Second Degree Green Belt

Please log in to comment
0
IE is not active... Explorer is active.

On another note, I have a correction... The .dll is deleted upon reboot... The directory is left behind. I just need to kill that directory after a reboot.
Answered 08/12/2009 by: Secondlaw
Third Degree Blue Belt

Please log in to comment
0
sometimes you just have to force a reboot. throw in a runonce key or something in active setup to kill the directory if it REALLY has to get deleted
Answered 08/12/2009 by: kiptek
Second Degree Green Belt

Please log in to comment
Answer this question or Comment on this question for clarity