JulianoNewbie Posted April 15, 2009 Share Posted April 15, 2009 Hello, pls someone can help with this script?I need insert an parameter in exe and this parameter must be imputed on reg fileExample that i need:i'll execute the exe file "setup.exe" with 2 parameter /parent and /groupc:\setup.exe /parent=brspoa107m /group=br_clientThe result of this parameters must enter in reg entriesRegWrite ('HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion', '"Parent"', 'REG_SZ', 'Result here')RegWrite ('HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion', '"ClientGroup"', 'REG_SZ', ''Result here' ')Sorry for my bad english Link to comment Share on other sites More sharing options...
Emiel Wieldraaijer Posted April 15, 2009 Share Posted April 15, 2009 Use the Search option and you will find this link Best regards,Emiel Wieldraaijer Link to comment Share on other sites More sharing options...
JulianoNewbie Posted April 16, 2009 Author Share Posted April 16, 2009 eu try this but i could not make it work I do not understand how to make look at my nick... i'm newbie Link to comment Share on other sites More sharing options...
JulianoNewbie Posted April 16, 2009 Author Share Posted April 16, 2009 No one can help-me with this?i try to use commandline but without sucess RegWrite ('HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion', '"Parent"', 'REG_SZ', 'Result here')RegWrite ('HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion', '"ClientGroup"', 'REG_SZ', ''Result here' ')thanks Link to comment Share on other sites More sharing options...
KaFu Posted April 16, 2009 Share Posted April 16, 2009 Like this $parent = 'brspoa107m' $group = 'br_client' run("c:\setup.exe /parent=" & $parent &" /group=" & $group) RegWrite ('HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion', '"Parent"', 'REG_SZ', $parent) RegWrite ('HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion', '"ClientGroup"', 'REG_SZ', $group) or did I missunterstood the questions? OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
JulianoNewbie Posted April 16, 2009 Author Share Posted April 16, 2009 (edited) Thanks KafuI need but i need this:i'll execute the exe file "setup.exe" with 2 parameter /parent and /group, but i dont know to make this parameters and link this parameters with regwrite note: Setup.exe is name to this script compiled.c:\setup.exe /parent=xxxx /group=xxxxThe result of this parameters /parent and /group must enter in reg entriesRegWrite ('HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion', '"Parent"', 'REG_SZ', 'Result here') <---- xxxx enters hereRegWrite ('HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion', '"ClientGroup"', 'REG_SZ', ''Result here' ') <--- xxxx enters here Edited April 16, 2009 by JulianoNewbie Link to comment Share on other sites More sharing options...
Marlo Posted April 16, 2009 Share Posted April 16, 2009 I assure the link Emiel gave you is exactly what you are looking for. the $CmdLine var is an inbuilt array that holds all the Parameters the script was executed with. Click here for the best AutoIt help possible.Currently Working on: Autoit RAT Link to comment Share on other sites More sharing options...
KaFu Posted April 16, 2009 Share Posted April 16, 2009 Raw, without any error-checking... add this to setup.exe, works only if exactly called as mention "c:\setup.exe /parent=xxxx /group=xxxx". if $CmdLine[0] > 1 Then $parent = StringReplace($CmdLine[1],"/parent=","") $group = StringReplace($CmdLine[2],"/group=","") RegWrite ('HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion', '"Parent"', 'REG_SZ', $parent) RegWrite ('HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion', '"ClientGroup"', 'REG_SZ', $group) endif OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) Link to comment Share on other sites More sharing options...
JulianoNewbie Posted April 16, 2009 Author Share Posted April 16, 2009 Raw, without any error-checking... add this to setup.exe, works only if exactly called as mention "c:\setup.exe /parent=xxxx /group=xxxx". if $CmdLine[0] > 1 Then $parent = StringReplace($CmdLine[1],"/parent=","") $group = StringReplace($CmdLine[2],"/group=","") RegWrite ('HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion', '"Parent"', 'REG_SZ', $parent) RegWrite ('HKEY_LOCAL_MACHINE\SOFTWARE\Intel\LANDesk\VirusProtect6\CurrentVersion', '"ClientGroup"', 'REG_SZ', $group) endif thanks kafu, when i go to germany i'll pay an beer to you =DDDDDDDDDDD Link to comment Share on other sites More sharing options...
KaFu Posted April 16, 2009 Share Posted April 16, 2009 thanks kafu, when i go to germany i'll pay an beer to you =DDDDDDDDDDDBet I'll be waiting at the airport OS: Win10-22H2 - 64bit - German, AutoIt Version: 3.3.16.1, AutoIt Editor: SciTE, Website: https://funk.eu AMT - Auto-Movie-Thumbnailer (2022-Nov-26) BIC - Batch-Image-Cropper (2023-Apr-01) COP - Color Picker (2009-May-21) DCS - Dynamic Cursor Selector (2024-Feb-16) HMW - Hide my Windows (2018-Sep-16) HRC - HotKey Resolution Changer (2012-May-16) ICU - Icon Configuration Utility (2018-Sep-16) SMF - Search my Files (2023-Jun-03) - THE file info and duplicates search tool SSD - Set Sound Device (2017-Sep-16) 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