A
A
Andrey Orlov2020-03-26 17:36:30
Active Directory
Andrey Orlov, 2020-03-26 17:36:30

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

1 answer(s)
R
Ronald McDonald, 2020-03-26
@alexklu

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.

Google: exe to msi.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question