What I am trying to do is embed the msi installers for certain scanners our company uses into a kinda helpdesk interface that allows the user to select the scanner they want and click a button to install the drivers.
private void MSIexec(string arguments)//Run MSIexec = MSIexec("Enter Command");
{
Process process = new Process();
process.StartInfo.FileName = @"C:\Windows\System32\msiexec.exe";
process.StartInfo.Arguments = arguments;
process.Start();
This is the process I have created with the command MSIexec(Argument Here) to run the process plus the corresponding argument to install the msi they select thru a menu item. I have added the msi installer as a resource to my Visual Studios 2012 WPF Project and set it to embedded. I have tested the process and it will work and the installer will work with the command and argument if I put in full path name to installer. I am trying to include the installers with the final compiled EXE so that users wont have to have or download the files needed to install the drivers that they can just run my exe and click install and it installs drivers without them having to have file in a certain folder just run exe and go.
Main question is can I call the embed msi thru the argument or do I need to load it somewhere else to call thru the argument. Also when things are run either thru testing or once the exe is ready what file does the program store these files in (C:\Temp)???? If this is the correct folder maybe i can reference it in the argument that way I know the path doesn't change on the installer.
Thanks for any help you can offer.
tmitcham