OakFND Absent Member.
Absent Member.
2115 views

Zen11.1 Bundle How to test a soft version before installing

Hi There,

I was wondering how we could use the sytem requirements when we want to check what software version it is installed before installing a new version or not installing because the version is alright.

Example: I have a MSI bundle that install Flash Plugin for Firefox and I get Fatal error while installing as log in ZCC. When I check why it is because a version of it is already installed. The problem is that I want it updated and not just ignored and getting an error.

the second question would be how to uninstall the installed version and re-installed or simply upgrade the already installed software. Shall I make a bundle to uninstall an MSI under the Uninstall action in the bundle to uninstall if exist and then run another bundle to install the new version?

I am quite new in ZCM so many questions.
Thank you in advance to lighten me.
OAKFND
Labels (2)
Tags (3)
0 Likes
7 Replies
Micro Focus Expert
Micro Focus Expert

Re: Zen11.1 Bundle How to test a soft version before installing

One Example.................

Create a System Requirement on the Main bundle for the current version
of Flash to not be installed. (Various Methods Exist.)

Then Create 2 Different Actions.

The 1st Action Calls the Uninstall For Flash.
Use a System Requirement on this Action so it only runs if an Old
Version is Installed.

The 2nd Action Installs the current Version of Flash.


Additional Actions May be desired such as one that alerts users that
Flash will be updated and another that then closes FireFox to allow the
install to complete.



On 10/5/2012 5:46 AM, OakFND wrote:
>
> Hi There,
>
> I was wondering how we could use the sytem requirements when we want to
> check what software version it is installed before installing a new
> version or not installing because the version is alright.
>
> Example: I have a MSI bundle that install Flash Plugin for Firefox and
> I get Fatal error while installing as log in ZCC. When I check why it is
> because a version of it is already installed. The problem is that I want
> it updated and not just ignored and getting an error.
>
> the second question would be how to uninstall the installed version and
> re-installed or simply upgrade the already installed software. Shall I
> make a bundle to uninstall an MSI under the Uninstall action in the
> bundle to uninstall if exist and then run another bundle to install the
> new version?
>
> I am quite new in ZCM so many questions.
> Thank you in advance to lighten me.
> OAKFND
>
>



--
Craig Wilson - MCNE, MCSE, CCNA
Novell Knowledge Partner

Novell does not officially monitor these forums.

Suggestions/Opinions/Statements made by me are solely my own.
These thoughts may not be shared by either Novell or any rational human.
0 Likes
OakFND Absent Member.
Absent Member.

Re: Zen11.1 Bundle How to test a soft version before install

Hi Craig,

Thank you very much for your prompt reply. I still have some questions though.

When you say:

Create a System Requirement on the Main bundle for the current version
of Flash to not be installed. (Various Methods Exist.)


Can you please tell me more about it? Test the exe file version or registry? What work the best(reliability)

The 1st Action Calls the Uninstall For Flash.
Use a System Requirement on this Action so it only runs if an Old
Version is Installed.


Concretely how do you do that? How do you uninstall the MSI? Is there any best practice about it that I can read? The only thing I know how is to install MSI but I don't know how to uninstall one and how to test a software version. Can you please help?

Thank you very much in advance,
OAKFND
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Zen11.1 Bundle How to test a soft version before installing

Those were just General Tips, for Flash Specifically I'm not sure the
best way.

Each piece of software is often a little unique to some degree.
The tips were for guidelines.

When trying to figure the fine level details for a given app I suggest

#1 - Looking at the Vendors Site - They often have deployment Details.
(I know Adobe definitely has deployment customization tools and tips for
most of their products that can be integrated into ZCM or any other
deployment product.)
#2 - Looking at http://www.itninja.com/, which has deployment
details/suggestions about a very large array of apps.

Often the Tips and suggestions are not tweaked specificalyl for ZCM, but
they will tell you what needs to be done. Then if you have a hard time
doing that in ZCM, let us know and we can help.


On 10/8/2012 10:26 AM, OakFND wrote:
>
> Hi Craig,
>
> Thank you very much for your prompt reply. I still have some questions
> though.
>
> When you say:
>
> -Create a System Requirement on the Main bundle for the current
> version
> of Flash to not be installed. (Various Methods Exist.)-
>
> CAN YOU PLEASE TELL ME MORE ABOUT IT? TEST THE EXE FILE VERSION OR
> REGISTRY? WHAT WORK THE BEST(RELIABILITY)
>
> -The 1st Action Calls the Uninstall For Flash.
> Use a System Requirement on this Action so it only runs if an Old
> Version is Installed.-
>
> CONCRETELY HOW DO YOU DO THAT? HOW DO YOU UNINSTALL THE MSI? IS THERE
> ANY BEST PRACTICE ABOUT IT THAT I CAN READ? THE ONLY THING I KNOW HOW IS
> TO INSTALL MSI BUT I DON'T KNOW HOW TO UNINSTALL ONE AND HOW TO TEST A
> SOFTWARE VERSION. CAN YOU PLEASE HELP?
>
> Thank you very much in advance,
> OAKFND
>
>



--
Craig Wilson - MCNE, MCSE, CCNA
Novell Knowledge Partner

Novell does not officially monitor these forums.

Suggestions/Opinions/Statements made by me are solely my own.
These thoughts may not be shared by either Novell or any rational human.
0 Likes
leonkrown Absent Member.
Absent Member.

Re: Zen11.1 Bundle How to test a soft version before install

