you can use CheckBox dailog in Setup Project. Right click on Setup Project --> View --> User Interface --> add Dailog refer this http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/161623e8-f6e4-45eb-9a61-6576caffc379[^]
Narendra Reddy Vajrala
Posts
-
merge two projects -
How to Disable Repair in VisualStudio2008 Setup Project?Hi, in my Visual Studio2008 Setup and Deployment Project am trying to disable the repair radiobutton from the installation package. for that am using ocra to edit the msi tables. in 'RadioButton' table i deleted 1. MaintenanceForm_Action 2. AdminMaintenanceForm_Action but at the time of unistallation it is giving error 'The installer has encounteres an unexpected error installing this package. This may indicate a problem with this package. The error code is 2855' what more things i need to do?? please suggest me i dont want Repair button finally in my installation package. please help me out Thanks In Advance --Naren
-
Error 1053: The service did not respond to the start or control request in a timely fashionHi Obrix! m also facing the same short of problem to windows service did u got solution?? please share :)
-
Get Error Number in C#Hey Anubhava... did you got the solution to find error number in c#.net??? i have the same requirement i tried so much but i did not found solution :( please pass solution if you got tnx in advance :)
-
Login Problem with CrystalReportsHi Experts, In my VisulaStudio2008 c#.net windows Apllication i have a crystalReport(Main) it have 5 subreports. i did this report in my local machine so i gave datasource, database name and other credentials i set as local only but from coding i set database login details dynamically to get data from required source my code is like this
ShiftSummaryReport report = new ShiftSummaryReport(); ReportDocument crSubreportDoc; Sections crSections; ReportObjects crReportObjects; SubreportObject crSubreportObject; report.SetDataSource(shiftSummaryDataset.Tables[0]); report.SetDatabaseLogon(user, password, server, database); crSections = report.ReportDefinition.Sections; foreach (Section crsection in crSections) { crReportObjects = crsection.ReportObjects; foreach (ReportObject crreportobject in crReportObjects) { if (crreportobject.Kind == ReportObjectKind.SubreportObject) { crSubreportObject = (SubreportObject)crreportobject; crSubreportDoc = crSubreportObject.OpenSubreport(crSubreportObject.SubreportName); crSubreportDoc.SetDatabaseLogon(user, password, server, database); } } }
i kept debug and checked, values coming to those variables and executing fine. but still it is asking for database login. how can i solve this? please help me out Thanks In Advance --Naren -
how to use windows service in another project?my code is like this in windows services class
protected override void OnStart(string[] args) { insertValues(3, "Naresh Kumar", "3658213641", "Begumpet, Hyderabad"); } public void insertValues(int custId, string custName, string custPhone, string custAdd) { string insertCommand = "Insert into CUSTOMER values ( " + custId + ",'" + custName + "','" + custPhone + "','" + custAdd + "')"; con.Open(); cmd = new SqlCommand(insertCommand, con); cmd.ExecuteNonQuery(); con.Close(); }
when am trying run this service from computer Mangement is it displaying below alert "The service on local machine started and stopped. some services stopped automatically if they have no work to do for example the performance logs and alerts service." please help me out -
how to use windows service in another project?same error no change :( even i used try catch block.
-
how to use windows service in another project?i cant break my PL orders :(
-
how to use windows service in another project?ya actually but i have to do in windows services only. :(
-
how to use windows service in another project?am giving my code sample
protected override void OnStart(string[] args) { insertValues(3, "Naresh Kumar", "3658213641", "Begumpet Hyderabad"); } public void insertValues(int custId, string custName, string custPhone, string custAdd) { string insertCommand = "Insert into CUSTOMER values ( " + custId + ",'" + custName + "','" + custPhone + "','" + custAdd + "')"; con.Open(); cmd = new SqlCommand(insertCommand, con); cmd.ExecuteNonQuery(); con.Close(); }
when am trying run this service from computer Mangement is it displaying below alert "The service on local machine started and stopped. some services stopped automatically if they have no work to do for example the performance logs and alerts service." please help me out. -
how to use windows service in another project?what am trying to do is i want to insert records into a sqlTable for that i created a method with 4 arguments in windows services class. inside that method i wrote code to insert those 4 arguments. i installed this windows service. from another project i want to call this method To insert records from a form i called that service like this
WindowsService1.Service1 winService = new WindowsService1.Service1(); winService.insertValues(txtcustId.Text, txtcustName.Text, txtcustPhone.Text, txtcustAddress.Text);
here insertValues is my method inside windows service, where i wrote insert statement. is this correct way? when i tried to build it is giving below errorError 2 The type 'System.ServiceProcess.ServiceBase' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.ServiceProcess, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'. C:\Inetpub\wwwroot\WindowsFormsApplication1\WindowsFormsApplication1\Form1.cs 451 13 WindowsFormsApplication1
modified on Monday, June 29, 2009 8:37 AM
-
how to use windows service in another project?Hi Himanshu, i installed my service, it is fine am performing start, stop, restart operations. but am stuck with calling this windows service in another project. :( i tried in google but i did not find any information reagrding this to call a windows service in another project.
-
how to use windows service in another project?Hi Experts, i created a windows service to insert data in to a sql table. now i want to call this windows service in another project how can i call this? i tried to add service reference but it is asking for url how can i give this? like webservices, is windows services also contain URL? please help me out Thanks In Advance --Naren
-
How to Determine the path of .msi file?Hi, How can we know the path of .msi file, where it is being executed from? Thanks In Advance --Naren
-
GEt path of msiHi, did you got the solution for this? how to get the .msi path means from which location we are installing? if you got please share that code i really need that urgent Thanks In Advance --Naren
-
Launch Condition for crystal report in c#.net 3.5 Setup project.No dude, not yet still am researching no one providing necessary things.
-
how to display default image in datagridview in c#.net 3.5 Win Forms?Hi Experts, am working with c#.net 3.5, Windows Application How can i add a default image to every row of my datagridview? please help me out. Thanks In Advance. :-O
-
Launch Condition for crystal report in c#.net 3.5 Setup project.Hi all, TO my .net setup project i want to add a launch condition for crystal report installation. In my prerequisities i selected Crystal reports fro basic visual studio 2008 (x64, x86) in my debug folder i got those respective crystalreport10_5 folder after successful build. i got CRRedist2008_x64.msi,CRRedist2008_x86.msi i want to install CRRedist2008_x86.msi so in my Installurl i specified CRRedist2008_x86.msi's path. but it is not installing, in installing window a message gathering information came and after some time it is closing. so am trying to install CRRedist2005_x86.msi but when am trying to install my setup project it always going to that crystal report launch condition though i installed CRRedist2005_x86.msi. in my launch condition i gave properties as Name : CrystalReport Condition: CrystalReport InstallUrl : CrystalReports10_5\CRRedist2005_x86.msi Message: Do you want to install crystal Reports? please provide launch condition to install crystal reports. and why it is asking every time crystal report installation? so that am not able to proceed further to install my application. please help me out. Thanks In Advance
-
Problem with appconfig while uninstalling projectyes, you are correct. cant we delete that app.config file during uninstallation?
-
Problem with appconfig while uninstalling projectHi, am creating appconfig file dynamically to my application folder. it is working fine but while am uninstalling my application, everything unstalled but that appconfig not uninstalled why this is happening? how can i uninstall appconfig also? Thanks InAdvance