pmt82 Posted March 5, 2008 Posted March 5, 2008 Hi,I have been playing around with this program on and off for the past week. I'm using it because I was looking for a solution to run program installs that could be launched by login scripts etc. with administrator credentials. This seems to fit the bill...Problem:Below is the script I have created:if Not FileExists("C:\Program Files\MasterSpec LINK\licence.txt")ThenRunAsSet("login","domain","password",2)RunWait("\\serverch6\NETLOGON\Installs\MSsetup.exe","\\serverch6\NETLOGON\Installs") ;sleep("4000");Send("{ENTER}");Sleep("2000");Send("{ENTER}");Sleep("2000");Send("{ENTER}");WinWaitActive("Automated Program Install","MasterSpec install completed");Send("{ENTER}")RunAsSet()EndIfExitThe issue is the exe does not launch with administrator privileges and will show an error during install regarding to permissions. I have done some searching and looked at a few other examples and cannot see where this is going wrong, I have tried to keep it as simple as possible yet it still is not working correctly. Any help would be much appreciated
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now