Skip to content
⌘ NSIS Forum Archive

Execution of msi fails

6 posts

ElArZ#

Execution of msi fails

Hi,

I'm trying from my installer to install some prerequisites.
A .exe file is installing just fine but the problem is with a .msi installer.

I've used both these methods but neither works:
ExecWait '"msiexec" /i "Prerequisites\CRRedist2005_x86.msi"'
nsExec::Exec '"msiexec" /i "Prerequisites\CRRedist2005_x86.msi"'

In the first method, it gives me this error:
"The installation package could not be opened. Verify that the package exists..."
But the package is fine.

I've also tried adding /Passive, /quiet...
But if i use these with the first method or use the second method then the window installer for that package will appear for less then a second and then disappear.

Has anyone been in a similar situation or could anyone provide help?

Thank you.
Afrow UK#
Either specify the full path to the msi file or ensure the correct working directory is set with SetOutPath.

Stu
ElArZ#
Just so i don't create a new thread:
Will Installers created in NSIS work in both x86 and x64 architectures?
If yes, is there a way to automatically detect the architecture?