I want build an Installer that update a folder with new files:
1) delete current files in this folder
2) replace it by new files
It's a folder that contains other information e.g. differents files that will be installed.
Code: Select all
Function removeDir()
Dim pathToFolder, smallPath
Set objFS = CreateObject("Scripting.FileSystemObject")
pathToFolder = Session.Property("PROPERTY")
smallPath=Left(pathToFolder,Len(pathToFolder)-1)
If (objFS.FolderExists(smallPath)) then
objFS.DeleteFolder smallPath, true
End if
End FunctionCode: Select all
pathToFolder = "C:\My_Folder"
FOLLOW US
Get the latest news in Application Packaging