I have a .NET application that I distribute using ClickOnce
online only . How can I make it download again (not take the cache)?
Is there a way to achieve this without deploying a newer version?
I have a .NET application that I distribute using ClickOnce
online only . How can I make it download again (not take the cache)?
Is there a way to achieve this without deploying a newer version?
Here are some options:
You can use Mage like this on the command line (if you don't have Visual studio installed on that pc you must have at least Windows SDK or Framework SDK ):
If you don't have Mage installed, Another option is to run this on the command line:
You can also delete the folder where clickonce is installed (tested on machines with windows 7 or higher):
This should be done as a last resort as it would delete all installed clickonce apps.
I see two options:
Delete the working directory of
clickonce
, you could create one.bat
with the following instruction to use it whenever you need it:rd /s /q "%homedrive%%homepath%\Config~1\Apps\2.0"
Upload the version of the application.