Answer the question
In order to leave comments, you need to log in
Script to deploy application to AD?
Good afternoon, please tell me there is a desire to organize the deployment of the program to client PCs, but there is no .msi bad luck. I undertook to write a script to install something like this, if there is a file along this path, it launches it, if not, then the system downloads the program folder to the client PC and displays a shortcut on the desktop.
I'm not very good at scripting.
@Echo off
set Rocket=%homepath%\AppData\Local\Programs\Rocket.Chat\Rocket.Chat.exe
if exists "%Rocket%" CALL :St
if not exists "%Rocket%" CALL :Inst
Pause
GOTO :EOF
:Inst
xcopy "\\server\Rocket.Chat\Rocket.Chat" "%homepath%\AppData\Local\Programs\Rokcet.Chat"
GOTO :EOF
:St
start "%homepath%\AppData\Local\Programs\Rocket.chat\Rocket.Chat.exe"
GOTO :EOF
Answer the question
In order to leave comments, you need to log in
Good afternoon, please tell me there is a desire to organize the deployment of the program to client PCs, but there is no .msi bad luck.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question