Remove Folder during MSI Install
Remove Folder during MSI Install
Create a custom action
cmd.exe /C rmdir "%PROGRAMDATA%\Microsoft\Windows\Start Menu\Programs\Java" /S /Q
Change the Type to 3122
No Impersonate runs the command in a system context.
Source is %COMSPEC
The ComSpec environment variable by default points to the full path of the command line interpreter.
Now you have to sequence the command to run second last just before InstallFinalize
Easy as that.
Comments
Post a Comment