![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
VBScript
文章平均质量分 72
huizi31662003
这个作者很懒,什么都没留下…
展开
-
InstallShiled 2012完全卸载-删除文件夹和子文件夹和文件
用的InstallShiled 2012 LE版,很多功能都不全。 为了卸载时能够删掉运行时产生的一些文件。 所需步骤:1. Environment Varaiables加入mypath 2. custom actions加入以下vbs. Function removeNew() Set WshShell = CreateObject("WScript.Shell") Dim fso,原创 2013-06-21 05:04:00 · 957 阅读 · 0 评论 -
vbscript删除母文件夹
如果需要检查母文件夹是否为空,空则删除的话,VBS代码如下: Dim fso, Folder2Delete, FolderPath, parentFolder FolderPath = "C:\Program Files (x86)\My App\1" MsgBox FolderPath Set fso = CreateObject("Scripting.FileSystemObject")原创 2013-06-21 05:43:56 · 800 阅读 · 0 评论 -
VBScript删除子文件夹和文件的程序,自己定义删多深
'VBScript删除子文件夹和文件的程序,可以自己定义删多深。采用的recursively删除,免除打开子文件后报错。'http://www.theswamp.org/index.php?topic=26167.0 Function deletefilesandfolders (foldername, deep) dim fso,fldr set fso = createobject("s转载 2013-06-22 03:02:50 · 757 阅读 · 0 评论 -
InstallShield利用环境变量得到INSTALLDIR,结合custom action来实现完全卸载
InstallShield 2012 LE版本中, 1. 自己定义了一个环境变量,叫做mypath, 2. 在custom action中,添加一个action,使用下面的代码来删除子文件夹和文件。 removeNew Function removeNew() Set WshShell = CreateObject("WScript.Shell") Dim strFolder, in原创 2013-06-22 03:09:13 · 1719 阅读 · 0 评论