|
I have no experience with installer, but I often use the Process class and
your code seems OK.
So my best guess is the "installer" you launch is just an empty process
(maybe a batch file?) that on its turn launches the real installer and does
NOT wait for it...
You might check this by comparing the path you start, and the process path
that gets shown by the task manager while the installer is actually working.
Hope this helps.
|
|
|
|
|
The problem is that MSIEXEC (.MSI installations) can launch multiple instances of MSIEXEC, with the original instance quitting some time after it starts. I think you might want to watch your installations and examine the Process tab in Task Manager to watch what happens during the install. You may be able to get away with watching for all instances of msiexec to quit before you go to the next installer.
|
|
|
|
|
HI
another Q
when i run the app(it only has a web browser)
i get an dialog of open save cancel
can i get ride of him
and auto present the ppt
TNKS
kobkob
|
|
|
|
|
I strongly suggest you read some of the WebBrowser documentation; your question
is on navigation. There are both methods and properties for that.
|
|
|
|
|
THNKS
;P;P
kobkob
|
|
|
|
|
HI
i have a web browser
can i hide the scroll bar of the web browser control???
does it has a property???
kobkob
|
|
|
|
|
If that is a WebBrowser object, look at the public properties of that class.
MSDN is the prime source of information once you know what class to use.
|
|
|
|
|
ye
i did it already
and found out there is a Scrollbar ON/OFF property
but even when i set the value to false
it's still show me the scrool bar!!!!(runtime only)
i have opend a one slide only PPT to the web browser(could that be the problem.
kobkob
|
|
|
|
|
Sorry I cant tell, I never used the WebBrowser class, and I used the shdocvw stuff
for many things (including Word) but not PowerPoint. Anyhow, in my application
I do want scroll bars...
|
|
|
|
|
Hello,
My program creates several notifyicons and displays them in system tray. If the application exists without disposing those icons then you need to hover by mouse to make them disappear. I tried to refresh system tray by sending WM_PAINT message to system tray just before exiting but it only works if there is one icon. What can I do to solve this problem? Are there any other ways?
|
|
|
|
|
Hi Giorgi,
I know the phenomenon, and I havent found any cure yet. My best guess is you would
have to send some message to each individual icon in the notification area.
You can aleviate the problem by increasing the chance the icons get disposed of
(e.g. in a finally block in Main) but you cant stop them piling up while debugging
and aborting in Visual Studio !
|
|
|
|
|
|
Thanks for the reply. Actually I have found an article about it here: http://www.codeproject.com/tools/ShellTrayInfo.asp but it will take quite some time and effort to convert it to c# so I'd like to find either easier way or another kind of workaround.
As for visual studio, if visual studio can't do it will we be able to do that then?
|
|
|
|
|
Thanks for the link, it will certainly allow me to create clean-up code; the
main problem remaining is when to run such code. Here are current ideas:
1. periodically, as a service; disadvantage is icon area changes independent of
user actions
2. a .NET app that is going to use a notifyicon could first try and remove
same icon(s); that solves the Visual Studio debug pile up.
I guess I'll go for 2; if it looks OK I'll probably write an article...
Giorgi Dalakishvili wrote: As for visual studio, if visual studio can't do it will we be able to do that then?
I dont think they are interested in such details, it wont make them sell
more software ...
|
|
|
|
|
|
I would try a web browser, either the new WebBrowser class or the old docviewer
(which needs files Interop.SHDocVw.dll and AxInterop.SHDocVw.dll but also works under .NET 1.x).
|
|
|
|
|
TNKS
kobkob
|
|
|
|
|
HI MAN
where do i find
Interop.SHDocVw.dll and AxInterop.SHDocVw.dll ??
kobkob
|
|
|
|
|
Hi,
I recommend you use WebBrowser class (I havent, my solution dates from years back);
if you must have something that runs (also) on older .NET versions, shdocvw is the way to go.
I guess my code is based on some CodeProject article although strangely enough
it does not refer to one; it does refer to chapter 3 in the book
"Professional Windows GUI Programming Using C#"
by Jay Glynn, but I dont have it at hand.
I suggest you search CodeProject for "shdocvw.dll", without a good article on it
you wont manage, there are quite some issues; also according to my notes the two
files mentioned can be built by using AxImp.exe (part of .NET SDK)
onto file ...\system32\shdocvw.dll (should be present in XP)
Good hunting !
|
|
|
|
|
again
TNKS MAN
kobkob
|
|
|
|
|
Hi I am currently using servel pins (CTS and RTS) of my serial port for data transfer with a program I wrote in Visual C# 2005 under Windows XP.
I would like to write a program to send data over the unused pins.
Is it possible to write to individual pins (independently) using Visual C#? How is this done because I am stumped?
|
|
|
|
|
Hi,
I have a web form in C# and I am using SmtpMail to send the form information to a bunch of recipents. I have been asked to add the sender/requester e-mail address to the list of recipents. Is this possible?
Thanks in advance,
Jenn
Below is a sample of the code that I have to work with:
using System;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Web.Mail;
using System.Data;
public class myEmail:Page
{
// Declare variables
protected Label lblMessage;
// this event retrieves form variables and sends email
protected void sendmail(object sender, EventArgs e)
{
try
{
MailMessage objMailMessage;
string strHTMLBody;
// Create the HTML Message Body
strHTMLBody = "<title>FORM TITLE" +
"Writer's E-mail: " + HttpContext.Current.Request.Form.Get("name") + " " +
"QA E-mail: " + HttpContext.Current.Request.Form.Get("QAname") + " " +
"Manual Title: " + HttpContext.Current.Request.Form.Get("title")+ " " +
"Version/Release Number: " + HttpContext.Current.Request.Form.Get("version")+ " " +
"Number: " + HttpContext.Current.Request.Form.Get("dn")+ " " +
"";
// Create the Mail Message
objMailMessage = new MailMessage();
objMailMessage.From = HttpContext.Current.Request.Form.Get("name");
objMailMessage.To = "Recipent1@work.com;Recipent2@work.com";
objMailMessage.Cc = "Recipent3@work.com;Recipent4@work.com";
objMailMessage.Subject = " Form - " + HttpContext.Current.Request.Form.Get("dn");
objMailMessage.Body = strHTMLBody;
objMailMessage.BodyFormat = MailFormat.Html;
// Send the Mail Message
SmtpMail.SmtpServer = "workstmp.ibi.com";
SmtpMail.Send( objMailMessage );
lblMessage.Text="Record has been sent.";
}
catch
{
lblMessage.Text="Oops! Did you enter your e-mail address? ";
}
}
}
Jenn
|
|
|
|
|
As long as HttpContext.Current.Request.Form.Get("name") is a valid email address, or can be resolved by the server, then yes.
only two letters away from being an asset
|
|
|
|
|
Thanks Mark.
Yes, it is a valid e-mail address. The only question I have is, how? I have tried a combination of code, but no good. For instance:
objMailMessage.To = "person1@work.com;person2@work.com";
objMailMessage.Cc = "person3@work.com;[person2@work.com" + HttpContext.Current.Request.Form.Get("name");
OR
objMailMessage.To = "person1@work.com;person2@work.com";
objMailMessage.Cc = "person3@work.com;[person2@work.com" + ("name");
Thanks again,
Jenn
|
|
|
|
|
objMailMessage.Cc = "person3@work.com;[person2@work.com" + HttpContext.Current.Request.Form.Get("name");
Typo or are your forgetting the ; after "person2@work.com"?
only two letters away from being an asset
|
|
|
|