/bundles/itninjaweb/img/Breadcrumb_cap_w.png
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
0 Comments   [ - ] Hide Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity

Answers

0
What do you exactly need?
Do you want a CA code to delete any specific folder? Which scripting are you using?
Answered 01/18/2011 by: WiseAppPackager
Purple Belt

Please log in to comment
0
hi
i dont want vbscript custom action.Just a custom action to delete folder
Answered 01/18/2011 by: angel7
Senior Yellow Belt

Please log in to comment
0
there is no custom action just to remove a folder / file

you can use the removefile table to do the following

1) delete files during installation or uninstallation
2) remove folders only if they are empty
Answered 01/19/2011 by: cygan
Fifth Degree Brown Belt

Please log in to comment
0
hi,
I want a script to delete folder but in the properties it shuld be In-Script option .Plz help me on this.I am very confused.
Answered 01/19/2011 by: angel7
Senior Yellow Belt

Please log in to comment
0
....I'm taking it based on your MSI knowledge that you're no relation to AngelD. [;)]

Anyhow, Cygan's right. Either use the RemoveFile table, or write a VBScript Custom Action (type 38) with IN-SCRIPT EXECUTION set to Deferred in a System Context , and schedule it just before InstallFinalize.
Answered 01/19/2011 by: captain_planet
Black Belt

Please log in to comment
0
You don't NEED a CA to remove a folder. As directed, use the RemoveFile table.
Answered 01/19/2011 by: VBScab
Red Belt

Please log in to comment
0
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.
Answered 01/19/2011 by: WiseAppPackager
Purple Belt

Please log in to comment
0
Guys thanks a lot,I got the solution
Answered 01/19/2011 by: angel7
Senior Yellow Belt

Please log in to comment
0
I used the method wot 'Captain Planet' and 'WiseAppPackager' has told me .It worked.Thanks a lot guys
Answered 01/19/2011 by: angel7
Senior Yellow Belt

Please log in to comment
0
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!
Answered 01/19/2011 by: VBScab
Red Belt

Please log in to comment
0
ORIGINAL: captain_planet

....I'm taking it based on your MSI knowledge that you're no relation to AngelD. [;)]


Thanks for that Captain [8D]
Answered 01/19/2011 by: AngelD
Red Belt

Please log in to comment