AnilPro Posted April 20, 2024 Posted April 20, 2024 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
MattHiggs Posted April 20, 2024 Posted April 20, 2024 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 )
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