Command Line options - Printable Version

+- (https://shark007.net/forum)
+-- Forum: Choose a topic below (https://shark007.net/forum/Forum-Choose-a-topic-below)
+--- Forum: General discussions (on topic) (https://shark007.net/forum/Forum-General-discussions-on-topic)
+--- Thread: Command Line options (/Thread-Command-Line-options)



Command Line options - SharkAdmin - 08-10-2020

Beginning with versions 14.8.6.18 and 11.2.6.18 there are new commandline features as depicted below.
   
To expand your knowledge of available commandline options starting with, Settings64.exe 1strun to close the Application.
each of the available command line entries needs to be a single directive.
Commandline options cannot be combined.

All commandline executions are hidden.

usage format: x:\fullpathto\Settings64.exe reset
usage format: x:\fullpathto\Settings64_portable.exe restore

These commandline options all must be run with the App closed. It will auto-close after applying each one.
reset - same as pressing [RESET ALL]  (the app will close after applying this setting)
restore - needs to be applied with the app closed and will close the app after applying the restored settings
uninstall - its a done deal, no user input but there are visuals (it is also the default uninstall feature of the app and Windows itself uses it too)

THE RESTORE FEATURE
The restore settings include all possible options my GUI allows access to, directly and indirectly,
by opening another GUI such as a LAV setting. It also includes screen positioning and background color.
It will also setup any other user accounts on the system to these saved settings.

Information about the stored  files for settings restoration.
files are found in the following locations;
X64Components - any version, C:\ProgramData\Shark007\settings\**files**
32bit Advanced, C:\ProgramData\Advanced\settings\**files**
32bit Standard, C:\ProgramData\Standard\settings\**files**
Standard = 3 reg files and an ini file - Advanced = 5 reg files and an ini  file
If any reg files are missing, it just means that default settings of that software are being used.
setting the x,y positions in the inifile to -1 would center it on the screen. 0 would be top left.

The restoration feature can be automated.
If the files exist in their proper location during installation, and were saved with the [x] Restore automatically tag
they will be used to restore your preferred settings during the installation setup feature or by running the portable app for the 1st time.

To use these saved files without auto-restore occuring, do not save them with the auto-restore tag.
On a clean OS install, use the 1strun commandline to close the App.
Then use the restore commandline to apply your settings. (of course, the settings need to pre-exist in the programdata dir.)
This would also be handy for a System Administrator to 1st send out a reset and then a restore command to fully reset faulty systems.

All of these functions mentioned above also apply to the Portable Codec solutions. (no installer, just place the file where ever you want them)
Using the portable codec release, simply extract and place the package onto the target system, including the saved settings to the %programdata% folder
and then send the command, x:\full\PathTo\Settings64_portable.exe restore (provided that the settings were saved with auto restore enabled)
A GUI is not presented and the codecs, along with your preferred settings, are setup instantly and without any GUI presented. 

There is a new AutoUpdate.exe file in the \Tools directory. It is currently ver 2.2.1.0
It can be run silently using the commandline  full\path\to\AutoUpdate.exe /silent Or -silent Or just a RAW statement 'silent'
The commandline  full\path\to\Settings64_portable.exe /silent Or -silent Or a RAW statement 'silent' also works to run the updater silently.
It updates just about everything as long as there is internet access available.
User settings are preserved during these updates.