/build/static/layout/Breadcrumb_cap_w.png

Unable to Substitute Properties

Hi,

I have a problem with an .msi i'm hoping someone can hekp me with.

I have an MSI that I have created a Transform for, without too much trouble, and seems to install and work OK, but my problem is this:

I have some HKCU registry keys, that need to be applied when a user logs in. After messing with Self Healing for a while, I found the best way forward was to use Active Setup.

As i said previously, I install the application with Admin rights, and the install is OK, however when a standard user logs in, I am trying to run the following 'repair' command line:

msiexec /i {1A00F663-6D5E-4AAC-83CD-7D26C23412BB} REINSTALL=CurrentUser MAPS_DB_SERVER="SERVER1" MAPS_DB_UC="DATABASE1" /qb! /l*v c:\log\test.log

This runs successfully, but when I look at the newly created registry keys, the values for MAPS_DB_SERVER and MAPS_DB_UC have not been used. Instead their relevant registry entries just have an empty key, without the values I have specified on the command line.

When I look in my log file, I get the following lines which I think are relevant:


MSI (s) (7C:58) [17:21:46:605]: Running product '{1A00F663-6D5E-4AAC-83CD-7D26C23412BB}' with elevated privileges: Product is assigned.
MSI (s) (7C:58) [17:21:46:605]: Machine policy value 'EnableUserControl' is 0
MSI (s) (7C:58) [17:21:46:605]: PROPERTY CHANGE: Adding RestrictedUserControl property. Its value is '1'.
MSI (s) (7C:58) [17:21:46:605]: PROPERTY CHANGE: Adding REINSTALL property. Its value is 'CurrentUser'.
MSI (s) (7C:58) [17:21:46:605]: Ignoring disallowed property MAPS_DB_SERVER
MSI (s) (7C:58) [17:21:46:605]: Ignoring disallowed property MAPS_DB_UC

The whole point of this is that a standard user has access to the HKCU registry keys, preventing the need for Elevated/Admin rights.

For Info, this is running on SMS 2003, on a XP SP2 Client, Windows Installer v3.1

Any help is grately Appreciated.

0 Comments   [ + ] Show comments

Answers (4)

Posted by: beefy66 16 years ago
Orange Belt
0
Hi,

I have managed to fix this now. It turns out it was a simple as this:

The MAPS_DB_SERVER and MAPS_DB_UC properties had not been declared in the properties table, even thought they were referenced in the Install. Seems so obvious now. I thought seeing as the app was vendor supplied that this would of already been done, its such an obvious thing.

Thanks for your help anyway.
Posted by: anonymous_9363 16 years ago
Red Belt
0
ORIGINAL: beefy66
I thought seeing as the app was vendor supplied that this would [of] have already been done

LOL...you'll learn. Vendors are, as a rule, pretty bad at this stuff. Take nothing for granted and always be ready to fix-up their junk.
Posted by: WayneB 16 years ago
Blue Belt
0
G'Day Beefy66,

Some checks, what happens when you run the command line manually from admin login? Does it populate those keys?
If the keys already exist then the REINSTALL won't replace them. I'm assuming CurrentUser is a feature you've created. Maybe you could put a remove registry entry in your mst so that they are not created until your AS runs.

Regards
Wayne
Posted by: beefy66 16 years ago
Orange Belt
0
Hi,

Thanks for your reply.

If I run the command manually from an Admin account, the registry keys are created properly, and the properties are substituted as they should. All the registry keys are created properly.

CurrentUser is a feature I have created, but in this specific situation I have been making sure these registry keys do not exist before the repair runs, so the information you have provided on the repair doesn't really apply in this situation. Once I have got the basic registry keys to work, I'll be looking at something like you have suggested.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