想要运行 .bat 脚本在不同的机器上安装多个程序

发布于 2025-01-19 04:30:06 字数 663 浏览 4 评论 0原文

大家好,我需要一些帮助,有没有办法创建一个.bat脚本,该脚本可以安装多个应用程序,而不必指定用户。

例如,我有以下内容:

“ c:\ user \ user \ user \ downloads \ setup \ setup \ chromesetup.exe” /s /norestart“ c:\ user \ user \ user \ user \ user \ setup \ setup \ readerdc64_en_en_xa_xa_xa_xa_crd_install.exe” c:\ user \ user \ user \ downloads \ setup \ slackSetup.exe“ /s /norestart” c:\ users \ user \ user \ user \ user \ setup \ temp \ tembeyup \ teamviewer_setup_x64.exe“ /s /s /norestart < /norestart < /norestart < /code < /code>

适用于指定的用户,但适用于指定的用户我有多台机器要在本地运行,这只是一个痛苦,必须重新返回并更改每个安装的用户。有没有办法将此安装给任何用户而无需特别引用用户?

另外,由于我们的其他软件无法用于这些工具,因此我无法使用NINITE或其他程序。

Hey guys I need some help, is there a way to create a .bat script that can install multiple applications with out having to specify the user.

For example I have this:

"C:\Users\User\Downloads\Setup\ChromeSetup.exe" /S /norestart "C:\Users\User\Downloads\Setup\readerdc64_en_xa_crd_install.exe" /S /norestart "C:\Users\User\Downloads\Setup\SlackSetup.exe" /S /norestart "C:\Users\User\Downloads\Setup\TeamViewer_Setup_x64.exe" /S /norestart

Which works for the specified user but I have multiple machines I want to run this on locally and its just kind of a pain to have to go back in and change the user for each install. Is there a way to make this install to any user without having to specifically refer to the user?

Also I cannot use Ninite or other programs due to some of our other software not being available for those tools.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一抹苦笑 2025-01-26 04:30:06

%USERNAME% 环境变量返回当前用户,因此您只需将每个 Users\User 替换为 Users\%USERNAME% 即可。

The %USERNAME% environment variable returns the current user, so you can just replace each Users\User with Users\%USERNAME%.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文