Jump to content
Sign in to follow this  
derspinne

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\

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.

Share this post


Link to post
Share on other sites

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

Good day...


----------------------------------------

: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

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  

×
×
  • Create New...