Click here to Skip to main content
15,350,990 members
Home / Discussions / C#
   

C#

 
QuestionMapping data Pin
abnorm1-Aug-06 22:27
Memberabnorm1-Aug-06 22:27 
QuestionUsercontrol - Respond to parent controls events? Pin
Ian Roberts1-Aug-06 22:21
MemberIan Roberts1-Aug-06 22:21 
AnswerRe: Usercontrol - Respond to parent controls events? Pin
S. Senthil Kumar2-Aug-06 3:37
MemberS. Senthil Kumar2-Aug-06 3:37 
QuestionWinform Control Event Handling Pin
adityap1-Aug-06 21:22
Memberadityap1-Aug-06 21:22 
Questiondifferent font in each row of listbox Pin
nauty1-Aug-06 21:18
Membernauty1-Aug-06 21:18 
AnswerRe: different font in each row of listbox Pin
albCode1-Aug-06 21:23
MemberalbCode1-Aug-06 21:23 
AnswerRe: different font in each row of listbox Pin
yueue2-Aug-06 4:56
Memberyueue2-Aug-06 4:56 
QuestionError Rolling Back Setup (Installer Class) Pin
abhinish1-Aug-06 20:34
Memberabhinish1-Aug-06 20:34 
hi guys!

need some help.
i m deploying a .net application using the .net setup project and also using the installer class to add some custom actions every thing is running fine..
but i want to rollback the setup if a condition does not matches.. for which i m using the

base.rollback(isavedstate) method but it gives an exception
that "savedstate might be corrupted" and then rollback the setup from the catch block..

i m searching for it from a long time but couldnt figured it out. can any one tell me what i m missing..
i wrote the code some what like this:

   protected override void OnBeforeInstall(IDictionary savedState)<br />
		{<br />
			base.OnBeforeInstall (savedState);<br />
<br />
			try<br />
			{<br />
if(DialogResult.No==(MessageBox.Show("This Setup Will restart your Internet Infromation Service Mannager(IIS). Do you want to Continue ? ","Alert",MessageBoxButtons.YesNo,MessageBoxIcon.Hand)))<br />
			  {<br />
						<br />
				base.Rollback(savedState);<br />
				return;<br />
							<br />
			  }<br />
                        }<br />
			catch(InstallException iex)<br />
			{this.Rollback(savedState);<br />
<br />
			}<br />
			catch(Exception ex)<br />
			{this.Rollback(savedState);<br />
			}<br />
		}


but it gets rollback in the catch block gining the error.

abhinav

QuestionCluster Management APIs Pin
NewDev4241-Aug-06 20:25
MemberNewDev4241-Aug-06 20:25 
QuestionAnimated gif in DataGridView Pin
e_LA1-Aug-06 20:05
Membere_LA1-Aug-06 20:05 
QuestionTroubles Debugging In .NET 2.0.50727 Pin
white.thief1-Aug-06 19:11
Memberwhite.thief1-Aug-06 19:11 
AnswerRe: Troubles Debugging In .NET 2.0.50727 Pin
leppie1-Aug-06 20:48
Memberleppie1-Aug-06 20:48 
GeneralRe: Troubles Debugging In .NET 2.0.50727 Pin
white.thief2-Aug-06 5:09
Memberwhite.thief2-Aug-06 5:09 
Questionhow to get the cpu and memory use ratio ? Pin
Janezzq1-Aug-06 15:06
MemberJanezzq1-Aug-06 15:06 
AnswerRe: how to get the cpu and memory use ratio ? Pin
sundar1563-Aug-06 11:36
Membersundar1563-Aug-06 11:36 
Questionhow to get the cpu and memory use ratio ? Pin
Janezzq1-Aug-06 15:03
MemberJanezzq1-Aug-06 15:03 
AnswerRe: how to get the cpu and memory use ratio ? Pin
seq-2-Aug-06 11:47
Memberseq-2-Aug-06 11:47 
QuestionLocalization problem ! Pin
Vertyg01-Aug-06 13:08
MemberVertyg01-Aug-06 13:08 
AnswerRe: Localization problem ! Pin
lmoelleb1-Aug-06 21:23
Memberlmoelleb1-Aug-06 21:23 
GeneralRe: Localization problem ! Pin
Vertyg01-Aug-06 22:02
MemberVertyg01-Aug-06 22:02 
GeneralRe: Localization problem ! [modified] Pin
lmoelleb1-Aug-06 23:39
Memberlmoelleb1-Aug-06 23:39 
GeneralRe: Localization problem ! Pin
Vertyg02-Aug-06 7:51
MemberVertyg02-Aug-06 7:51 
QuestionNetwork Access monitoring Pin
sundar1561-Aug-06 11:16
Membersundar1561-Aug-06 11:16 
AnswerRe: Network Access monitoring Pin
Ingo2-Aug-06 1:47
MemberIngo2-Aug-06 1:47 
GeneralRe: Network Access monitoring Pin
sundar1562-Aug-06 8:54
Membersundar1562-Aug-06 8:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.