Click here to Skip to main content
15,894,896 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
QuestionSystem.Reflection and COM object Pin
doudou3130-Mar-06 5:18
doudou3130-Mar-06 5:18 
QuestionTargeting .net version Pin
Abdd0n30-Mar-06 1:53
Abdd0n30-Mar-06 1:53 
AnswerRe: Targeting .net version Pin
Vasudevan Deepak Kumar30-Mar-06 20:38
Vasudevan Deepak Kumar30-Mar-06 20:38 
QuestionHelp me to use NHibernate Pin
Balavardhan28-Mar-06 18:39
Balavardhan28-Mar-06 18:39 
QuestionStarting a console application within a windows service application Pin
Walter Vanhimbeeck28-Mar-06 3:43
Walter Vanhimbeeck28-Mar-06 3:43 
AnswerRe: Starting a console application within a windows service application Pin
Walter Vanhimbeeck28-Mar-06 22:10
Walter Vanhimbeeck28-Mar-06 22:10 
QuestionWorking directory of another process? Pin
blitr28-Mar-06 3:23
blitr28-Mar-06 3:23 
QuestionStop installation using script program Pin
monakolanji28-Mar-06 1:04
monakolanji28-Mar-06 1:04 
Hi everyone,

I created one setup program in .NET deployment and setup project. I used VBScript program for finding existence of old version and popup the message box with Yes No button.

If i click yes this new version's installation setup uninstall the old version. At the same time i need to exit from this new installation when i click No button in that popup message box.

I wrote code for uninstalling old version under Yes button's case. I couldnt get how to exit from the installation,which codes are used under No button's case.

I need help to exit installation by clciking No button.


I saw one script code "WScript.Quit". But this is for quiting from script program. I added the script file under install of custom actions.
--------------------
currentversion="1.0.1"
strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set colSoftware = objWMIService.ExecQuery _
("SELECT * FROM Win32_Product")

For Each objSoftware in colSoftware
ProductName= objSoftware.Caption
ProductDescription=objSoftware.Description
ProductCode= objSoftware.IdentifyingNumber
InstallLoc=objSoftware.InstallLocation
PInstallState= objSoftware.InstallState
PName= objSoftware.Name
Pkg=objSoftware.PackageCache
SKUNo= objSoftware.SKUNumber
Manufact= objSoftware.Vendor
VerNo= objSoftware.Version

'Check the existence of the same product and then check version number.
'If older version is present then display popup message box.
if (PName="VersionUpgrade") then

If(VerNo<currentversion) then

MsgBox "The old Version Number of "&ProductName&"is: "&objSoftware.Version

set WshShell=CreateObject("Wscript.Shell")

intButton=WshShell.Popup("Do you want to uninstall the older version of this application?",10,,4+32)

select case intButton

case -1
StrMessage="You didnt click any button within the allotted time"

case 6
MsgBox "Old Version is Uninstalled"

case 7
MsgBox "Old Version is not Uninstalled"

end select

end if
end if

Next
-------------------------------------------------------
I hope that i can get idea from this group. Please help me.






Lisa
Questionweb cam motion detection Pin
mrbhp27-Mar-06 10:22
mrbhp27-Mar-06 10:22 
AnswerRe: web cam motion detection Pin
CWIZO27-Mar-06 21:05
CWIZO27-Mar-06 21:05 
QuestionNET Framework Version 2.0 on windows 2000 professionnal edition Pin
ss200627-Mar-06 8:30
ss200627-Mar-06 8:30 
AnswerRe: NET Framework Version 2.0 on windows 2000 professionnal edition Pin
Dave Kreskowiak27-Mar-06 10:30
mveDave Kreskowiak27-Mar-06 10:30 
GeneralRe: NET Framework Version 2.0 on windows 2000 professionnal edition Pin
Kevin McFarlane27-Mar-06 10:37
Kevin McFarlane27-Mar-06 10:37 
GeneralRe: NET Framework Version 2.0 on windows 2000 professionnal edition Pin
Dave Kreskowiak27-Mar-06 17:08
mveDave Kreskowiak27-Mar-06 17:08 
Question.net framework and hardware identify Pin
ss200627-Mar-06 1:58
ss200627-Mar-06 1:58 
AnswerRe: .net framework and hardware identify Pin
Dave Kreskowiak27-Mar-06 6:27
mveDave Kreskowiak27-Mar-06 6:27 
Question.net framework redistrubual Pin
ss200626-Mar-06 7:58
ss200626-Mar-06 7:58 
AnswerRe: .net framework redistrubual Pin
Dave Kreskowiak26-Mar-06 9:27
mveDave Kreskowiak26-Mar-06 9:27 
Questionabout .net framework 2.0 or later Pin
ss200626-Mar-06 2:14
ss200626-Mar-06 2:14 
AnswerRe: about .net framework 2.0 or later Pin
CWIZO26-Mar-06 2:49
CWIZO26-Mar-06 2:49 
AnswerRe: about .net framework 2.0 or later Pin
Dave Kreskowiak26-Mar-06 4:47
mveDave Kreskowiak26-Mar-06 4:47 
QuestionDeploying Assembly and Loading Pin
Subby Dev25-Mar-06 21:06
Subby Dev25-Mar-06 21:06 
AnswerRe: Deploying Assembly and Loading Pin
Tim Paaschen26-Mar-06 18:55
Tim Paaschen26-Mar-06 18:55 
GeneralRe: Deploying Assembly and Loading Pin
Subby Dev27-Mar-06 6:08
Subby Dev27-Mar-06 6:08 
Questionsdf Pin
virz24-Mar-06 16:49
virz24-Mar-06 16:49 

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.