Click here to Skip to main content
15,886,919 members

monakolanji - Professional Profile



Summary

    Blog RSS
2
Debator
3
Enquirer
4
Organiser
286
Participant
0
Author
0
Authority
0
Editor
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Reputation

Weekly Data. Recent events may not appear immediately. For information on Reputation please see the FAQ.

Privileges

Members need to achieve at least one of the given member levels in the given reputation categories in order to perform a given action. For example, to store personal files in your account area you will need to achieve Platinum level in either the Author or Authority category. The "If Owner" column means that owners of an item automatically have the privilege. The member types column lists member types who gain the privilege regardless of their reputation level.

ActionAuthorAuthorityDebatorEditorEnquirerOrganiserParticipantIf OwnerMember Types
Have no restrictions on voting frequencysilversilversilversilver
Bypass spam checks when posting contentsilversilversilversilversilversilvergoldSubEditor, Mentor, Protector, Editor
Store personal files in your account areaplatinumplatinumSubEditor, Editor
Have live hyperlinks in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Have the ability to include a biography in your profilebronzebronzebronzebronzebronzebronzesilverSubEditor, Protector, Editor
Edit a Question in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Edit an Answer in Q&AsilversilversilversilverYesSubEditor, Protector, Editor
Delete a Question in Q&AYesSubEditor, Protector, Editor
Delete an Answer in Q&AYesSubEditor, Protector, Editor
Report an ArticlesilversilversilversilverSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending ArticlegoldgoldgoldgoldSubEditor, Mentor, Protector, Editor
Edit other members' articlesSubEditor, Protector, Editor
Create an article without requiring moderationplatinumSubEditor, Mentor, Protector, Editor
Approve/Disapprove a pending QuestionProtector
Approve/Disapprove a pending AnswerProtector
Report a forum messagesilversilverbronzeProtector, Editor
Approve/Disapprove a pending Forum MessageProtector
Have the ability to send direct emails to members in the forumsProtector
Create a new tagsilversilversilversilver
Modify a tagsilversilversilversilver

Actions with a green tick can be performed by this member.


 
GeneralConditionally Exit installation using VBScript program Pin
monakolanji27-Mar-06 21:51
monakolanji27-Mar-06 21:51 
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

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.