.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

how to make generic installation for my program

Posted By:      Posted Date: December 04, 2010    Points: 0   Category :Windows Application

how to make generic installation for my C# program

that will work on win-XP, win-7 32bit and win-7 64bit ?

i need that all the Related program (like FrameWork...CrystalReport...MDAC....)

will be include and will install only the program that the OS is Missing

thank's in advance

View Complete Post

More Related Resource Links

Need Syntax To Make Results of LINQ Union Return Non-Generic Type



I have the below SQL which works just fine:

SELECT     Message, CreateDate, AccountId, AlertTypeId
FROM       dbo.Alerts
SELECT     TOP (100) PERCENT Status, CreateDate, AccountId,
                          (SELECT     10 AS Expr1) AS AlertTypeId
FROM         dbo.StatusUpdates
WHERE AccountId = PassedInParameter

I have been going about trying to convert the above into a LINQ method and am having problems with return types.
As the above SQL illustrates, I am querying two distinct LINQ tables - Alerts and StatusUpdates -
and then attempting to perform a Union on them. In order to do the union in LINQ, I have to have agreeing types. So, I
am using "var" to make the results of "alerts" and "updates" generic before the union.  

public IList GetStatusUpdatesAsAlertsByAccountId<T>(Int32 accountId)
            using (WorkbookDataContext dc = _conn.GetCont

How do I make the program's name appear in the taskbar?

I've written my first WPF app, which is a page-based application.  (Not an XBAP app.)  I wrote it in VS 2010 on my Windows 7 machine.  I've put it onto a user's machine, she's running Windows XP SP3.  I've noticed that when she runs it, the title of the program doesn't show up in XP's taskbar.  I never noticed this in Windows 7. So, what I have done wrong and how do I correct it?  Rod

how to make working WPF 2010 program make changes to SQL Server 2008 Express files

(1) I have a working WPF 2010 program that manipulates a table in SQL Server 2008 Express (2) the program does delete, update, select and insert correctly however in its own project file folder logbooklmk.mdf   logbooklmk_log.ldf (3) I want the actual SQL Server 2008 express files to be changed yes I know the issue is sharing and the copy option only applies to the local project files. I found this out by trying always copy, never copy and copy if newer. I probably have to change the .xsd folder to refer to the actual SQL Server 2008 Express file. Tried that once and it failed. Something about sharing not allowed.

.NET Framework 4 Installation error - Generic Trust Failure

I tried to install .NET Framework 4 on Windows Server 2003, but got this error message "Generic trust failure".Part of the log:Action: Downloading and/or Verifying ItemsC:\e005b9f00558a52d0c\Windows6.0-KB956250-v6001-x86.msu: Verifying signature for Windows6.0-KB956250-v6001-x86.msuC:\e005b9f00558a52d0c\Windows6.0-KB956250-v6001-x86.msu Signature verified successfully for Windows6.0-KB956250-v6001-x86.msuC:\e005b9f00558a52d0c\Windows6.1-KB958488-v6001-x86.msu: Verifying signature for Windows6.1-KB958488-v6001-x86.msuC:\e005b9f00558a52d0c\Windows6.1-KB958488-v6001-x86.msu Signature verified successfully for Windows6.1-KB958488-v6001-x86.msuC:\e005b9f00558a52d0c\netfx_Core.mzz: Verifying signature for netfx_Core.mzzC:\e005b9f00558a52d0c\netfx_Core.mzz Signature verified successfully for netfx_Core.mzzC:\e005b9f00558a52d0c\netfx_Core_x86.msi: Verifying signature for netfx_Core_x86.msiPossible transient lock. WinVerifyTrust failed with error: 2148204800Possible transient lock. WinVerifyTrust failed with error: 2148204800C:\e005b9f00558a52d0c\netfx_Core_x86.msi - Signature verification for file netfx_Core_x86.msi (C:\e005b9f00558a52d0c\netfx_Core_x86.msi) failed with error 0x800b0100 (No signature was present in the subject.)C:\e005b9f00558a52d0c\netfx_Core_x86.msi Signature could not be verified for netfx_Core_x86.msiNo FileHash provided. Cannot perform FileHash veri

how to make a .exe file execute after installation of project using setup and depoyment project in c

hi all,   i am trying to execute a .exe file included in application folder of my setup and deployment project, such that it executes after installation of main project is complete.How to do this. plz help. thank u in advance. Raghu

Making the program make text boxes according to a num of a variabe

i have a text abox that the user need to enter a number then according to this number the program need to show text boxes

how to make WebService installation and How to overcome the security problem


how to make WebService installation and How to overcome the security problem ?

(i need to make My WebService setup that i can install on customer computer)

thank's in advance

Getting the "Do you want to allow the following program to make changes to this computer?" question

My company is developing a program that when it's installed on a Client Windows 7 computer, the user (which is a Standard User, but program was installed by an Administrator) is getting the "Do you want to allow the following program to make changes to this computer?" question.  This wouldn't be so bad, but the program is forcing a login by the Administrator to allow the program to run.  The message box is showing "To continue, type an administrator password and then click Yes."

I have digitally signed the application hoping that would have eliminated this but still getting the login prompt.

The users could live with the prompt about the confirmation, but why is the administrator's login being required?

If it matters the computer I'm testing this on and getting this result is a Windows 7 Professional 64bit.  The program executable is a compiled VB.Net windows application using VS2008.  The executable itself is compiled for an x86 CPU type due to one 3rd party control we are using which isn't AnyCPU compatible.


Installation Error of Microsoft .NET Framework 4.0 Error code: (0x800B010B), "Generic trust failure.



I having problems installing Microsoft .NET Framework 4.0. Here is my log file:

OS Version = 6.1.7600, Platform 2
OS Description = Windows 7 - x64 Ultimate Edition 
CommandLine = "C:\Program Files (x86)\MicrosoftNET\Setup.exe" /x86 /x64
TimeZone = W. Europe Daylight Time
Initial LCID = 1053
Using Simultaneous Download and Install mechanism

How to make a chat program in visual basic 2008


Hi folks,

I am making a card game and i would like to make a host so that many clients can join to play, chat and share information together on a specific port or server (or whatever it is, I'm not too familiar with these)...

I would be grateful if you could provide me with some coding or anything else in vb.net to make such connection between host and many clients over the internet...

Thanks in advance.


Telling the program what you won't be doing to make the code run faster


I need to know if my thinking is on the right track about something, and if so, what keywords I might Google search to find out more about this.

Are there times we write code and the real advantage is that by telling the computer what we won't be doing, it saves time because the computer doesn't have to do something (maybe saving milliseconds, or even more?)

For example, every discussion about the modifier 'abstract' explains how it will prevent me from accidently trying to instantiate an object from the class.  Well, I'm in a situation where I'm pretty sure I won't make that mistake, but then I was thinking, well, maybe there's a better reason to use 'abstract' -- maybe it tells the computer 'you don't have to do certain stuff because this an abstract class' and it creates a significant time savings.

Am I on the right track?

The closest I've come to finding this was a mention that it's good to mark classes with 'sealed' whenever you know you won't be inheriting from them; this was in article about making code work faster.

Thank you for your help with this.

Can I make a generic function that gets any object's name field based on ID?


I find myself writing a lot of functions like this...to get some sort of Name or Text or FullName field, based on the ID ...

        public static string GetAnswerText(int answerID)
            TreatmentIntegrityDataContext data = new TreatmentIntegrityDataContext();
            Answer answer = data.Answers.FirstOrDefault(x => x.AnswerID == answerID);
            if (answer == null)
                return null;
                return answer.AnswerText;

I have one of these functions for almost every object in my database.  Is there a way to consolidate this into one generic function?  For example could I override the ToString() method for every object and then make a generic function GetStringValue(Type T, int primaryKey) that looks up the record based on the ID, and calls the ToString() method for an object of type T?  What would that function look like?

I think it must be possible because I've playing around with a Dynamic Data website which does similar things ... I'm just not sure how to look up the record with a generic type.

Thanks in advance!!

Microsoft .Net Framework 4 Client Profile installation error: (0x800B010B), "Generic trust failure "


I'm currently using a window 7 64 bit operating system fujitsu laptop and I've been trying to install a update: 'Security Update for Microsoft .NET Framework 4 on Windows XP, Windows Server 2003, Windows Vista, Windows 7, Windows Server 2008, Windows Server 2008 R2 for x64-based Systems (KB2160841)'. However, upon many tries of installing the update, i still couldn't get it install. The error details for the update is Code 66A.

Therefore, after searching on Windows forum for solution for that error, i've tried to repair the Microsoft .Net Framework 4 Client Profile by following these steps:

A. Click on Start and click on Control panel.

B. Go to Program and Features.

C. Scroll down to Microsoft.Net Framework 4 Client Profile, right click it.

D. It will give you a choice of Uninstall/Change, click it.

E. Then, it will give a choice to repair.

After following the above steps, the repair did not succeed because: Generic trust failure.

Part of the log:

Action: Downloading and/or Verifying Items...

Creating a Generic Entity Framework 4.0 Repository

With .NET 4.0 right around the corner, I thought it would be cool to download Visual Studio 2010 beta 2 and start playing around with the next release of Entity Framework.

The initial release of Entity Framework came with a great deal of criticism. To make matters worse, there was a large uproar when it was rumored that Microsoft would be abandoning LINQ to SQL, in favor of Entity Framework. This was because, at the time, many developers felt Entity Framework was an inferior technology to LINQ to SQL. To set things right, Microsoft proactively moved forward with improving Entity Framework, in time for the 4.0 release of the .NET Framework. This is good news because my initial impressions, so far, have been nothing but positive.

A Generic Dialog ViewModel

I worked on a wpf viewmodel for dialogs, because it seemed strange to me that you needed for instance windows forms dialogs to open or save files in wpf. So I set about creating my own wpf dialogs. After creating the dialog viewmodels there still remained a small issue with the library and also I didn't have much time to write an article about it. I however published the library containing the viewmodels for dialogs with another article on my blog

Program for Format Conversion of An Image

.NET provides extensive support for image conversion. Any image can be processed from one format to another. Most common formats to which .NET have support for are .BMP, .EMF, .GIF, .ICO, .JPG, .PNG, .TIF and .WMF.
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend