PC Review


Reply
Thread Tools Rating: Thread Rating: 1 votes, 1.00 average.

Changing Property During RemoveExistingProducts Action

 
 
Tom Kufeldt
Guest
Posts: n/a
 
      6th Sep 2003
General Question:
Is it possible to change the value of a property prior to executing the
RemoveExistingProducts action during a major upgrade without using a custom
action?

Specifics
I have authored a basic msi package using ORCA and inadvertently made it a
per-user installation by omitting the ALLUSERS property. I have to change
it to per-machine but need to be able to perform upgrades. My upgrade
testing seems to indicate that since ALLUSERS was set to 1 by the new msi
the RemoveExistingProducts is then executed as per-machine based on the
value in ALLUSERS.

At the conclusion of the upgrade the Windows Installers contains references
to a per-user installation and a per-machine installation. Removing the
application from ARP functions correctly but leaves behind an entry in ARP.
This entry no longer functions yielding a popup that states that remove is
only valid for installed products. I can remove the per-user using msiexec
/i [ProductCode].

I would like to change the value of ALLUSERS to null prior to executing the
RemoveExistingProducts action.

Thanks,
tomk.


 
Reply With Quote
 
 
 
 
Carolyn Napier [MSFT]
Guest
Posts: n/a
 
      18th Sep 2003
Major upgrades can only upgrade of products installed in the same user context.
If the current install is per-user, it can only upgrade over per-user
installations. If the current install is per-machine, it can only upgrade over
per-machine installations. The Installer will log an entry in the case where it
ignores a product to upgrade during the FindRelatedProducts action -- similar to
something like this:

"FindRelatedProducts: current install is per-user. Related install for product
'{9DA1613D-E904-4C7A-8CC2-582D47B81C99}
' is per-machine. Skipping..."

The ALLUSERSness of a product cannot be changed once it is installed. The
ALLUSERS property affects where application data is placed (HKCU vs. HKLM,
user's profile vs. all users's profile).



Hope this helps,
- Carolyn Napier
Microsoft Windows Installer Team

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Please do not send email directly to this alias. This alias is for newsgroup
purposes only.

MSI FAQ:
<http://www.microsoft.com/windows2000/community/centers/management/msi_faq.asp>


"Tom Kufeldt" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> General Question:
> Is it possible to change the value of a property prior to executing the
> RemoveExistingProducts action during a major upgrade without using a custom
> action?
>
> Specifics
> I have authored a basic msi package using ORCA and inadvertently made it a
> per-user installation by omitting the ALLUSERS property. I have to change
> it to per-machine but need to be able to perform upgrades. My upgrade
> testing seems to indicate that since ALLUSERS was set to 1 by the new msi
> the RemoveExistingProducts is then executed as per-machine based on the
> value in ALLUSERS.
>
> At the conclusion of the upgrade the Windows Installers contains references
> to a per-user installation and a per-machine installation. Removing the
> application from ARP functions correctly but leaves behind an entry in ARP.
> This entry no longer functions yielding a popup that states that remove is
> only valid for installed products. I can remove the per-user using msiexec
> /i [ProductCode].
>
> I would like to change the value of ALLUSERS to null prior to executing the
> RemoveExistingProducts action.
>
> Thanks,
> tomk.
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web form button action property missing =?Utf-8?B?Q2hyaXN0b3BoZXIgS2luZw==?= Microsoft Word Document Management 0 20th Oct 2007 06:52 PM
Changing a form field's property based on an action =?Utf-8?B?U3Vl?= Microsoft Access Form Coding 4 13th Aug 2005 04:44 PM
How to assign Action property to the Form Peter Afonin Microsoft ASP .NET 4 14th Sep 2004 06:44 PM
More than one action in a form's 'On Open' property? Mike Webb Microsoft Access Forms 2 23rd Feb 2004 10:53 PM
ComboBox SelectedIndex Property Changes when changing Visible property mike Microsoft VB .NET 1 24th Oct 2003 09:51 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:13 AM.