windows installer - C# MsiExec installs program to a wrong location -
windows installer - C# MsiExec installs program to a wrong location -
i using c# code install programme using process runs msiexec, giving path msi file. code use:
string pathtomsifile = "\"" + msipath + msiname + "\""; process p = new process(); p.startinfo.filename = "msiexec.exe"; p.startinfo.arguments = "/i " + pathtomsifile + " /quiet"; p.start(); p.waitforexit();
the unusual thing when seek install program, version installs right location expect on c:\path
different version installs d:\path
reason. if open msi manually, default location there c:\path
. thought why?
eventually appears problem programme msiexec tried install. not program's developer couldn't know problem in advanced on own. programme had custom action in installation set variable representing drive install on 1 os installed. problem is, action invoked through installation's ui (when double clicking msi), not when using quiet cli command install it.
c# windows-installer msiexec
Comments
Post a Comment