Skip to main content
Sep 20, 2024 11:49 AM UTC
Question

silent installations Windchill-Workgroup-Managers

Hello ,

I need to install Windchill-Workgroup-Managers and silent mode , I've tried everything but it doesn't go , someone did this could help me I already put in the script /S, /quiet, /silent, /qn and without success

 

 

 

@echo off
setlocal

rem Path to the .exe files
set “installers=D:\Windchill-Workgroup-Managers”

rem Install the first program
echo Installing Program1...
“%installers%\setup.exe” /silent /D=\C:\Program Files
echo Program1 installed successfully!


rem Add more programs as needed

echo Installation complete.
pause

8 replies

1-Visitor
Sep 20, 2024 12:09 PM UTC
MS_SantosAuthor
Sep 20, 2024 12:56 PM UTC

Yes, but it's giving me an error, I've tried installing it with the local administrator user of the machine, but it's still giving me an error. I need to put it on several machines.

 

@echo off
 
REM Verifica se o script está sendo executado como administrador
openfiles >nul 2>&1 || (
    echo Este script precisa ser executado como administrador.
    pause
    exit /b
)
 
REM Verifica se a pasta C:\PTC existe, se não, cria a pasta
if not exist "C:\PTC" (
    mkdir "C:\PTC"
)
 
REM Definir caminho da nova pasta
set "folderPath1=C:\PTC\WWGM"
REM Criar a pasta WWGM dentro de C:\PTC
if not exist "%folderPath1%" (
    mkdir "%folderPath1%"
    echo Pasta criada: %folderPath1%
) else (
    echo A pasta já existe: %folderPath1%
)
 
REM Definir caminho da nova pasta
set "folderPath2=C:\PTC\WWGM\WFS"
REM Criar a pasta WFS dentro de C:\PTC\WWGM
if not exist "%folderPath2%" (
    mkdir "%folderPath2%"
    echo Pasta criada: %folderPath2%
) else (
    echo A pasta já existe: %folderPath2%
)
 
REM Definir caminho da nova pasta
set "folderPath3=C:\PTC\WWGM\WS"
REM Criar a pasta WS dentro de C:\PTC\WWGM
if not exist "%folderPath3%" (
    mkdir "%folderPath3%"
    echo Pasta criada: %folderPath3%
) else (
    echo A pasta já existe: %folderPath3%
)
 
 
REM Definir a variável de ambiente PTC_WFS_ROOT
setx -m PTC_WFS_ROOT "%folderPath2%"
setx -m PTC_WLD_ROOT "%folderPath3%"
 
echo Variável de ambiente PTC_WFS_ROOT definida com o valor %folderPath2%
echo Variável de ambiente PTC_WLD_ROOT definida com o valor %folderPath3%
 
 
set "folderPath4=%USERPROFILE%\Desktop\MED-60707-CD-130_13-0-2-0_Windchill-Workgroup-Managers"
 
REM executar o instalador precisa estar no Desktop
if not exist "%folderPath4%" (
    echo Coloque a pasta no Desktop e execute novamente
) else (
%folderPath4%\setup -progressbar -xml xml\mcad_swx.p.xml -xml xml\uwgm.p.xml -xml pim\xml\qualityagent.xml PIM_DEBUG=1 PIM_LOG_ENV="%folderPath4%" -destination "C:\Program Files\PTC"
)
 
pause

 

 

1-Visitor
Sep 20, 2024 1:10 PM UTC

My help desk colleagues, who also prepare PCs for users, use a centralized system for installing new or upgrade packages.

 

For those from PTC (CreoView, Creo Platform Services or Windchill Desktop Integration) they use a command like the one below.

 

setup.msi /qn /norestart

 

My guess is that your problem could stem from rights, but you only wrote that it doesn't work with the error message in Portuguese so it becomes difficult to go into more detail.