Custom actions
can somebody help me on this asap
Custom Action to delete this folder by using In-script option Immediate Execution
Custom Action to delete this Folder by using In-script option Deffered Execution System Context.
Thanks for the help
Custom Action to delete this folder by using In-script option Immediate Execution
Custom Action to delete this Folder by using In-script option Deffered Execution System Context.
Thanks for the help
0 Comments
[ + ] Show comments
Answers (11)
Please log in to answer
Posted by:
WiseAppPackager
13 years ago
Posted by:
angel7
13 years ago
Posted by:
cygan
13 years ago
Posted by:
angel7
13 years ago
Posted by:
captain_planet
13 years ago
Posted by:
anonymous_9363
13 years ago
You don't NEED a CA to remove a folder. As directed, use the RemoveFile table.
Posted by:
WiseAppPackager
13 years ago
And, if you want a VBScript to do so, here it is.
It would delete the 'C:\Test' folder.
dim filesys, instfolder
set filesys = CreateObject ("Scripting.FileSystemObject")
set instfolder = filesys.GetFolder("C:\Test\")
instfolder.Delete
Use this code in the custom action 'Call VBScript From Embedded Code', and sequence it in the manner what captain_planet has written above.
Don't forget to tell, if it worked or not.
It would delete the 'C:\Test' folder.
dim filesys, instfolder
set filesys = CreateObject ("Scripting.FileSystemObject")
set instfolder = filesys.GetFolder("C:\Test\")
instfolder.Delete
Use this code in the custom action 'Call VBScript From Embedded Code', and sequence it in the manner what captain_planet has written above.
Don't forget to tell, if it worked or not.
Posted by:
angel7
13 years ago
Posted by:
anonymous_9363
13 years ago
If you MUST go this route...
dim filesys, instfolder
set filesys = CreateObject ("Scripting.FileSystemObject")
'// Does the object 'filesys' now exist? Er...we don't know
set instfolder = filesys.GetFolder("C:\Test\")
'// Does the object 'instfolder' now exist? Er...we don't know that, either
instfolder.Delete
'// Did the folder get deleted? Ummm...we hope so
Error-trap, error-trap, error-trap, for God's sake. Always assume your code will FAIL!
Posted by:
AngelD
13 years ago
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.