Hi,

I've been trying to figure out the best way to address this for some time now as well. Mainly for programs that are currently installed on devices where a bundle was not yet available.

I'm not saying this is the best option, but for me, one method I've found that seems to work 90% of the time is by using WMIC.
(Note: WMIC seems to only work well if programs currently installed are found in the uninstall table in the registry.) There are various other gotchas, but you can google them.

As an example for Adobe Flash for IE, I create an uninstaller bundle that does the following:

Install action: Launch Exe

General
Command - %windir%\system32\wbem\wmic.exe
Command Line Parameters - product where "name like 'adobe flash %activex%'" call uninstall /nointeractive
Success Return Codes: 0

Advanced
When action is complete
Run as secure system user (Don't allow system to interact with desktop)


Then I have a bundle for installing Adobe Flash Player. This bundle always puts out the latest version and always removes the previous version. I've since stopped using vbscripts to do similar tasks (unless the application is not found in the registry).

Install action:

Launch Flash Uninstaller Bundle
Install Flash MSI
Install config file (mms.cfg)

You can throw requirements in where need be.

I use WMIC for just about anything. Go to a command prompt and type in WMIC, hit enter. Then type in product get name, hit enter. After a few seconds it will spit back a list of programs installed on your machine. The names listed there can be used to put in the command line parameters area of the uninstall bundle as seen above ...'adobe flash %activex%'...

Try some tests locally before trying in a bundle.

Hope that helps some.
0 Likes
Micro Focus Expert
Micro Focus Expert

Re: Zen11.1 Bundle How to test a soft version before installing

I recommend putting sending something to Cool Solutions.
Very Nice Tip.


On 10/8/2012 11:16 AM, leonkrown wrote:
> I've been trying to figure out the best way to address this for some
> time now as well. Mainly for programs that are currently installed on
> devices where a bundle was not yet available.
>
> I'm not saying this is the best option, but for me, one method I've
> found that seems to work 90% of the time is by using WMIC.
> (Note: WMIC seems to only work well if programs currently installed are
> found in the uninstall table in the registry.) There are various other
> gotchas, but you can google them.
>
> As an example for Adobe Flash for IE, I create an uninstaller bundle
> that does the following:
>
> Install action: Launch Exe
>
> _General_
> Command - %windir%\system32\wbem\wmic.exe
> Command Line Parameters - product where "name like 'adobe flash
> %activex%'" call uninstall /nointeractive
> Success Return Codes: 0
>
> _Advanced_
> When action is complete
> Run as secure system user (Don't allow system to interact with desktop)



--
Craig Wilson - MCNE, MCSE, CCNA
Novell Knowledge Partner

Novell does not officially monitor these forums.

Suggestions/Opinions/Statements made by me are solely my own.
These thoughts may not be shared by either Novell or any rational human.
0 Likes
Highlighted
Knowledge Partner
Knowledge Partner

Re: Zen11.1 Bundle How to test a soft version before install

leonkrown;2222739 wrote:
Hi,

I've been trying to figure out the best way to address this for some time now as well. Mainly for programs that are currently installed on devices where a bundle was not yet available.

I'm not saying this is the best option, but for me, one method I've found that seems to work 90% of the time is by using WMIC.
(Note: WMIC seems to only work well if programs currently installed are found in the uninstall table in the registry.) There are various other gotchas, but you can google them.

As an example for Adobe Flash for IE, I create an uninstaller bundle that does the following:

Install action: Launch Exe

General
Command - %windir%\system32\wbem\wmic.exe
Command Line Parameters - product where "name like 'adobe flash %activex%'" call uninstall /nointeractive
Success Return Codes: 0

Advanced
When action is complete
Run as secure system user (Don't allow system to interact with desktop)


Then I have a bundle for installing Adobe Flash Player. This bundle always puts out the latest version and always removes the previous version. I've since stopped using vbscripts to do similar tasks (unless the application is not found in the registry).

Install action:

Launch Flash Uninstaller Bundle
Install Flash MSI
Install config file (mms.cfg)

You can throw requirements in where need be.

I use WMIC for just about anything. Go to a command prompt and type in WMIC, hit enter. Then type in product get name, hit enter. After a few seconds it will spit back a list of programs installed on your machine. The names listed there can be used to put in the command line parameters area of the uninstall bundle as seen above ...'adobe flash %activex%'...

Try some tests locally before trying in a bundle.

Hope that helps some.


I usually test for registry keys, but Flash is a bit problematic as it depends on whether it was a new install, an upgrade, a update/patch, etc. For Flash, I usually test for the file presence and version (ie, if the .ocx file isn't there, Flash isn't gonna work at all).

However, with Flash 11.x.something, Adobe made it so that the mms.cfg isn't really adhered to anymore if you deploy the .MSI. It will install a scheduled task that runs the auto-updater every stinking hour. No matter what you do with the mms.cfg (again only if you use .MSI to install)

If you use .exe to install Flash, then you need to use mms.cfg with an extra setting in it (previously you only need one entry in there, now you need two) if you want it to stop doing that.

In my case, I got fancy with Flash and did everything in one bundle (for both IE and Firefox) with uninstalls--mostly with the individual action system requirements.

I do like that nifty feature in ZCM.
0 Likes
OakFND Absent Member.
Absent Member.

Re: Zen11.1 Bundle How to test a soft version before install

Thank you guys for all your tips. I will have a look at it and come back if I have any questions.
OAKFND
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.