Custom install
<[email protected]> Thu, 12 Oct 2023 10:38:40 +0200
| Newsgroups | gmane.network.tight-vnc.general |
|---|---|
| Message-ID | <[email protected]> |
This is a multipart message in MIME format.
--===============6347620582436638032==
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_001B_01D9FCF8.44150EE0"
Content-Language: pl
This is a multipart message in MIME format.
------=_NextPart_000_001B_01D9FCF8.44150EE0
Content-Type: text/plain;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
Hi, I=E2=80=99m trying to make a simple bat file for installing vncwith =
custom settings, I tried all day, but I=E2=80=99m not able to install it =
via bat =E2=98=B9
here=E2=80=99s my code:
@echo off
setlocal
=20
rem Znajd=C5=BA plik MSI w bie=C5=BC=C4=85cym katalogu, w kt=C3=B3rym =
jest uruchamiany skrypt
for %%I in ("%~dp0\*.msi") do (
set "msi_file=3D%%~fI"
goto :InstallMSI
)
=20
echo Nie znaleziono pliku MSI w bie=C5=BC=C4=85cym katalogu.
goto :EOF
=20
:InstallMSI
msiexec /i "%msi_file%" /quiet /norestart /L*V "C:\tight\install.log" =
ADDLOCAL=3DServer SERVER_REGISTER_AS_SERVICE=3D1 =
SERVER_ADD_FIREWALL_EXCEPTION=3D1 SERVER_ALLOW_SAS=3D1 =
SET_RUNCONTROLINTERFACE=3D0 SET_USECONTROLAUTHENTICATION=3D1 =
VALUE_OF_USECONTROLAUTHENTICATION=3D1 SET_CONTROLPASSWORD=3D1 =
VALUE_OF_CONTROLPASSWORD=3Dmypassword SET_USEVNCAUTHENTICATION=3D1 =
VALUE_OF_USEVNCAUTHENTICATION=3D1 SET_PASSWORD=3D1 =
VALUE_OF_PASSWORD=3Dmypassword
=20
endlocal
=20
=20
------=_NextPart_000_001B_01D9FCF8.44150EE0
Content-Type: text/html;
charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dutf-8">
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" =
xmlns:o=3D"urn:schemas-microsoft-com:office:office" =
xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" =
xmlns=3D"http://www.w3.org/TR/REC-html40"><head><meta name=3DGenerator =
content=3D"Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}
span.Stylwiadomocie-mail17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]--></head><body lang=3DPL =
link=3D"#0563C1" vlink=3D"#954F72" style=3D'word-wrap:break-word'><div =
class=3DWordSection1><p class=3DMsoNormal>Hi, I=E2=80=99m trying to make =
a simple bat file for installing vncwith custom settings, I tried all =
day, but I=E2=80=99m not able to install it via bat <span =
style=3D'font-family:"Segoe UI =
Emoji",sans-serif'>=E2=98=B9</span><br>here=E2=80=99s my =
code:<br><br>@echo off<o:p></o:p></p><p =
class=3DMsoNormal>setlocal<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>rem =
Znajd=C5=BA plik MSI w bie=C5=BC=C4=85cym katalogu, w kt=C3=B3rym jest =
uruchamiany skrypt<o:p></o:p></p><p class=3DMsoNormal>for %%I in =
("%~dp0\*.msi") do (<o:p></o:p></p><p =
class=3DMsoNormal>=C2=A0=C2=A0=C2=A0 set =
"msi_file=3D%%~fI"<o:p></o:p></p><p =
class=3DMsoNormal>=C2=A0=C2=A0=C2=A0 goto :InstallMSI<o:p></o:p></p><p =
class=3DMsoNormal>)<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p class=3DMsoNormal>echo Nie =
znaleziono pliku MSI w bie=C5=BC=C4=85cym katalogu.<o:p></o:p></p><p =
class=3DMsoNormal>goto :EOF<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>:InstallMSI<o:p></o:p></p><p class=3DMsoNormal>msiexec =
/i "%msi_file%" /quiet /norestart /L*V =
"C:\tight\install.log" ADDLOCAL=3DServer =
SERVER_REGISTER_AS_SERVICE=3D1 SERVER_ADD_FIREWALL_EXCEPTION=3D1 =
SERVER_ALLOW_SAS=3D1 SET_RUNCONTROLINTERFACE=3D0 =
SET_USECONTROLAUTHENTICATION=3D1 VALUE_OF_USECONTROLAUTHENTICATION=3D1 =
SET_CONTROLPASSWORD=3D1 VALUE_OF_CONTROLPASSWORD=3Dmypassword =
SET_USEVNCAUTHENTICATION=3D1 VALUE_OF_USEVNCAUTHENTICATION=3D1 =
SET_PASSWORD=3D1 VALUE_OF_PASSWORD=3Dmypassword<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal>endlocal<o:p></o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p><p =
class=3DMsoNormal><o:p> </o:p></p></div></body></html>
------=_NextPart_000_001B_01D9FCF8.44150EE0--
--===============6347620582436638032==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
--===============6347620582436638032==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
___________________________________________________________
TightVNC mailing list, [email protected]
To change your subscription or to UNSUBSCRIBE, please visit
https://lists.sourceforge.net/lists/listinfo/vnc-tight-list
--===============6347620582436638032==--