redfive19 Posted January 30, 2008 Posted January 30, 2008 Opt("TrayIconHide", 1) FileCopy(@ScriptDir & '\PointSecAdd.exe', @ProgramFilesDir & '\PointSecAdd.exe', 1) FileCopy(@ScriptDir & '\PointSecGroup.ini', @ProgramFilesDir & '\PointSecGroup.ini', 1) RunAsSet('account', 'domain', 'pwd') FileChangeDir(@ProgramFilesDir) RunWait(@ProgramFilesDir & '\PointSecAdd.exe') Exit So I'm having problems running this. I'm getting an AutoIt error that says "An instance of the service is already running". I have no idea what could be causing this. Anyone have any ideas? I'm lost!! THANKS! -redfive
blademonkey Posted January 30, 2008 Posted January 30, 2008 Opt("TrayIconHide", 1) FileCopy(@ScriptDir & '\PointSecAdd.exe', @ProgramFilesDir & '\PointSecAdd.exe', 1) FileCopy(@ScriptDir & '\PointSecGroup.ini', @ProgramFilesDir & '\PointSecGroup.ini', 1) RunAsSet('account', 'domain', 'pwd') FileChangeDir(@ProgramFilesDir) RunWait(@ProgramFilesDir & '\PointSecAdd.exe') Exit So I'm having problems running this. I'm getting an AutoIt error that says "An instance of the service is already running". I have no idea what could be causing this. Anyone have any ideas? I'm lost!! THANKS! -redfiveoddly enough i had this same problem, the issue seemed to be resolved when i added a working dir param. so try this. Opt("TrayIconHide", 1) FileCopy(@ScriptDir & '\PointSecAdd.exe', @ProgramFilesDir & '\PointSecAdd.exe', 1) FileCopy(@ScriptDir & '\PointSecGroup.ini', @ProgramFilesDir & '\PointSecGroup.ini', 1) RunAsSet('account', 'domain', 'pwd') FileChangeDir(@ProgramFilesDir) RunWait(@ProgramFilesDir & '\PointSecAdd.exe',@scriptdir) Exit ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung
redfive19 Posted January 31, 2008 Author Posted January 31, 2008 I'm giving this a try today, thanks so much for your help!
redfive19 Posted January 31, 2008 Author Posted January 31, 2008 Well, I'm still having the same issue, has anyone else had this happen? Thanks in advance!! -redfive
redfive19 Posted February 4, 2008 Author Posted February 4, 2008 bump anyone? I'm just stumped! thanks!
blademonkey Posted February 4, 2008 Posted February 4, 2008 sounds like the pointsec services have to be stoped to be able to run this first. verify that they are before you run this script. ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung
redfive19 Posted February 4, 2008 Author Posted February 4, 2008 At this point in the build process, it's not even installed. I'm starting to think that it's a RunAs error. It's so odd, I've never seen this before! Thanks for your help blademonkey! -redfive
blademonkey Posted February 4, 2008 Posted February 4, 2008 At this point in the build process, it's not even installed. I'm starting to think that it's a RunAs error. It's so odd, I've never seen this before! Thanks for your help blademonkey!-redfiveCan you give us a screen shot of the error?also, if you run this manually do you still get the same error? ---"Educate the Mind, Make Savage the Body" -Mao Tse Tung
redfive19 Posted February 4, 2008 Author Posted February 4, 2008 See that's the weird thing, if I run it manually, I get no error. This executable is called from another executable. I'll try to get a SS but it's on someone else's machine who I may not have access to. Thanks again for all of your help! -redfive
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