saleem_butt
Flexera beginner

Custom Action Delete User Folder

Hi all

I have a custom action running a command line to delete a users profile settings for my app. Its a self healing MSI.

cmd /c rmdir /q /s "c:\users\%username%\app"

Running it manually under the users profile works from a cmd prompt in Windows.

How do i put this in as a custom action? So when a user first launches the program via a desktop shortcut, it deletes this folder in their user profile.

I've created a custom action, working directory SystemFolder, Asynchronous (waits for exit code), Immediate Execution, Always Execute, Install Exec Sequence After CostFinalize.

But its not working.

Thanks


Thanks

0 Kudos