/build/static/layout/Breadcrumb_cap_w.png

Program to run with Admin credentials/System credentials during logon- Win7

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

Answers (4)

Posted by: anonymous_9363 11 years ago
Red Belt
0
You mean, like an MSI with an entry in the RemoveFile table, deployed by Group Policy?
Posted by: ghosh.kunal 11 years ago
Senior Yellow Belt
0
Will Group Policy remove a file that is being used by a running process?
Posted by: anonymous_9363 11 years ago
Red Belt
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.
Posted by: ghosh.kunal 11 years ago
Senior Yellow Belt
0
Thanks for the information. Will try that.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