Did you know you can use Commandline parameters with WiseScript?
all you need to do is reference it in your script as follows..
item: If/While Statement
Variable=CMDLINE
Value=/UNINSTALL
Flags=00000100
end
in this case, if your compiled EXE is run with /uninstall after it, it will run that section between your IF and END statement. You can still have a different WSE file for your uninstall, but you will need to reference it as an Include Script inside of the above IF End statement.
item: Include Script
Pathname=.\Uninstall.wse
end
Comments