Hi everyone, i try to kill some process before uninstall one msi.
I don't understand why it doesn't work, i start trought this uninstall from a run as, so normaly the vbscript in custom action must be also start with the same credential as the run as for the msi.
It works fine for removing files, giving permissions ... but not for killing user's process -> Access denied !.
It's the same for installation of printer driver; the vbscript doesn't keep the admin rights. When i start manually this one through the same runs as (not in the msi) all works fine, but not inside one MSI. I work with Wise Studio.
Is anybody can help me or confirm that is a bug in msi structure or from Wise ?
Big thanks...

0 Comments   [ - ] Hide 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.
Answer this question or Comment on this question for clarity


Make sure you're running your VBScript custom action in the Execute Deferred section - that way it runs in a system context - and it should keep the rights you've assigned it.
Answered 08/06/2004 by: sean_c_roberts
Senior Purple Belt

Please log in to comment

You can use kill.exe available in windows utility to kill the process from command line
Answered 08/10/2004 by: Fisa
Yellow Belt

Please log in to comment
Hi sean_c_roberts
Big Thanks for your tips !
It's works fine now.

For Kill.exe, it's the same problem, access denied but in deffered action, no problem.

Just a little question:
why it's doesn't work in immediate action, i can delete all files anywhere, but can't stop a process? strange, it's like some parts of a vbscript are executed with runas credentials and other not .....

So once again Big thanks !
Answered 08/11/2004 by: gvlaarho
Senior Yellow Belt

Please log in to comment