Custom Action to delete folder using InstallShield
I´m doing an MSI-package however I have to clear up the old installationfolder (all files aren´t removed when uninstalling the old MSI). I have written a simple vbs that should take care of it. It works standalone from a commandprompt. However it doesn´t work in the custom action and I cant figure out why. I think it has something to do with the variable %PROGRAMFILES(x86)% however I dont know. Here is the script:
On Error Resume Next
Set WshShell = WScript.CreateObject("Wscript.Shell")
path=ProgramFilesx86 & "\Opas"
Set objFSO = CreateObject("Scripting.FileSystemObject")
I have tried "immediate execution" and "deffered in system context" but it doesn´t delete the folder and files which it should.
Answer Chosen by the Author
log in to commentPlease