Error

Deploy - Lounch a .bat file to remote pc

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

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):
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

Active Discussions

Remote desktop custom port

Last post: Today at 10:30:49 PM(UTC)
Unable to transfer user's data prior to removal
Last post: Today at 9:06:14 PM(UTC)
Closing and re-opening of tickets
by  NWHiker

Last post: Today at 3:42:56 PM(UTC)
Wake on Lan Issues
by  woldummy
Last post: Today at 3:42:07 PM(UTC)
Deploy and start Software
by  EDV_OHZ

Last post: Today at 12:49:08 PM(UTC)
Helpdek Call Re-Opened