/build/static/layout/Breadcrumb_cap_w.png

vbscript privilege ????

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...

Gerard

0 Comments   [ + ] Show comments

Answers (3)

Posted by: sean_c_roberts 20 years ago
Senior Purple Belt
0
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.
Posted by: Fisa 20 years ago
Yellow Belt
0
Hi,

You can use kill.exe available in windows utility to kill the process from command line
Posted by: gvlaarho 20 years ago
Senior Yellow Belt
0
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 !
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