Best Uninstall for vb4.0 32bit, free, no batch file 
Author Message
 Best Uninstall for vb4.0 32bit, free, no batch file

I finally got a better uninstall to work.  It is a registered link that gets
removed on uninstall.

in the vb4 32bit  subdir ...\setupkit\setup1
backup that dir.

open project setup1.vbp

in setup1.frm, in the load event

find the code

'*     If gstrAppExe <> "" Then  
'*        '
'*        'Create the main application icon or link
'*        '
'*       CreateOSLink frmSetup1, gsDest.strAppDir & gstrAppExe, "",
gstrAppName
'*     End If  

paste this code in to replace it...  Watch the carriage returns on paste

     If gstrAppExe <> "" Then  
        '
        'Create the main application icon or link
        '
       CreateOSLink frmSetup1, gsDest.strAppDir & gstrAppExe, "", gstrAppName
       #If Win32 Then
       gstrResponse = MsgBox("Put a removal icon on the start menu?", vbYesNo
+ vbInformation + vbDefaultButton1, "Add Removal icon")
          If gstrResponse = vbYes Then    ' User chose Yes.
            CreateOSLink frmSetup1, gstrWinDir & "st4unst.exe", " -n " &
Chr(34) & gstrDestDir & "st4unst.log" & Chr(34), gstrAppName & " Remove"
          Else    ' User chose No.
          End If
       #End If
     End If

make exe, then run the setup wizzard for your 32bit program like you
always would..  the next time you run setup.exe it will use the new setup
routine.

this will give the user the option to add a icon in the start menu to
uninstall the software the correct way (like add/remove prpgrams).

See ya,

Garrett


ruined the posting of email...



Sat, 20 Nov 1999 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. How to get free system resources under Win 95 with Vb4/32Bit

2. Which is the better way to batch-process files

3. VB4.0EE 32bit Error writing EXE w/Rmt Supt files

4. VB4 32bit STD: Getting URL File history properties

5. VBX files with VB4 32bit

6. Position the Help File From 32bit VB4

7. Playing midi file with VB4(32bit)

8. Executing DOS batch files in VB4/32 bit

9. Upgrade Problems: VB4.0/16Bit to VB4.0/32Bit

10. VB4 16bit Vs. VB4 32bit???

11. Good Uninstall Code

12. Free 32bit SMTP Component

 

 
Powered by phpBB® Forum Software