Re: Package bundling guidance
- From: tzhilaire <tzhilaire@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 19 Apr 2007 06:10:26 -0700
Hi Kim,
This seems very interesting; I will run a sery of tests to see how well this
scrip performs under my environment.
Cheers, Hilaire
"Kim Oppalfens [MVP]" wrote:
http://www.myitforum.com/articles/8/view.asp?id=8857.
--
"Everyone is an expert at something"
Kim Oppalfens - Sms Expert for lack of any other expertise
Windows Server System MVP - SMS
"Matthew Hudson" <MatthewHudson@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:6073D83B-8BB5-4E0C-B31B-A1A5E1839D0B@xxxxxxxxxxxxxxxx
Since you are doing all your work in the Batch file you want it to always
exit with a successfull exit code so you can go on... When you exit do
this
rem set exit as successful
SET ERRORLEV=0
if you find a problem you can set it to
SET ERRORLEV=1 <-- exit with err
if that doesn't work you can try
exit /b [errlvl]
exit /b 0 <-- this mean /b batch file running, 0 is the exit
sucessfully
code
Chain Programs together
In your package "My Package" say you have 3 programs listed.
Program1, Program2, Program 3
To help you remember what is going to run first to last change comment to
1
for the first 2 for the next, and so forth
-sort by Comment
This will put them in order:
Click on 3, Advanced
check "Run another program First"
Select package, choose "My package", Under program select Program2
Click on 2, Advanced
check "Run another program First"
Select package, choose "My package", Under program select Program1
When you create your advertisement choose Program3 to run.
What does this do?
At run time SMS will launch program3. It will see that program2 must run
first so it will go to Program2. Program2 will tell it that Program1 must
run First. It will get to Program1 and see there are no more "run another
program first" It will then do program1, then program2, then program3.
Does this help?
"tzhilaire" wrote:
Thank you Matthew for your reply.
To answer your first question; I run a batch file as follow:
@ECHO
IF NOT EXIST "C:\Program
Files\interwise\participant\Imagemaker\imgcl7mn.dll" GOTO NEXT
DEL "C:\Program Files\interwise\participant\Imagemaker\imgcl7mn.dll" /F
:NEXT
IF NOT EXIST "C:\Program Files\interwise\participant\iwuninst.exe" GOTO
END
"C:\Program Files\interwise\participant\iwuninst.exe" /S -n
:END
:QUIT MENU
This batch file looks for a particular directory and when it finds it, it
removes it but it does not find the directory or the file, it produces an
error, so a fresh installation cannot go on. Thus the error.
. As far as the second question is concerned, after creating the programs
I
need for the package, How do I chain all of them when I have more than 2
of
them.
. I also ran the VB script and I cannot seem to customize it to address
my
needs. Any more help on that?
Thank you so much for your time and input.
regards, Hilaire
"Matthew Hudson" wrote:
1. How are you checking to see if the previous version was install, if
so
remove. Are you doing it through a batch, vbscript or something else.
2. to run all the programs through 1 adv simple create all the programs
in
the package and then start with the last one, go to advanced and select
"Run
this program first" and chain them all together. Then create that adv
that
would run "Outlook addin" Well it will check up the chain to see what
should
run before what and it will install in order from the 1 adv?
if you want to uninstall the previous version and if it is not there to
keep
going you can do this in VB, this is for adobe but same purpose..
---------
Dim objShell, RegLocate
Set objShell = WScript.CreateObject("WScript.Shell")
On error resume next
Dim sngVersion
'''' Adobe Readers
sngVersion = objShell.RegRead ("HKLM\SOFTWARE\Adobe\Acrobat
Reader\7.0\Installer\ENU_GUID")
if NOT sngVersion="" then
objShell.run("msiexec /x " & sngVersion & " /qb /norestart"), 0,
True
WScript.Quit
end if
-----------
if is there it will uninstall and quit, if no then just quiet. You
still
exit with a 0 (completed response) and then move.
Does this help at all?
"tzhilaire" wrote:
I have a situathion where we need to upgrade Interwise from V6.52 to
V7.0.23
through SMS 2003. We have one primary site and 8 distribution servers
throughout the world.
We need to launch a package through SMS which should do the
followings:
1. Remove the previous version if there is one ( Interwise
Participant)
2. Install the new version
3. Also install an Outlook Addin which should allow users to access
and
invite through the Outlook interface.
So far here are the results of what I've done so far:
1. I've created a combo package that knows to remove the previous
version of
Interwise (When there is one) and Install the latest one.
2. But, when there is no previous version, then the latest version of
Interwise won't install and I have exhausted my rope.
3. I also would like to know how to bundle three programs in one
package
which will do the followings:
-> Run the Uninstall package ( In whatever form)
-> Install the newest version of Interwise
-> Run also the Outlook Addin program
All these should run under one package, one advertisement.
Could anyone provide some guidance on how to proceed?
Thank you so much for your assistance.
- Follow-Ups:
- Re: Package bundling guidance
- From: Kim Oppalfens[MVP]
- Re: Package bundling guidance
- Prev by Date: RE: Package bundling guidance
- Next by Date: Re: Package bundling guidance
- Previous by thread: RE: Package bundling guidance
- Next by thread: Re: Package bundling guidance
- Index(es):
Relevant Pages
|
Loading