PDA

View Full Version : Execution of msi fails


ElArZ
2nd July 2008, 11:52
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
2nd July 2008, 11:58
Either specify the full path to the msi file or ensure the correct working directory is set with SetOutPath.

Stu

ElArZ
2nd July 2008, 12:07
Ah ok.
Now i understood the problem.

Thank you.

ElArZ
2nd July 2008, 18:49
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?

Red Wine
2nd July 2008, 18:51
Check the included header x64.nsh

ElArZ
2nd July 2008, 19:15
ok, thank you.