Notification

Icon
Error

Deploy - Lounch a .bat file to remote pc

Posted: Wednesday, October 9, 2019 1:25:45 PM(UTC)
Asomich

Asomich

Member Original PosterPosts: 1
0
Like
Hi there,

it's my first post and my English level is quit low. I hope you ca understand me!

So...

I'd like to be able to run a file ".bat" that start on the client the installation of the administrative image of Solidworks 2019. To me it is enough that the .bat file is executed, nothing more. So I created a 2 step package

- Condition: Check if the operating system is Win 10
- Script: Run the ".bat" file in the SERVER path Lansweeper script

This command is in the ".bat" file

echo off
cls
start \\SERVER\it_sw\Solidworks_19_SP2_Immagine_Amm2\startswinstall.exe /now

Probably the syntax is wrong; unfortunately I'm not good with scripts and DOS.

So I wanted to ask you for help on how to solve this

Thanks
Asomich attached the following image(s):
1.JPG
CyberCitizen
#1CyberCitizen Member Posts: 220  
posted: 10/10/2019 2:31:27 AM(UTC)
Does the batch file do anything else apart from calling the install?

I would use something like this. Note this is not testing by myself but just using the command line you specified but using it in an installer package instead of calling a batch file. The issue with batch files is they don't normally report exit codes so we don't exactly know why it failed etc.

Code:
<?xml version="1.0" encoding="utf-8"?>
<Package>
  <Name>DEV.APP.Solidworks 2019</Name>
  <Description></Description>
  <ShutdownOption>0</ShutdownOption>
  <ShutdownTime>0</ShutdownTime>
  <MaxDuration>2700</MaxDuration>
  <Rescan>True</Rescan>
  <RunMode>2</RunMode>
  <Steps>
    <Step>
      <Nr>1</Nr>
      <Name>Check if Windows 10</Name>
      <Type>5</Type>
      <ReturnCodes></ReturnCodes>
      <Success>2</Success>
      <Failure>-3</Failure>
      <Path></Path>
      <Parameters></Parameters>
      <MSIParameters></MSIParameters>
      <MSIName></MSIName>
      <MSIVersion></MSIVersion>
      <Command></Command>
      <EditMode>False</EditMode>
      <Conditions>
        <Condition>
          <Type>4</Type>
          <SpecOne></SpecOne>
          <SpecTwo></SpecTwo>
          <Operator></Operator>
          <Value>Win 10</Value>
        </Condition>
      </Conditions>
    </Step>
    <Step>
      <Nr>2</Nr>
      <Name>Install Solidworks</Name>
      <Type>1</Type>
      <ReturnCodes>0,1641,3010</ReturnCodes>
      <Success>-2</Success>
      <Failure>-3</Failure>
      <Path>\\SERVER\it_sw\Solidworks_19_SP2_Immagine_Amm2\startswinstall.exe</Path>
      <Parameters>/now</Parameters>
      <MSIParameters>/i /qn /norestart</MSIParameters>
      <MSIName></MSIName>
      <MSIVersion></MSIVersion>
      <Command>"\\SERVER\it_sw\Solidworks_19_SP2_Immagine_Amm2\startswinstall.exe" /now </Command>
      <EditMode>False</EditMode>
      <Conditions />
    </Step>
  </Steps>
  <SoftwareVersion>7.0.110.2</SoftwareVersion>
</Package>
Handles attachments
DEV.APP.Solidworks 2019.xml.zip (1kb) downloaded 1 time(s).

Active Discussions

Lansweeper Personalize interface user ticket
by  Brighton   Go to last post Go to first unread
Last post: Today at 9:31:34 PM(UTC)
Lansweeper Update dashboard defaulting to Helpdesk
by  nriddick  
Go to last post Go to first unread
Last post: Today at 9:22:18 PM(UTC)
Lansweeper Exchange Mailbox Usage
by  nhouse24   Go to last post Go to first unread
Last post: Today at 8:26:43 PM(UTC)
Lansweeper Change Management : Creating new Events type
by  Hugo Lynch  
Go to last post Go to first unread
Last post: Today at 8:05:34 PM(UTC)
Lansweeper Linked Tickets - Helpdesk Workflow/Subordinate Tickets
by  Argon0   Go to last post Go to first unread
Last post: Today at 5:22:27 PM(UTC)
Lansweeper SCCM Scanning Failure
by  wanduster  
Go to last post Go to first unread
Last post: Today at 4:18:47 PM(UTC)
Lansweeper Notification ticket in pending after 1 week
by  Vasile Ciuban   Go to last post Go to first unread
Last post: Today at 3:18:04 PM(UTC)
Lansweeper Assistance on Building a Report on Java Installations
by  Rob-CD  
Go to last post Go to first unread
Last post: Today at 10:20:11 AM(UTC)