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: 266  
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 2 time(s).

Active Discussions

Lansweeper SSH - Keyboard Interactive Authentication
by  KevinA-REJIS   Go to last post Go to first unread
Last post: Today at 7:44:48 PM(UTC)
Lansweeper Are Deleted Dashboard Tabs Retrievable?
by  Esben.D  
Go to last post Go to first unread
Last post: Today at 4:58:48 PM(UTC)
Lansweeper Missing hyperv host details for guest asset LAN-4130
by  Esben.D   Go to last post Go to first unread
Last post: Today at 4:56:30 PM(UTC)
Lansweeper Dell Warranty Lookup - Incorrect Information
by  Esben.D  
Go to last post Go to first unread
Last post: Today at 4:46:38 PM(UTC)
Lansweeper Initial web loading time
by  Brian Fulmer   Go to last post Go to first unread
Last post: Today at 4:18:54 PM(UTC)
Lansweeper Force SNMP?
by  Andreas  
Go to last post Go to first unread
Last post: Today at 12:30:00 PM(UTC)
Lansweeper Network connections Overview Map
by  CoolDood   Go to last post Go to first unread
Last post: Today at 12:19:21 PM(UTC)
Lansweeper Scanning remote networks
by  Xavi  
Go to last post Go to first unread
Last post: Today at 11:30:16 AM(UTC)