Uninstall Problem

NeoJackson
07-25-2003, 01:21 PM
I want to make an uninstall program, but i want it to have a message saying "are you sure you want to uninstall blah blah..." then 1 button saying yes and 1 saying no. when the user clicks yes, it carries on (i'm going to use the "kill" command), and when they click no, it will unload the program without doing anything, obviously. Now how do i go about this?

Thanks :)

ssrikant
07-25-2003, 02:27 PM
How exactly do u install u r software ?

I want to make an uninstall program, but i want it to have a message saying "are you sure you want to uninstall blah blah..." then 1 button saying yes and 1 saying no. when the user clicks yes, it carries on (i'm going to use the "kill" command), and when they click no, it will unload the program without doing anything, obviously. Now how do i go about this?

Thanks :)

NeoJackson
07-25-2003, 02:30 PM
[QUOTEPOST='ssrikant']How exactly do u install u r software?[QUOTEPOST]

I havent worked that out either yet lol.

One step at a time.

ssrikant
07-25-2003, 02:39 PM
Well u have to work out installation and then uninstall so that u could uninstall all the stuff that u installed at installation...basically u shld have a form that describles what this application does like uninstall the your software blah blah blah and witha two-three buttons captioned as "next" ,"exit" and "back"(optional) once u click the button next it shld prompt you to click okey on the msgbox for uinstallation to continue to uninstall the all the installed components that have been installed while installing the software.....other wise quit uninstall program

-s

[QUOTEPOST='ssrikant']How exactly do u install u r software?[QUOTEPOST]

I havent worked that out either yet lol.

One step at a time.

NeoJackson
07-25-2003, 03:11 PM
Well, i know which files are going to be installed, so i was just gunno do the kill command. What i dont understand how to do, is make it so that when a user clicks either yes or no, it does an appropriate action.

ssrikant
07-25-2003, 03:20 PM
Well, i know which files are going to be installed, so i was just gunno do the kill command. What i dont understand how to do, is make it so that when a user clicks either yes or no, it does an appropriate action.

ok try something like this with a form and a command button named cmduninstall

'
'
'
cmduninstall_click()
if msgbox("ARe you sure to uninstall"? vbYesNo,"Uninstall")=vbYes then
'if the answer is yes then uninstall all installed components
'make sure you remove all the files and then remove directories
kill("your path files " ) 'kill the files first
rmdir("your directories")
else
'do noothing and quit uninstall
unload me
end if

NeoJackson
07-25-2003, 04:37 PM
Well, i know which files are going to be installed, so i was just gunno do the kill command. What i dont understand how to do, is make it so that when a user clicks either yes or no, it does an appropriate action.

ok try something like this with a form and a command button named cmduninstall

'
'
'
cmduninstall_click()
if msgbox("ARe you sure to uninstall"? vbYesNo,"Uninstall")=vbYes then
'if the answer is yes then uninstall all installed components
'make sure you remove all the files and then remove directories
kill("your path files " ) 'kill the files first
rmdir("your directories")
else
'do noothing and quit uninstall
unload me
end if

Didnt work, i just got lots of errors on the

cmduninstall_click()
if msgbox("ARe you sure to uninstall"? vbYesNo,"Uninstall")=vbYes then

Bit

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum