Deployment issue

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi there,

Have a deployment issue that you guys must have come across before.

Basically, i've read through this article
http://www.codeproject.com/netcf/PackagingAndDeployingPPC.asp as well as the
msdn one and followed all the steps and it seems to work ok.

However, i now have to install the Opennet framework and SQLCE, so added a
couple more .ini files to my setup project and included those in my installer
class, like so:

private void SMPDAInstaller_AfterInstall(object sender, InstallEventArgs e)
{
string arg = Path.Combine(
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
"OPENNET.ini");

arg = Path.Combine(
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
"SQLCE.ini");

arg = Path.Combine(
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
"SMPDA.ini");

RunAppManager(arg);
}

Now, this work about half the time, and is just amazinly unreliable....
occassionally the items show in a list, sometimes it prompts to install,
sometimes it misses out one..etc etc..

What's the sure fire way of doing it reliably?

Many thanks,
Rob
 
What about this (you did not call RunAppManager for each .ini, only for
the last one)?

string arg = Path.Combine(
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
"OPENNET.ini");
RunAppManager(arg);

arg = Path.Combine(
Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location),
"SQLCE.ini");
RunAppManager(arg);

....

Also make sure that RunAppManager has Process.Start(...).WaitForExit()
to force sequential execution.



Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com
 
Back
Top