Click here to Skip to main content
15,357,992 members
Home / Discussions / C#
   

C#

 
QuestionFinding path of an application Pin
wasife2-Aug-06 21:24
Memberwasife2-Aug-06 21:24 
AnswerRe: Finding path of an application Pin
stancrm2-Aug-06 21:30
Memberstancrm2-Aug-06 21:30 
QuestionPre-Requisites for my C# application Pin
wasife2-Aug-06 21:07
Memberwasife2-Aug-06 21:07 
AnswerRe: Pre-Requisites for my C# application Pin
leppie2-Aug-06 21:16
Memberleppie2-Aug-06 21:16 
Question(Very Urgent) WMP ActiveX Video Height And Width Pin
Souhail Jabbour2-Aug-06 20:54
MemberSouhail Jabbour2-Aug-06 20:54 
QuestionFont size in MessageBox Pin
stancrm2-Aug-06 20:16
Memberstancrm2-Aug-06 20:16 
AnswerRe: Font size in MessageBox Pin
Divyang Mithaiwala2-Aug-06 22:49
MemberDivyang Mithaiwala2-Aug-06 22:49 
QuestionError Rolling Back Setup (Installer Class(deployment)) Pin
abhinish2-Aug-06 19:31
Memberabhinish2-Aug-06 19:31 
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)
{
base.OnBeforeInstall (savedState);

try
{
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)))
{

base.Rollback(savedState);
return;

}
}
catch(InstallException iex)
{this.Rollback(savedState);

}
catch(Exception ex)
{this.Rollback(savedState);
}
}

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


abhinav


abhinav

QuestionActive Window [modified] Pin
Imtiaz Murtaza2-Aug-06 18:39
MemberImtiaz Murtaza2-Aug-06 18:39 
QuestionRe: Active Window Pin
mkamioner2-Aug-06 19:07
Membermkamioner2-Aug-06 19:07 
Questionretrieving a Bitmap from an HTMLImgClass Pin
Dave_Roach2-Aug-06 15:09
MemberDave_Roach2-Aug-06 15:09 
AnswerRe: retrieving a Bitmap from an HTMLImgClass Pin
Christian Graus2-Aug-06 15:18
mveChristian Graus2-Aug-06 15:18 
GeneralRe: retrieving a Bitmap from an HTMLImgClass Pin
Dave_Roach2-Aug-06 15:41
MemberDave_Roach2-Aug-06 15:41 
GeneralRe: retrieving a Bitmap from an HTMLImgClass Pin
llpnet27-Jan-09 11:24
Memberllpnet27-Jan-09 11:24 
GeneralRe: retrieving a Bitmap from an HTMLImgClass Pin
Gjuro Kladaric28-Oct-11 1:40
MemberGjuro Kladaric28-Oct-11 1:40 
GeneralRe: retrieving a Bitmap from an HTMLImgClass Pin
brain_freeze126-May-12 17:36
Memberbrain_freeze126-May-12 17:36 
Questionhow to convert sqlserver2000 db to access 2003 ? Pin
hdv2122-Aug-06 13:10
Memberhdv2122-Aug-06 13:10 
AnswerRe: how to convert sqlserver2000 db to access 2003 ? Pin
Guffa2-Aug-06 13:27
MemberGuffa2-Aug-06 13:27 
Questionclick a button on a website using webbrowser in c# 2005 Pin
Green Fuze2-Aug-06 12:02
MemberGreen Fuze2-Aug-06 12:02 
QuestionMake Polygon Follow a Line Pin
Sautin.net2-Aug-06 11:21
MemberSautin.net2-Aug-06 11:21 
AnswerRe: Make Polygon Follow a Line Pin
Judah Gabriel Himango2-Aug-06 11:43
sponsorJudah Gabriel Himango2-Aug-06 11:43 
GeneralRe: Make Polygon Follow a Line [modified] Pin
Sautin.net2-Aug-06 12:26
MemberSautin.net2-Aug-06 12:26 
GeneralRe: Make Polygon Follow a Line Pin
lmoelleb2-Aug-06 22:52
Memberlmoelleb2-Aug-06 22:52 
AnswerRe: Make Polygon Follow a Line Pin
Christian Graus2-Aug-06 14:05
mveChristian Graus2-Aug-06 14:05 
AnswerRe: Make Polygon Follow a Line Pin
Sautin.net3-Aug-06 5:26
MemberSautin.net3-Aug-06 5:26 

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.