• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 924
  • Last Modified:

msi creation and deployement over GPO (hide the cancel button)

Hi All
i want to create an msi of let say 7zip and deploy this msi to our compagny over a GPO

deploying the msi over the gpo is fine but i got one concern
when it install the application i want to hide the cancel button .....  i read some where that i can add a controlcondition with orca which i did but it doesn't hide it when i run it

any idea how to acheive this ?

Thanks
0
kerm007
Asked:
kerm007
  • 24
  • 24
1 Solution
 
Vadim RappCommented:
Assign it with "install during logon", then it's installed on logon screen.
0
 
kerm007Author Commented:
no other way to acheive this we want to hide the cancel button but we want to upgrade the version when the application is launch

the first time the application is install by going to the add program menu in the add remove program

Thanks
0
 
Vadim RappCommented:
If you launch installer manually, you can specify /qb; but when it's launched by Windows itself, you can't control the parameters it passes.

You can configure group policy where this is assigned with WMI filter, so it will apply only to the users who already have it installed.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
kerm007Author Commented:
no way to set something in the msi with orca ?

Thanks
0
 
Vadim RappCommented:
As far as I know, "cancel" button is not something that can be is authored in the installation.
0
 
kerm007Author Commented:
Hi I saw on a web site that there is a way to add something on the msi

http://social.msdn.microsoft.com/Forums/en-US/winformssetup/thread/727724b7-a022-418b-9446-208fcbdcf71f

and it seems that even if i run the msi the cancel button is not hidden

Thanks

0
 
Vadim RappCommented:
oh, I see now.

open the package with ORCA.
go to the table "Control"
find the row with Dialog_ = Progress_Dialog and Control = Cancel
change bitmask column Attributes from 3 (2(enabled) + 1(visible) ) to 2.

save.

0
 
kerm007Author Commented:
Ok I'llk try that and let you kinow
Thanks

0
 
kerm007Author Commented:
Hi
the program im trying to modify is 7zip for now

i create a msi but the table control is not there im able to add it but i got some missing feild in the info you provide

Thanks helping !

see the msi i attached
0
 
kerm007Author Commented:
don't forget to remove the txtx extension

Thanks
7z465.msi.txt
0
 
Vadim RappCommented:
This package indeed does not have any dialogs in it. If you just run it by double-click, there's no progress dialog at all. Usually the installations have custom dialogs - Welcome, Progress, and so forth, and that's where you can control their look and their controls.

Note however that such custom dialog only shows up when the user is running it with full UI. If he runs it from command line and specifies switch /qb, for instance, then Installer shows its own progress dialog, which you can't change. This is also the case when you deploy by group policy and specify reduced UI in the package.

By the way, the attempt to uninstall this package crashes Installer 4.5. I see you created it using EMCO product - what's amazing is they managed not only to create this package, but they proudly have put their name on it rather than tried to conceal it, LOL.
0
 
kerm007Author Commented:
i will ytry to re do it with another msi creator .....

and see after

0
 
kerm007Author Commented:
here the msi i create with wininstall le
more table but not control table

7zip-4.39.msi.txt
0
 
Vadim RappCommented:
same thing. If you look in the table Dialogs, you'll find it empty.

Maybe you are doing something wrong when creating it? it's odd that two different vendors would suck in so similar ways.
0
 
Vadim RappCommented:
download the trial of installshield, hopefully those 300MB or so will finally create the freaking dialog, LOL.
0
 
kerm007Author Commented:
the way we create the msi is simple

i run the software let say wininstall le , than i install let say 7 zip and than i re run the wininstall le and than it make a msi from the difference ......

and then we pop the msi in our GPO to make people install the software we want with the setting like the auto update disable.

and we don't want people to be able to cancel de install or even hide the progress bar completelly so thay have no choice but wait ....


Thanks helping



0
 
kerm007Author Commented:
i also found a trial of installaware but can't figure out ou to create the msi and add thoses thing we want

0
 
Vadim RappCommented:
that's understood. The easiest way to achieve this is to assign the package, specify "install during logon", and specify basic interface; then it is installed right on the logon screen.

I also have repackaged many applications for my users, including adobe reader, Access Runtime and others; but each one does require some fine-tuning, and usually quite significant. If you are so brave to push on the users the immediate result of the repackaging, I imagine, you must be quite busy with them after that.
0
 
kerm007Author Commented:
my user complain already for booting time of there laptop even if i found my self that it's very accepatable they are baby ..... imagine if i have 4 or more software to update at the boot time they will kill my self :-)

anuy other idea ?

Thanks
0
 
Vadim RappCommented:
there's a difference. If they wait with the same static thing on the screen, they think it's slow, maybe frozen, so it generates frustration. But if they see some changing progress messages, then they know something is in progress, supposedly for their own good, so then it generates respect. You can give them even more entertainment by setting "verbose vs normal status messages" under adm templates/system.
0
 
Vadim RappCommented:
...as for booting time, apply bootvis, gives quite noticeable retult.
0
 
kerm007Author Commented:
ok but what about if they just starting there pc or laptop for checking quite fast there email and they are stuck with the update ..... ?

Thanks

0
 
Vadim RappCommented:
but it's only once, isn't it?
0
 
