/build/static/layout/Breadcrumb_cap_w.png

What's wrong with this active setup?

Okay.. I have used active setup as described by Ed Tippelt (@ http://www.etlengineering.com/installer/activesetup.txt) a couple of times before. However, i always call upon a VB script to place current user keys etc, that does seem to work OK for me. Now i But, to get Windows installer to perform a self repair when a user logs on, doesn't seem to work for me.. [:(]
I can't seem te get the last part of Ed's manual working using Wise Package studio 5.

Here's what i do:

I want to place 2 files under each users' "docs and settings\application data\Microsoft" folder. So, i went on creating an MSI with:

The two files in:
Windows\profiles\application data\Microsoft

Created a registry key in:
HKLM\software\Microsoft\Active Setup\Installed Components\<guid>\
Key: Stubpath
Value: msiexec /fuavs <guid> /QN

The package DOES place the files in the right folder for the currently logged in user, but not for every user which logs on after that. Did i miss a key, or did i mis understand the manual..? Do i need to add an extra key or something? Windows logs show no activity from Windows installer. Thanks! [:D]

0 Comments   [ + ] Show comments

Answers (11)

Posted by: Mackan75 17 years ago
Orange Belt
0
Hi.
I think you need a "Version = 1.0" along with the stubpath, as a trigger.

/M.N
Posted by: fuz_kitten 17 years ago
Second Degree Blue Belt
0
Value: msiexec /fuavs <guid> /QN

This GUID is the ProductCode of your app right, no necessarily the same as the GUID used in HKLM\software\Microsoft\Active Setup\Installed Components\<guid>.

Fuz
Posted by: neo2000 17 years ago
Purple Belt
0
ORIGINAL: fuz_kitten

Value: msiexec /fuavs <guid> /QN

This GUID is the ProductCode of your app right, no necessarily the same as the GUID used in HKLM\software\Microsoft\Active Setup\Installed Components\<guid>.

Fuz


yes it is, the same code as in the "product code" shown in Wise..

Just found the strangest thing, when the app is installed, and i manually run msiexec /fuavs <productcode> it doesn't repair either.
Feels like i'm completely barking up the wrong tree. [&:]
Posted by: fuz_kitten 17 years ago
Second Degree Blue Belt
0
Its not something like the CU stuff is already in a roaming profile so active setup doesn’t run?

Or

the /qn switch is suppressing the UI so it just looks like nothing is happening?

ermmmmmmmmmm, I’m still thinking!
Posted by: neo2000 17 years ago
Purple Belt
0
Seems like it does work, under some user accounts, and it doesn't under some. (including members of LA group.. :X ) Think i'm gonna compile the files into an exe, and call the exe using active setup, see if that resolves the problem. Thanks all..!
Posted by: nheim 17 years ago
10th Degree Black Belt
0
Hi ne2000,
you missed some important part here:
Where should this files come from, when a standard user logs in, and AS should copy this 2 files to its destination?
Most likely, your standard users do not have access to the MSI source files.
This is best done through the 'DuplicateFiles table'.
Read this post from John McFadyen carefully:
http://itninja.com/question/how-do-you-roll-out-new-machines?4146&mpage=1&key=active%2Csetup幺

Another thing is to be aware that this will only work as a per Computer install. So make sure ALLUSERS is set to 1.
Your msiexec call can't work because it would only work with admin rights!
Value: msiexec /fuavs <guid> /QN
Excerpt from MSDN:
/f [p|o|e|d|c|a|u|m|s|v] Package|ProductCode Repairs a product.
p - Reinstalls only if file is missing.
a - Forces all files to be reinstalled.
u - Rewrites all required user-specific registry entries.
s - Overwrites all existing shortcuts.
v - Runs from source and recaches the local package. Do not use the v reinstall option for the first installation of an application or feature.

A standard user does lack the necessary privileges to do a reinstall with the /f 'a', 's' and 'v' switches.
So far, i all the times used "msiexec /i [ProductCode] REINSTALL=UserSettingsFeature /fup /qn"

Hope this points you on the right track.
Regards, Nick
Posted by: neo2000 16 years ago
Purple Belt
0
Nheim/Nick, you set me on the right track..! With the duplicate files, it does seem to work.

However, i do get another issue.. The package does selfrepair now at logon, however, on pc's where the folder is already present in the user profile, the files don't get added to the exisiting folder.. If a user logs on where the folders aren't present, the self repair runs fine..? I'm going to check if settings rights on the directories for the users helps.
Posted by: nheim 16 years ago
10th Degree Black Belt
0
Hi ne2000,
what kind of files are we talking about here? Be aware, that there are several rules for file replacement.
In general, you should make sure, that each file has its entry in the MSIFileHash table.
See: http://blogs.msdn.com/astebner/archive/2005/08/30/458295.aspx for an in deep explanation of this.
And make sure, that Active Setup is really running on those profiles. To test it, remove the associated AS entry from the HKCU branch of the registry an logon again.
Make sure, logging is running and get the logfile from the profiles temp folder.
Hope this helps.
Regards, Nick
Posted by: fetgor 16 years ago
Senior Purple Belt
0
When I do active setup I always import a Regkey in my msi file:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductCode]]
"Default"=""{[ProductName] [ProductVersion]}""
"StubPath"="msiexec /fup [ProductCode] /qb"

By doing this it´s universal, and the switches (in this case /fup) can be easilly changed)
I have also in some cases trigger some exe files or similar if that have to be done "as the user".

Just a reflection.
Posted by: neo2000 16 years ago
Purple Belt
0
Well, actually, the package is supposed to add a default signature to the users signatures.. So it's going to have to add some HTM files (default company signatures) to c:\documents and settings\username$\application data\microsoft\signatures\
The installation of the msi runs when no user is logged on (so after a reboot), to prevent users from having Outlook running at the time of installation. Probably won't cause a big of a deal even IF outlook is running, but just to be on the safe side.. If the folder already exists (EG, the user has started Outlook for the first time or even when i create an empy folder manually), the windows logs tell me that the configuration completed successfully for that user, but no files are placed in the folder. If the folder doesn't exists the repair runs OK.. [&:]
Checked the security rights, users have full control on the folder, so rights can't be the issue either.. And since i'm using the duplicate file table and i'm placing the files in c:\program files\_user\signatures, they get copied from there so the files are always available for the self repair, even when the MSI is not available.

I'm going to check out the website you mentioned.. Thanks for your help!
Posted by: jmcfadyen 16 years ago
5th Degree Black Belt
0
more often than not people miss the HKCU keypath on the duplicate file component.
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