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!

Two Programs in One Package = Problem?

Status
Not open for further replies.

nastri83

IS-IT--Management
Jun 13, 2006
25
US
Anyone know why my programs fail when there are more than one program in a package? I tried issuing the same program with the same settings in its own unique package and it worked fine. Is this a setting/requirement within SMS 2003? Just wondering as I am still relatively new to this.

Thanks
Matt Nastri
 
can you give us more details about the package/advertisment details.

Hope this Helps.

Neil J Cotton
njc Information Systems
Systems Consultant
 
Shouldnt be an issue, although you have to make it one package (EXE or MSI) that wraps the two different programs , and won't exit/reboot until its done.

If it needs to reboot before you run the second part you would write to the runonce reg key to finish it off.



 
It shouldn't be a problem, unless the programs being executed are located in different paths that is not covered by the package source directory. Hopefully my examples help. If not, you may want to post what settings you are using to help us identify what is wrong.

Eg. 1:

Package source directory is: \\server1\share1\program1
Program 1 file location is: \\server1\share1\program1\test.exe
Program 2 file location is: \\server1\share1\program2\test2.exe

In this example, Program 2 should fail because the test2.exe file is located in a different location than defined in the Package Source Directory.

Eg.2:

Package source directory is: \\server1\share1
Program 1 file location is: \\server1\share1\program1\test.exe
Program 2 file location is: \\server1\share1\program2\test2.exe

In this example, the Package Source Directory is located at a higher level so when you are trying to execute test.exe or test2.exe, the command path also specifies the folder location as Program1\test.exe and Program2\test2.exe.
 
What is the best way to distribute multiple .exe's? Should I be making a package with multiple programs? or should I be making an .msi with multiple .exe's in it? I'm trying to advertise about 40 updates for Win2000 SP4.
 
I figured out my problem. I had seen the switches for one update, and figured they were universal. However some have the /passive and some have -u, /norestart as opposed to -z, etc. That's why my programs were failing with a 1603 error code. Is there a logical reason that they all don't have the same switches? Just out of curiosity. Now I know to use /? to test everything out first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top