Help with understanding Active Setup and admin accounts
I am trying to apply a transform to IBM Cognos Go! Office 8.4 that adds a feature with our company customizations (active setup reg key and an xml file).
Cognos Go! Office is a Office 2003 or better addin so there are not any entry points to kick off a repair so I am trying an active setup using the following registry information:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{[ProductCode]}]
"Locale"="EN"
"DontAsk"=dword:00000002
"ComponentID"="[ProductName]"
"IsInstalled"=dword:00000001
"StubPath"="[SystemFolder]msiexec.exe /fau {[ProductCode]} /qn"
"Version"="1,0,0"
@="[ProductName]"
I was hoping to use this to kick off the repair to copy a "FrameworkSettings.xml" file to each user that logs in to the following location:[LocalAppDataFolder]Cognos\Office Connection
This works very well if I run the transform as myself (who is an admin) and it will copy the file to regular user accounts (non-admin) but the problem I have is when the application is pushed via SCCM and it runs with the system account for SCCM (admin) and another admin user logs on the file does not copy over. I was reading over some of the other posts suggesting a current user regkey set as a key file and I tried that but I must be doing something wrong as it does not work. I am trying to avoid a custom action if possible.
Also using AdminStudio 9.5.
Any help would be appreciated!
Cognos Go! Office is a Office 2003 or better addin so there are not any entry points to kick off a repair so I am trying an active setup using the following registry information:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components]
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\{[ProductCode]}]
"Locale"="EN"
"DontAsk"=dword:00000002
"ComponentID"="[ProductName]"
"IsInstalled"=dword:00000001
"StubPath"="[SystemFolder]msiexec.exe /fau {[ProductCode]} /qn"
"Version"="1,0,0"
@="[ProductName]"
I was hoping to use this to kick off the repair to copy a "FrameworkSettings.xml" file to each user that logs in to the following location:[LocalAppDataFolder]Cognos\Office Connection
This works very well if I run the transform as myself (who is an admin) and it will copy the file to regular user accounts (non-admin) but the problem I have is when the application is pushed via SCCM and it runs with the system account for SCCM (admin) and another admin user logs on the file does not copy over. I was reading over some of the other posts suggesting a current user regkey set as a key file and I tried that but I must be doing something wrong as it does not work. I am trying to avoid a custom action if possible.
Also using AdminStudio 9.5.
Any help would be appreciated!
0 Comments
[ + ] Show comments
Answers (17)
Please log in to answer
Posted by:
aogilmor
14 years ago
Posted by:
Binth
14 years ago
Thank you for the response!
I have tried the /fpu switch as well and it did not work.
If I understand activesetup correctly should this reg key only go into HKLM and then HKCU compares the two locations and implements the repair if it is not found? I would have thought if I put it in both hives then the system would compare the versions and see they are the same and do nothing? I can get this to work for non-admin users just not from an admin to admin account. Am I off base in this assumption?
I have tried the /fpu switch as well and it did not work.
If I understand activesetup correctly should this reg key only go into HKLM and then HKCU compares the two locations and implements the repair if it is not found? I would have thought if I put it in both hives then the system would compare the versions and see they are the same and do nothing? I can get this to work for non-admin users just not from an admin to admin account. Am I off base in this assumption?
Posted by:
aogilmor
14 years ago
Posted by:
Jsaylor
14 years ago
Posted by:
Binth
14 years ago
I just pushed it to my test vm to check on the hive and it is installing to HKLM\Software\Microsoft\Active Setup\Installed Components, I logged off and logged back on and I get the Active Setup box show up but it is not copying the xml file to C:\Documents and Settings\userid\Local Settings\Application Data\Cognos\Office Connection when I log on as myself (an admin) but if I log off and on as a non-admin user it works fine (xml file is installed and our production server settings show up and the user can logon). I am not sure why an admin account makes a difference.
Posted by:
Jsaylor
14 years ago
Posted by:
Binth
14 years ago
OK I added logging to the ActivSetup and installed the application with the local system account (to mimic a SCCM push) and here is what I see when I log on and it repairs (as admin):
00000304 MSI (s) (B4:F0) [09:51:15:398]: PROPERTY CHANGE: Adding INSTALLDIR property. Its value is 'C:\Program Files\Cognos\Cognos 8 for Microsoft Office\'.
00000305 MSI (s) (B4:F0) [09:51:15:398]: PROPERTY CHANGE: Adding COGNOS1 property. Its value is 'C:\Documents and Settings\myid\Local Settings\Application Data\Cognos\'.
00000306 MSI (s) (B4:F0) [09:51:15:398]: PROPERTY CHANGE: Modifying OFFICE_CONNECTION property. Its current value is 'C:\WINDOWS\system32\config\systemprofile\Local Settings\Application Data\Cognos\Office Connection'. Its new value: 'C:\WINDOWS\system32\config\systemprofile\Local Settings\Application Data\Cognos\Office Connection\'.
00000307 MSI (s) (B4:F0) [09:51:15:398]: PROPERTY CHANGE: Adding COGNOS property. Its value is 'C:\Documents and Settings\myid\Application Data\Cognos\'.
As a normal user I see this:
00000310 MSI (s) (B0:B8) [09:58:05:699]: PROPERTY CHANGE: Adding INSTALLDIR property. Its value is 'C:\Program Files\Cognos\Cognos 8 for Microsoft Office\'.
00000311 MSI (s) (B0:B8) [09:58:05:699]: PROPERTY CHANGE: Adding COGNOS1 property. Its value is 'C:\Documents and Settings\test\Local Settings\Application Data\Cognos\'.
00000312 MSI (s) (B0:B8) [09:58:05:699]: PROPERTY CHANGE: Adding OFFICE_CONNECTION property. Its value is 'C:\Documents and Settings\test\Local Settings\Application Data\Cognos\Office Connection\'.
00000313 MSI (s) (B0:B8) [09:58:05:699]: PROPERTY CHANGE: Adding COGNOS property. Its value is 'C:\Documents and Settings\test\Application Data\Cognos\'.
The path 'C:\Documents and Settings\xxxx\Local Settings\Application Data\Cognos\Office Connection\ is where the xml file needs to go and it works for a regular user, I am having a hard time figuring out why if it installs with the local system account the pathing does not go to the same place when an administrator logs on, it goes to here instead: 'C:\WINDOWS\system32\config\systemprofile\Local Settings\Application Data\Cognos\Office Connection\
Thank you for all your help.
00000304 MSI (s) (B4:F0) [09:51:15:398]: PROPERTY CHANGE: Adding INSTALLDIR property. Its value is 'C:\Program Files\Cognos\Cognos 8 for Microsoft Office\'.
00000305 MSI (s) (B4:F0) [09:51:15:398]: PROPERTY CHANGE: Adding COGNOS1 property. Its value is 'C:\Documents and Settings\myid\Local Settings\Application Data\Cognos\'.
00000306 MSI (s) (B4:F0) [09:51:15:398]: PROPERTY CHANGE: Modifying OFFICE_CONNECTION property. Its current value is 'C:\WINDOWS\system32\config\systemprofile\Local Settings\Application Data\Cognos\Office Connection'. Its new value: 'C:\WINDOWS\system32\config\systemprofile\Local Settings\Application Data\Cognos\Office Connection\'.
00000307 MSI (s) (B4:F0) [09:51:15:398]: PROPERTY CHANGE: Adding COGNOS property. Its value is 'C:\Documents and Settings\myid\Application Data\Cognos\'.
As a normal user I see this:
00000310 MSI (s) (B0:B8) [09:58:05:699]: PROPERTY CHANGE: Adding INSTALLDIR property. Its value is 'C:\Program Files\Cognos\Cognos 8 for Microsoft Office\'.
00000311 MSI (s) (B0:B8) [09:58:05:699]: PROPERTY CHANGE: Adding COGNOS1 property. Its value is 'C:\Documents and Settings\test\Local Settings\Application Data\Cognos\'.
00000312 MSI (s) (B0:B8) [09:58:05:699]: PROPERTY CHANGE: Adding OFFICE_CONNECTION property. Its value is 'C:\Documents and Settings\test\Local Settings\Application Data\Cognos\Office Connection\'.
00000313 MSI (s) (B0:B8) [09:58:05:699]: PROPERTY CHANGE: Adding COGNOS property. Its value is 'C:\Documents and Settings\test\Application Data\Cognos\'.
The path 'C:\Documents and Settings\xxxx\Local Settings\Application Data\Cognos\Office Connection\ is where the xml file needs to go and it works for a regular user, I am having a hard time figuring out why if it installs with the local system account the pathing does not go to the same place when an administrator logs on, it goes to here instead: 'C:\WINDOWS\system32\config\systemprofile\Local Settings\Application Data\Cognos\Office Connection\
Thank you for all your help.
Posted by:
Jsaylor
14 years ago
Posted by:
Binth
14 years ago
I decided to start over with a new transform, I have the same issue with an Admin user account. I install the application with the local system account and it will install my frameworksettings.xml file into the following location: C:\Documents and Settings\NetworkService\Local Settings\Application Data\Cognos
The active setup works for non-admin user and puts the file into the user profile LocalAppDataFolder but not if you logon as an administrator. I am having a hard time understanding why there would be this difference between an admin logging on and a user logging on. Most of our users are locked down and this would not be an issue but our developers are admins on their devices so this becomes an issue.
Thank you all for your help!
The active setup works for non-admin user and puts the file into the user profile LocalAppDataFolder but not if you logon as an administrator. I am having a hard time understanding why there would be this difference between an admin logging on and a user logging on. Most of our users are locked down and this would not be an issue but our developers are admins on their devices so this becomes an issue.
Thank you all for your help!
Posted by:
jmcfadyen
14 years ago
Posted by:
skt
14 years ago
Posted by:
skt
14 years ago
Posted by:
langa100
14 years ago
Posted by:
dkbrooks
13 years ago
[blockquote]
[font="courier new"]
[font="courier new"]
[font="courier new"]
[font="courier new"]
[font="courier new"]
[font="courier new"]
[blockquote]
Things I have tried:
Fiddling with all possible values of ALLUSERS property in the original .msi file[/align]
Every permutation of flag on the repair install[/align]
Running msiexec /i {product code} REINSTALL=ALL REINSTALLMODE=vomous /qn (and all other reasonable reinstall modes)[/align]
Making sure the file in question is a key file in the component, etc.[/align]
Posted by:
dkbrooks
13 years ago
Posted by:
dkbrooks
13 years ago
Problem solved.
I found a clue in this thread: http://itninja.com/question/silent-uninstall-oracle-8-cilent0079
pjgeutjens suggested adding a KeyPath for the component to an HKCU registry key, so I changed the KeyPath from the file to the registry key and now it works.
The interesting section from the repair log file now looks like this:
... and the text file shows up in the user's %appdata% folder.
So thanks to everyone on AppDeploy, especially [color=#0066cb size=2][font="times new roman"]pjgeutjens. Now, anyone have any thoughts on how to get rid of the data that gets left behind in the file system and registry for all the non-logged in users (including the system profile) when a user uninstalls the application?
(And yes, I figured out why my text was wrapping - it was sizing the canvas to the longest line in the copy/pasted log file because I wasn't using the code tags.)
Thanks,
Dave
I found a clue in this thread: http://itninja.com/question/silent-uninstall-oracle-8-cilent0079
The interesting section from the repair log file now looks like this:
MSI (s) (94:C8) [20:14:26:966]: Executing op: FileCopy(SourceName=ACTIVE~1.TXT|ActiveSetupNotepadDataFile.txt,SourceCabKey=activesetupnotepaddatafile.t1,DestName=ActiveSetupNotepadDataFile.txt,Attributes=16384,FileSize=41,PerTick=32768,,VerifyMedia=1,,,,,CheckCRC=0,,,InstallMode=20971520,HashOptions=0,HashPart1=144051981,HashPart2=1985051018,HashPart3=-943810598,HashPart4=-1702673323,,)
MSI (s) (94:C8) [20:14:26:966]: File: C:\Documents and Settings\Administrator\Application Data\InstallerFactory\ActiveSetupNotepad\ActiveSetupNotepadDataFile.txt; To be installed; Won't patch; No existing file
MSI (s) (94:C8) [20:14:26:966]: Source for file 'activesetupnotepaddatafile.t1' is compressed
MSI (s) (94:C8) [20:14:26:966]: Note: 1: 2318 2: C:\Documents and Settings\Administrator\Application Data\InstallerFactory\ActiveSetupNotepad\ActiveSetupNotepadDataFile.txt
... and the text file shows up in the user's %appdata% folder.
So thanks to everyone on AppDeploy, especially [color=#0066cb size=2][font="times new roman"]pjgeutjens. Now, anyone have any thoughts on how to get rid of the data that gets left behind in the file system and registry for all the non-logged in users (including the system profile) when a user uninstalls the application?
(And yes, I figured out why my text was wrapping - it was sizing the canvas to the longest line in the copy/pasted log file because I wasn't using the code tags.)
Thanks,
Dave
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.