Jump to content

Recommended Posts

Posted

Hi,

Am trying to create inatall/upgrade automation during which am facing the problem in running the below command via AutoIT script. Can someone please help on how to pass these arguments to the commandline. 

msiexec.exe /i C:\epagentauto\epagent\indev\twoAgent.msi REGISTRATION_URL=https://r02-login.cybase.com INSTALLATION_KEY=YokjabsdoasJJGssd LOG_LEVEL=Debug

Posted

Maybe try this:

#RequireAdmin

RunWait ( 'msiexec.exe /i C:\epagentauto\epagent\indev\twoAgent.msi REGISTRATION_URL=https://r02-login.cybase.com INSTALLATION_KEY=YokjabsdoasJJGssd LOG_LEVEL=Debug', @SystemDir, @SW_SHOW )

Also, assuming that you didn't post the actual installation key associated with the similarly named parameter, does it contain any special characters?  If so, you will need to properly escape them for the command to run successfully.  Or, you could just surround each parameter in quotes like so:

 

#RequireAdmin

RunWait ( 'msiexec.exe /i "C:\epagentauto\epagent\indev\twoAgent.msi" "REGISTRATION_URL=https://r02-login.cybase.com" "INSTALLATION_KEY=YokjabsdoasJJGssd" "LOG_LEVEL=Debug"', @SystemDir, @SW_SHOW )

 

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...