Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to run a batch file via SDO

Status
Not open for further replies.

ermanu

ISP
May 14, 2001
6
0
0
TR
Hello, I have a problem with Office XP.
I can not register the MSI of the Office XP.
When I try to register it asks me for a key. ANd I didn't find a solution in order to by pass the question.
So I've created an administrative installation point of the office xp on the TNG server.
All I want to do is to run a line like:
"\\TNGserver\office\setup.exe /qb-"
on the client PC via a SDO package.

Thank you
Erman Ulusoy
 
You can define this in an external procedure.
An external procedure means it comes from a location other than the source in your libary.
 
Hi,

I would create a batch file like this:
---

@echo off
net use f: \\TNGserver\office
start /wait f:\path\to\setup.exe /qb-
if %ERRORLEVEL% NEQ 0 echo Installation error (EC %ERRORLEVEL%) > %1

---
Name it to whatever.CMD and put it into the volume of the package you create.
Don't forget to specify $rf as a parameter to the package procedure to allow you to see the error message when the installation fails.
Optionally, parameter $#bg will run the installation on the background under the local system account privilegies so that the user will be unable to interact the installation process.
SDO is also able to handle the EC of the batch file as a job result, I can tell you more about it if you want.

Cheers,

Ondra
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top