cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Asomich
Engaged Sweeper
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
1 REPLY 1
CyberCitizen
Honored Sweeper
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.

<?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>