Patching with Least-Privileged User Accounts - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

mpdv
Posts: 17
Joined: Mon Feb 05, 2007 6:39 pm

Patching with Least-Privileged User Accounts

Hi,

the Microsoft MSI Documentation says:

Starting with Windows Installer 3.0, application patches can be applied by least privileged users when certain conditions are met. These conditions are:
[...]
The application is installed from removable media, such a CD-ROM or digital video disc (DVD).
[...]

That's ok, because we shipped your products on a CD - but on the CD is only the bootstrapper which extract the content (msi, cab) to a temp folder on the machine and starts the msi from this directory.
..does Least-Privileged UA Patching now works or not? :-)


Another question:
If I create a patch with Advanced Installer I can set a "Media Property Name". Is it possible to access this property from a patch-dialog in the original msi package?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
..does Least-Privileged UA Patching now works or not?
You need to have the "Enable least-privileges use account patching" option enable in the "Digital Signature" page for the MSI.
If I create a patch with Advanced Installer I can set a "Media Property Name". Is it possible to access this property from a patch-dialog in the original msi package?
I'm afraid I don't understand what you mean, please give me more details.

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mpdv
Posts: 17
Joined: Mon Feb 05, 2007 6:39 pm

I can set a "Media Property Name" for a patch (see patch creation in AI).

...what can I do with this property? :)
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

"Media Property Name" is a unique Windows Installer property name that gets set with the value you have entered when the patch is applied. This is useful for conditioning Custom Actions on patch install.

For more details please see:
http://msdn2.microsoft.com/en-us/library/aa369215.aspx

Best Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Last edited by gigi on Fri Jun 22, 2007 11:55 am, edited 1 time in total.
mpdv
Posts: 17
Joined: Mon Feb 05, 2007 6:39 pm

Is it possible to write in this field "Service Pack 3" and display this string in a PatchDialog (for example as headline or "Now you are installing Service Pack 3"...)
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

That field represents the name of a property not a value. When the patch is applied this property is written in the "Source" column of "Media" table to indicate the location of the cabinet file containing the patch files.

The dialogs displayed with the patch is located under "Dialogs" page, "Patch" section. You can add that text on the patch dialog.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mpdv
Posts: 17
Joined: Mon Feb 05, 2007 6:39 pm

hmm okay, but in the patch dialogs I can write only a static string which is the same for all patches.

If I write "Service Pack 3" in a Patch Dialog, all patches shows a dialog "Now installing service pack 3" :?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

In the upgrade project define a property in the "Install Parameters" page like this: MY_PROP.

Now switch to "Dialogs" page and under "Patch" section add a static text like this: "Text [MY_PROP]". The value of "MY_PROP" can be changed with each upgrade.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
mpdv
Posts: 17
Joined: Mon Feb 05, 2007 6:39 pm

I have trying this by the following steps:

* creating a msi package:
- with MY_PROP property (value ="SP0")
- with static text "Service-Pack: [MY_PROP]"

* creating a upgraded msi package:
- rewrite the MY_PROP property to value = "SP1"

* now I have created a patch between these two packages

If I apply this patch to the target msi package, the patch dialog shows a "Service-Pack: SP0", not SP1...
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Hi,

I could not reproduce this issue. Please send the AIP files for both the Target and Upgraded MSI packages or a simplified test case that reproduces the problem to support at advancedinstaller dot com.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”