kerm007Author Commented:
only once what ?
0
 
Vadim RappCommented:
install the particular package.
0
 
kerm007Author Commented:
yes but it depend if i have more than one softawre at the time

cause im doing alot more than deploying stuff im gona check every 3 months for news softawre and create the msi for it

Thanks
0
 
Vadim RappCommented:
If once in 3 months they have to wait an extra minute on the logon screen, may it be the biggest problem they are facing.
0
 
kerm007Author Commented:
we but in my project my boss don't want this avenue ... he prefer that when they launch the software like 7zip the program will update itself but the only thing is i want to hide the  cancel button on the first screen ....

is there a way to add the table maybe ?

Thanks
0
 
Vadim RappCommented:
You have to add the whole dialog, and also the script that will invoke it before the action ExecuteAction.

Or, you can probably do this. Those msi's that you have uploaded, they don't have any dialogs, so if they are run in full UI mode, there's no progress dialog at all, until it's finished. No dialog = no cancel button, though I'd say it's ugly solution. Just specify Full UI in the deployment package in group policy.
0
 
kerm007Author Commented:
Hi again
some more infos maybe you can help
we are using wininstall le and gpo to deploy the msi

we found what we want to do but i jhave one issue i can creat the first msi let say filezilla 3.2.0
and install it no issue but i did another msi to upgrade the version 3.2.0 to 3.2.3.1
which work almost good but the issue i have is in the add remove programm there is 2 entry of filezilla one for the 3.2.0 and one for 3.2.3.1  which we don't want to have

is there a way to have a clean add remove program ?
Thanks
0
 
Vadim RappCommented:
These two versions - do they show up in "add new programs" as available, or in add/remove programs as already installed?
0
 
kerm007Author Commented:
add/remove programs

when i create the gpo i upgrade the version 3.2.0 with version 3.2.3.1

it work well but it seems taht the version in add/remove programs   are still there
i i do a manual uninstall of the version 3.2.0 both versiom is uninstalled

Thanks
0
 
Vadim RappCommented:
When you upgraded, have you changed the product code?
0
 
Vadim RappCommented:
> have you changed the product code?

meaning in the installation package, when you increased the version. Also, have you speciffied upgrade information in the new version?
0
 
kerm007Author Commented:
what i have change is the upgrade code is matching the upgrade code for the version 3.2.3.1 is the same as the 3.2.0

0
 
Vadim RappCommented:
Upgrade code must be the same, but product code must be different.

That both versions remain in add/remove programs means that the 2nd version did not remove the first version. Note that such removal of the previous version is not automatic, it has to be specified in the newer installation - Upgrade table should have the line for the upgrade code, and minimal and maximum versions this new package should upgrade. The script accordingly must have RemoveExistingProducts action.

By the way, here's some additional information about the original problem of suppressing Cancel button.

It can be suppressed in basic interface when running Installer from command line by specifying exclamation mark in /qb! switch. But apparently, GPMC does not support this, i.e. when deploying by GPO, it's not possible. The only way is to deploy the package with full UI, and to create your own Progress Dialog without Cancel button. It's actually not that hard.
0
 
kerm007Author Commented:
can you give me more info about the upgrade etc... im new to msi and gpo but i need to be able to make this work

Thanks
0
 
Vadim RappCommented:
Actually, I already gave the key facts, in the previous comment. You can see http://msdn.microsoft.com/en-us/library/aa372379(VS.85).aspx for more details, also if you search internet for something like installer major upgrade, you will find many articles.

That said, I have an impression that the initial question has been answered.
0
 
kerm007Author Commented:
hi
where do i set this :
and minimal and maximum versions this new package should upgrade. The script accordingly must have RemoveExistingProducts action.
thanks
0
 
Vadim RappCommented:
minimal and maximum versions - in the Upgrade table. The action - in the immediate script, but most likely it's already there.
0
 
kerm007Author Commented:
ok i found where got another quick one
in the upgrade tables there a line called ActonProperty
what kind of value i need to put there ?

Thanks
0
 
Vadim RappCommented:
Any uppercase string, for example UPGRADE_1.
0
 
Vadim RappCommented:
...also note this:

"The property specified in this column must be a public property and the package author must add the property to the SecureCustomProperties property. "
i.e. there must be another property called SecureCustomProperties with value like INSTALLDIR;UPGRADE_1
0
 
kerm007Author Commented:
is this need to be different for each ?

do you have any documentation on this ?

Thanks
0
 
Vadim RappCommented:
> is this need to be different for each ?

one line is enough for each upgradecode. If this is one and the same application that always had the same upgradecode, then put one line with the very first version as minimal, and current version as maximum; specify "not including maximum".

> do you have any documentation on this ?
http:Q_24151710.html#24164894
0
 
kerm007Author Commented:
i dont understand this line Attributes :-(
0
 
Vadim RappCommented:
Pick the items you want "yes" from the left column, sum up their numeric values from the right column, this will give the result to put into the column. 261, for example.
0
 
kerm007Author Commented:
i try to make some test and the product is not uninstall when i upgarde i think i will leave the orca and wininstall le ....

and try to test installaware

maybe more success

i will give you point anyway
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 24
  • 24
Tackle projects and never again get stuck behind a technical roadblock.
Join Now