Active Setup on a 3.5gb app
Hi,
Im re-packaging ArcGIS 9.2 and need to add some HKCU keys and files in the local userprofile. I have created an active setup and it all works fine apart from it takes around 14 mins for a user to login while the repair is running!!!!
I assume it takes so long as the app is doing a full repair using the 3.5gb source. I have set msiexec.exe on the stub command with a /fup switch and I have put the configuration updates in a new feature and component but still get the same results.
Can i tell the MSI just to repair the specific feature or is there any other way to reduce the time it takes to repair via active setup? I have had a scour around the message boards and although there is a lot re Active Setup, cannot find anything re a resolution to my problem.
TIA.
JK
Im re-packaging ArcGIS 9.2 and need to add some HKCU keys and files in the local userprofile. I have created an active setup and it all works fine apart from it takes around 14 mins for a user to login while the repair is running!!!!
I assume it takes so long as the app is doing a full repair using the 3.5gb source. I have set msiexec.exe on the stub command with a /fup switch and I have put the configuration updates in a new feature and component but still get the same results.
Can i tell the MSI just to repair the specific feature or is there any other way to reduce the time it takes to repair via active setup? I have had a scour around the message boards and although there is a lot re Active Setup, cannot find anything re a resolution to my problem.
TIA.
JK
0 Comments
[ + ] Show comments
Answers (18)
Please log in to answer
Posted by:
timmsie
13 years ago
you need to have a look at your feature structure and create a current user key feature at the top of the tree. This way it's only that small feature that will be repaired and not the child features.
there's a good description of this here
http://johnmcfadyen.spaces.live.com/blog/cns!9DD01136FC094724!123.entry
there's a good description of this here
http://johnmcfadyen.spaces.live.com/blog/cns!9DD01136FC094724!123.entry
Posted by:
jk01
13 years ago
Posted by:
cygan
13 years ago
Posted by:
jk01
13 years ago
The feature tree was displayed as :
Feature 1 - Parent
Feature 2 - Parent
Feature 3 - Parent
Feature 4 - Parent
HKCU - Parent
It is now configured as :
HKCU - Parent
Feature 1 - Child
Feature 2 - Child
Feature 3 - Child
Feature 4 - Child
I still get the same issue in that after i have installed the app on a fresh VM, and login as a new user, it takes 14 mins to login due to the active setup.
Any more ideas?
Feature 1 - Parent
Feature 2 - Parent
Feature 3 - Parent
Feature 4 - Parent
HKCU - Parent
It is now configured as :
HKCU - Parent
Feature 1 - Child
Feature 2 - Child
Feature 3 - Child
Feature 4 - Child
I still get the same issue in that after i have installed the app on a fresh VM, and login as a new user, it takes 14 mins to login due to the active setup.
Any more ideas?
Posted by:
mekaywe
13 years ago
Posted by:
kardock
13 years ago
Posted by:
cygan
13 years ago
Posted by:
pjgeutjens
13 years ago
...and login as a new user, it takes 14 mins to login due to the active setup.
Unfortunately I'm pretty sure a trigger in an active setup (msiexec /fu...) does not take feature structure into account during the repair. For this you need the trigger to be an advertised entry point (shortcut, AppId, etc..) that has an actual link to a certain feature, so there's a starting position for 'climbing' the feature tree.
If it's just for HKCU keys, and you have no option of an advertised shortcut, maybe running a script in Active Setup to put your keys in place would be a better option.
EDIT: just read you're also looking to copy files, but even in this case, considering the size of the application, a script might be the better way to go.
Rgds,
PJ
Posted by:
kardock
13 years ago
Posted by:
jk01
13 years ago
ORIGINAL: cygan
I still get the same issue in that after i have installed the app on a fresh VM, and login as a new user, it takes 14 mins to login due to the active setup.
do you have an advertised entry point ie a shortcut then you don't need to use active setup
I have several entry points as the package is a suite of 5 or 6 applications. I think i'll script the HKCU and file entries and add the script to the StubPath.
Posted by:
jk01
13 years ago
Posted by:
timmsie
13 years ago
Posted by:
kardock
13 years ago
Posted by:
jk01
13 years ago
ORIGINAL: timmsie
you could replace the shortcuts with launcher scripts that populate the current user keys, then launch the app.
you can add all the logic you need then, weather they already have the keys etc
Good idea but would not work in my environment. All shortcuts are removed via GPO and app entry points are assigned via AD grp at user level.
Posted by:
timmsie
13 years ago
Posted by:
itolutions
13 years ago
Posted by:
nheim
13 years ago
Hi JK,
the solution, which was introduced by John McFadyen, doesn't work well on big MSI's.
The problem is, that there are thousand of components, which will be checked, when HKCU-feature is installed via AS (you can reduce the number of components, if you only use one component per directory).
We circumvent this problem with a small second MSI, which only contain the components (we just copy the components one to one over to the second MSI) which install the user stuff and one small feature to install the registry keys to set the HKLM-part of AS.
Then the two of them are installed with the deployment system.
Hope, this gives you some ideas.
Regards, Nick
the solution, which was introduced by John McFadyen, doesn't work well on big MSI's.
The problem is, that there are thousand of components, which will be checked, when HKCU-feature is installed via AS (you can reduce the number of components, if you only use one component per directory).
We circumvent this problem with a small second MSI, which only contain the components (we just copy the components one to one over to the second MSI) which install the user stuff and one small feature to install the registry keys to set the HKLM-part of AS.
Then the two of them are installed with the deployment system.
Hope, this gives you some ideas.
Regards, Nick
Posted by:
anonymous_9363
13 years ago
you need to enumerate all users and load each user.dat file from those profiles.That's the amateur route, but paradoxically horrendously complicated. To script properly would involve pages and pages of code (since you'd need to include lots of error-trapping). Active Setup is the way to populate current user hives.
in these, default user will make sure that future users will also have the reg keys.How many times? The default user profile is used ONLY when creating new, local users. Network users do NOT get copies of ths profile's entries.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.