Resul Posted July 15, 2011 Share Posted July 15, 2011 Hello, this code have a problem. RunWait(@ProgramFilesDir & "\Avira\Antivir Desktop\setup.exe /REMSILENT / PASSWORD =" & chr(34) & "12340000" & chr(34), "", @SW_HIDE) Thank you for helping Link to comment Share on other sites More sharing options...
Chimaera Posted July 15, 2011 Share Posted July 15, 2011 (edited) Maybe this? RunWait(@ProgramFilesDir & "\Avira\Antivir Desktop\setup.exe /REMSILENT / PASSWORD =" & '"' & "12340000" & '"'), "", @SW_HIDE) Chimaera Or maybe this $pass = /PASSWORD ='"' & "12340000" & '"' RunWait(@ProgramFilesDir & "\Avira\Antivir Desktop\setup.exe" & "/REMSILENT" & $pass), "", @SW_HIDE) Or maybe this lol $pass = '"' & "12340000" & '"' RunWait(@ProgramFilesDir & "\Avira\Antivir Desktop\setup.exe" & "/REMSILENT" & "/PASSWORD =" & $pass), "", @SW_HIDE) Edited July 15, 2011 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
Resul Posted July 15, 2011 Author Share Posted July 15, 2011 Unfortunately not = ( The error image is attached. Link to comment Share on other sites More sharing options...
Resul Posted July 15, 2011 Author Share Posted July 15, 2011 Other Error screenshot Link to comment Share on other sites More sharing options...
Chimaera Posted July 15, 2011 Share Posted July 15, 2011 (edited) $pass = '"' & "12340000" & '"' ConsoleWrite( $pass) $test = RunWait(@ProgramFilesDir & "\Avira\Antivir Desktop\setup.exe" & "/REMSILENT" & "/PASSWORD =" & $pass, "", @SW_HIDE) ConsoleWrite( $test) run that and see what messages you get in the console window Password is correct like this as well $pass = '"12340000"' Edited July 15, 2011 by Chimaera If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
taietel Posted July 15, 2011 Share Posted July 15, 2011 Try this: $sPassword = 123456 RunWait(@ProgramFilesDir & '\Avira\Antivir Desktop\setup.exe /REMSILENT /PASSWORD ="' & $sPassword & '"', "", @SW_HIDE) Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text Link to comment Share on other sites More sharing options...
Chimaera Posted July 15, 2011 Share Posted July 15, 2011 Try this: $sPassword = 123456 RunWait(@ProgramFilesDir & '\Avira\Antivir Desktop\setup.exe /REMSILENT /PASSWORD ="' & $sPassword & '"', "", @SW_HIDE) As i understand it m8 he wants the " as part of the password ie. pass = "123456" If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
taietel Posted July 15, 2011 Share Posted July 15, 2011 I can't tell what format has to be after /PASSWORD= , If there were '"' in the password, Resul should told us. Otherwise we can give a try to the crystal ball. Things you should know first...In the beginning there was only ONE! And zero... Progs: Create PDF(TXT2PDF,IMG2PDF) 3D Bar Graph DeskGadget Menu INI Photo Mosaic 3D Text Link to comment Share on other sites More sharing options...
Chimaera Posted July 15, 2011 Share Posted July 15, 2011 i assumed they were part of the pass from this PASSWORD =" & chr(34) & "12340000" & chr(34 being as chr(34) = " But then im known to be wrong lol If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
martin Posted July 15, 2011 Share Posted July 15, 2011 i assumed they were part of the pass from this PASSWORD =" & chr(34) & "12340000" & chr(34 being as chr(34) = " But then im known to be wrong lol That doesn't make sense to me, but the usual way to include a quotation mark as part of the text is to write it twice so you would need PASSWORD = """12340000""" that is 3 sets of chr(34) at the start and another 3 at the end. But it could be that quotation marks as part of the password simply won't work. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
Chimaera Posted July 15, 2011 Share Posted July 15, 2011 I thought thats what single ones were for to wrap double ones ie like this so the doubles become part of the password? $pass = '"12340000"' If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
jaberwacky Posted July 16, 2011 Share Posted July 16, 2011 This would go much smoother if the original poster would tell us what problem the code is having exactly. Helpful Posts and Websites: AutoIt3 Variables and Function Parameters MHz | AutoIt Wiki | Using the GUIToolTip UDF BrewManNH | Can't find what you're looking for on the Forum? 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