derspinne Posted April 17, 2013 Share Posted April 17, 2013 Hi everyone, I having issues scripting the execution of a single .reg file into an installation sequence that will basically do the following 3 things: 1- Run the installation as Admin of the application that it seems been a straight forward without Next Next clicks on it. 2- Run a CMD that will register some DLL / OCX files 3- Modify an existent key created after the installation of the same software located into : Path: HKLM64\SOFTWARE\Wow6432Node\BOSS\ Key Name: APPLICATIONVERSION Type: REG_SZ New Value: 6.1 I checked that the Last ShellExecute string doesn't seems to apply the change. So the application doesn't opens at all. My code is the following: #RequireAdmin #Region ;**** Directives created by AutoIt3Wrapper_GUI **** #AutoIt3Wrapper_Compile_Both=y #AutoIt3Wrapper_UseX64=y #EndRegion ;**** Directives created by AutoIt3Wrapper_GUI **** #Include <File.au3> #Include <Array.au3> Local $sUserName = "User" Local $sPassword = "Password" ShellExecute("setup.exe") WinWait("Boss - 6.0.0", "Boss Setup is performing the requested operations") WinActivate("Boss - 6.0.0", "Boss Setup is performing the requested operations") ShellExecute("RegisterAll.cmd") ShellExecute("regedit.exe", '/s "' & @DesktopDir & 'BossENG.reg"') Any Ideas on what can be changed to the code so I can have this Reg file to be done ?? I will really appreciate any help. Thanks and kind Regards. Link to comment Share on other sites More sharing options...
stormbreaker Posted April 18, 2013 Share Posted April 18, 2013 Change:ShellExecute("regedit.exe", '/s "' & @DesktopDir & 'BossENG.reg"')to ShellExecute("regedit.exe", '/s "' & @DesktopDir & 'BossENG.reg"')You see, you forgot the backslash (). One word and we are back to the business baby... Just a line I remember from a film I saw. Good day... derspinne 1 ---------------------------------------- :bye: Hey there, was I helpful? ---------------------------------------- My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1 Link to comment Share on other sites More sharing options...
lolipop Posted April 18, 2013 Share Posted April 18, 2013 alternatively, you can use the Regwrite command to write the registry key in. Works better. Link to comment Share on other sites More sharing options...
derspinne Posted April 23, 2013 Author Share Posted April 23, 2013 Cool Tks it solved this issue !!! 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