I have a requirement where when I uninstall my MSI, one DLL gets left behind. This is because that DLL is being used by explorer.exe. I came to know this because if you end the explorer.exe and then manually delete the DLL it gets deleted. Since as per my customer I cannot kill the explorer.exe task during install and again restart it after the DLL is deleted (moreover this will create problems in system account, because the explorer.exe will open for the System user), so I wrote something like an active setup that will delete this DLL during Logon after reboot.

But in Windows 7, to remove any file/folder from C:\program Files, admin access prompt will be required, which is not the case on XP. Is there any way, we can have a program run as system context during logon using the functionality of Active setup.

In a nutshell, my problem is simple. I want to run something the first time any user logs on, but to run with Admin/System rights. Can we do it on Win 7?
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
You mean, like an MSI with an entry in the RemoveFile table, deployed by Group Policy?
Answered 09/15/2010 by: VBScab
Red Belt

Please log in to comment
0
Will Group Policy remove a file that is being used by a running process?
Answered 09/15/2010 by: ghosh.kunal
Senior Yellow Belt

Please log in to comment
0
I want to run something the first time any user logs on,A machine-based GP deployment runs before a user logs in, thus no Explorer, thus the file can be deleted.
Answered 09/15/2010 by: VBScab
Red Belt

Please log in to comment
0
Thanks for the information. Will try that.
Answered 09/15/2010 by: ghosh.kunal
Senior Yellow Belt

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