Jump to content
Sign in to follow this  

Issues executing in silent mode a .reg file

Recommended Posts


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\


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:


#Region ;**** Directives created by AutoIt3Wrapper_GUI ****



#EndRegion ;**** Directives created by AutoIt3Wrapper_GUI ****

#Include <File.au3>

#Include <Array.au3>

Local $sUserName = "User"

Local $sPassword = "Password"


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("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.

Share this post

Link to post
Share on other sites


ShellExecute("regedit.exe", '/s "' & @DesktopDir & 'BossENG.reg"')


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. :bike:

Good day...

  • Like 1


:bye: Hey there, was I helpful?


My Current OS: Win8 PRO (64-bit); Current AutoIt Version: v3.3.8.1

Share this post

Link to post
Share on other sites

alternatively, you can use the Regwrite command to write the registry key in. Works better.

Share this post

Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  


Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.