Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Issues executing in silent mode a .reg file

$
0
0
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.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>