Absolute novice here so this is probably going to sound stupid but here goes!
Im building an installer that will place 4 files into a folder that already contains files of the same names. I want to save the original files so I have used the move/copy function to essentially just rename the original files but leave them in the same folder. This works fine and I have been using this for a while.
Now though I want to add this. Upon un install i want to run a real basic VB script as a custom action to rename the original files back to the correct file name. The script is as follows
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.MoveFile "renamed.txt" , "original.txt"
This works exactly as intended if i run it on its own, but when I add it to the installer as an installed file custom action, I just get an error saying the script wouldn't run.
Ive checked the unistall and modify check boxes, and the script is placed after add resources. The script is installed by the package fine but i just cant get to to execute on unistall
Help!!
FOLLOW US
Get the latest news in Application Packaging