In order to get "/setloglevel Error|Debug /checknow"
to work you need to enclose "Error|Debug"
in quotes as detailed in our documentation:
You can combine the following attributes by separating them using the pipe character ("|") and enclosing them using quotes (i.e. "Error|Debug").
You can also use other ways of configuring logging:
- you can create a desktop shortcut that will point to the updater.exe file in the package. Right click on your shortcut from the "Files and Folders"
page, select "Properties"
and there you can input the arguments to create your log.
- you can also use the command line for updater if you use "Automatic: using WIndows Scheduled Task"
. Just click on "Configure task"
and there you can use your command line. This option is available starting with our Enterprise
As for the C# example, please have a look over the following articles:
- StackOverflow - Running EXE with parameters
- Process.Start Method
Hope this helps!