Компьютерный форум OSzone.net  

Компьютерный форум OSzone.net (http://forum.oszone.net/index.php)
-   Автоматическая установка приложений (http://forum.oszone.net/forumdisplay.php?f=61)
-   -   Изменить тихую установку (http://forum.oszone.net/showthread.php?t=347862)

maxim43g 04-02-2021 15:43 2948801

Изменить тихую установку
 
Добрый день, есть .bat файл который делает тихую установку, по умолчанию она устанавливается в папку C:\Program Files\Agent\, как изменить .bat что бы установка шла в %appdata%\agent?
fusioninventory-agent_windows-x86_2.6.exe /S /acceptlicense /add-firewall-exception /execmode=Service /installtasks=Full /timeout=180 /delaytime=300 /server="http://192.168.88.4/glpi/plugins/fusioninventory/" /runnow

boss911 04-02-2021 23:32 2948845

Добавьте в ваш BAT файл параметр /installdir= (если путь с пробелами, брать в кавычки).

Код:

fusioninventory-agent_windows-x86_2.6.exe /installdir=%AppData%\Agent /S /acceptlicense /add-firewall-exception /execmode=Service /installtasks=Full /timeout=180 /delaytime=300 /server="http://192.168.88.4/glpi/plugins/fusioninventory/" /runnow

http://fusioninventory.org/documenta...ore_2.3.0.html

1.4. Installer command line parameters

Код:

/help                  Display this help. The space in front of /help is mandatory!
/installdir=dirname    Set installation directory of agent



Время: 07:46.

Время: 07:46.
© OSzone.net 2001-