RvdH Posted December 27, 2005 Share Posted December 27, 2005 Hi i'm working on a auto-it script that completes some actions before a program can run, - it need a writable dir in %temp% - it needs to start a service - it needs to register a ocx the script i currently have succesfully completes these tasks except for 1, the damn OCX isn't registred #Include <Constants.au3> #NoTrayIcon $ramdisk = EnvGet("ramdrv") $systemdrive = EnvGet("systemdrive") RunWait(@ComSpec & " /c " & 'md "%temp%\{program}\temp"', "", @SW_HIDE) RunWait(@SystemDir & "\program.exe /service") RunWait(@ComSpec & " /c " & 'net start "Program"', "", @SW_HIDE) ; doesn't work ;RunWait(@SystemDir & "\regsvr32 /s /i %systemdrive%\Programs\{programdir}\{programsubdir}\file.ocx") RunWait(@ComSpec & " /regsvr32 /s /i %systemdrive%\Programs\{programdir}\{programsubdir}\file.ocx", "", @SW_HIDE) RunWait($systemdrive & "\Programs\{programdir}\program.exe") Exit I think i'm really close i just am not quite familiar with the commands auti-it uses, anyone can help me out? TIA, RvdH Link to comment Share on other sites More sharing options...
Developers Jos Posted December 27, 2005 Developers Share Posted December 27, 2005 Try: RunWait(@ComSpec & " /c regsvr32 .......") SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
RvdH Posted December 27, 2005 Author Share Posted December 27, 2005 Yup, looks like that did the trick Bedankt! RvdH Link to comment Share on other sites More sharing options...
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