|
hi i am gonna create msi and give it to client
i want to track the installation date(when clients installs my application i need to catch that date PROGRAMATICALLY Now--before i handover to clinet)so that i can give customized check for software update daily/weekly/monthly
hope u got my question
help me plz
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
One possible approach is to write a custom action in the installer that encrypts a string version of the date/time and writes it to the registry. Since it is running in the installer, you will capture the date (and approximate time) when the client installed the software. Making it encrypted (and possibly using a non-human-readable registry key name, like a guid) and storing it is a binary registry value will help prevent someone from tampering with the value.
You can then read the value from the registry, decrypt it, and do any date comparisons you need.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
can anyone tell me the error inthis chat code.I think it was donein .net2003 and i converted it to 2005.but"PageModule" causes the error.
if ( TB_ToSend.Text.Length > 0)
{
PageModule.Chat.AddMessage(sChannel,
sUser,
TB_ToSend.Text);
Rhydo
|
|
|
|
|
what is PageModule ? What is the error ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi all,
i'm having troubles in selecting a specific node in a treeview after selecting it from a datagridview
i.e. i want to select from the tree by selecting in the datagridview
thanx alot
|
|
|
|
|
plz tell me the directive of clsdataclass
I got a code for disscussion forum in .net2003.
when i converted it to 2005.Error"missing directive for clsDtaClass"
Rhydo
|
|
|
|
|
Seems likely to me that you need to buy a VB.NET book and work through it, because you don't really know what you're doing.
clsDtaClass would be a variable in your code. Without seeing the code, it's impossible to tell you what the error is. I tried google and it seems you didn't give the exact text of the error message, or you're the first person ever to get it and need help with it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I mean a resource is created in a thread and now I want to access it from another thread.
|
|
|
|
|
You're going to have to explain what you mean by "resource".
|
|
|
|
|
Hello,
I have a windows application. After exiting the application, I also want to kill the exe running. How to do this?
Please reply. Its urgent.
Thanks in advanced
Nana
|
|
|
|
|
Which exe do you want to kill? When you exit your application the running exe is killed. If you want to kill other exe use Process class.
|
|
|
|
|
Yeah I want to kill running exe.
It doesnt get killed.
I can see it in task manager.
Nana
|
|
|
|
|
you have to use the process class like giorgi suggested.
using System.Diagnostics;
Process[] currentProcesses = Process.GetProcessesByName("iexplore");
foreach (Process process in currentProcesses)
process.Kill();
Don't be overcome by evil, but overcome evil with good
|
|
|
|
|
If you're talking about closing your .EXE and you find it still running in TaskManager, you've done something in your code that's preventing it from quitting. This could be cause by any number of problems, like not terminating a thread you've created or properly disposed an object you created, or you haven't shutdown some COM server you instantied, ...
|
|
|
|
|
Or simply the xxx.vshost.exe is still running, but the xxx.exe should not be.
|
|
|
|
|
And if he's talking about the Release version on a client machine?
|
|
|
|
|
First of all Thanks for all replies.
Ok. I found that there an object of a class which I am using.
If I comment this object, it exe gets killed.
What should I do? I want to use this object in my code.
Nana
|
|
|
|
|
Then you have to get the documentation on that object to find out how to shut it down properly before your app closes.
|
|
|
|
|
Thanks.
I found out how to shut it down.
Thanks once again
Nana
|
|
|
|
|
What should I write to kill exe?
Application.Exit()
or this.Close()?
Nana
|
|
|
|
|
i i am going to give my application to clint
and i wanna fine the installed time of his local machine
how can i find that --what code should i write for that while developing
thnx in advance
prashanth,
s/w Engineer,
Syfnosys.
|
|
|
|
|
You should use DateTime object and you will something like "Now" member of that.
Manoj
Never Give up
|
|
|
|
|
See my answer to your other post on this question: http://www.codeproject.com/script/comments/forums.asp?forumid=1649&select=2044713#xx2044713xx[^]
Also, please don't double post. People here answer questions on a volunteer basis and will help as best they can when they have time to answer. Yes, questions do go unanswered for a variety of reasons, and it's acceptable to repost the same question after a while, but waiting a few hours and reposting because there was no response (which, based on the timestamps on the posts appears to be what happened) is not necessary.
-----------------------------
In just two days, tomorrow will be yesterday.
|
|
|
|
|
Hi,
I am facing problem of COMException while opening MS-Word files on Windows Server 2003. I am refering Interop.Word.dll for opening MS-Word files to count the number of words from it.
I am using following API to open the doc files.
Word.ApplicationClass wordApp = null;
Word.Document aDoc = null;
aDoc = wordApp.Documents.Open(ref fileName, ref missing, ref readOnly, ref missing, ref missing, ref missing, <br /> ref missing, ref missing, ref missing, ref missing, ref missing, ref isVisible, <br />ref missing, ref missing, ref missing, ref missing);
aDoc.Activate(); If I deploy above code on Windows 2000 professional then it works without error but if I deploy same code on Windows Server 2003 then I get following exception.
System.Runtime.InteropServices.COMException (0x800A1066): Command failed at <br /> Word.Documents.Open(Object& FileName, Object& ConfirmConversions, Object& ReadOnly, Object& AddToRecentFiles,<br />Object& PasswordDocument, Object& PasswordTemplate, Object& Revert, Object& WritePasswordDocument, <br /> Object& WritePasswordTemplate, Object& Format, Object& Encoding, Object& Visible, <br /> Object& OpenAndRepair, Object& DocumentDirection, Object& NoEncodingDialog, Object& XMLTransform)
Is there is other way to overcome this bug?
-- modified at 2:41 Saturday 19th May, 2007
#Abhi#
|
|
|
|
|
Hi!
Do you have the same version of Word installed on both machines? (or rather 3 machines: The development machine that created Interop.Word.dll plays a role, too)
Regards,
mav
--
Black holes are the places where God divided by 0...
|
|
|
|