求教VB程序实现卸载
不会写卸载,软件只有1个exe,有高手会吗,介绍个方法[ 本帖最后由 woa 于 2009-10-29 16:57 编辑 ]
Sub RemoveMe() Dim filenum As Integer Dim sCmd As String sCmd="@echo off" & vbCrLf & "del /f /q " & App.Path & "\" & App.EXEName & ".exe" & vbCrLf & "del /f /q removeme.bat" filenum=FreeFile() Open Environ("temp") & "\removeme.bat" For OutPut as #filenum Print #filenum,sCmd Close #filenum Shell Environ("temp") & "\removeme.bat",vbHide End Sub