I'm trying to write a small VBS to cleanup a couple of files that get created at runtime by my application, when it's uninstalled.
I'm trying to work out how I can find out the value of [TARGETDIR], in order to test for the files existance and remove accordingly.
I thought I might be able to pass in [TARGETDIR] as a parameter to the function call but it doesn't seem to work.
VBS:
Code: Select all
Function Cleanup (targetDir)
MsgBox(targetDir)
End FunctionCode: Select all
Cleanup("[TARGETDIR]")Code: Select all
Cleanup([TARGETDIR])How can I find out the [TARGETDIR] from within my VBS code?
Regards,
Richard.
FOLLOW US
Get the latest news in Application Packaging