cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
dandirk
Level 3

LocalAppDataFolder path cached on repair?

Built a basic msi, added predefined folder [LocalAppDataFolder], then manually created sub dirs Microsoft\Office. Then I have an XML edit (tested a normal file too) in this directory.

Since this is a user profile location, I am relying on self-heal/repair to propagate the file to new users on the workstation.

It works fine for the first user that runs the msi, then for the second user the repair uses the paths to the profile of the first user. You can even see in the logs that the proper path for LocalAppDataFolder is set, then right away the property will be changed to the path of user1 profile...

I rarely ever ran into this issue with 11, is there a setting or behavior that changed????

[CODE]00169: (Unknown): Action start 9:59:39: CostFinalize.
00170: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding OutOfDiskSpace property. Its value is '0'.
00171: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding OutOfNoRbDiskSpace property. Its value is '0'.
00172: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceAvailable property. Its value is '0'.
00173: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRequired property. Its value is '0'.
00174: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRemaining property. Its value is '0'.
00175: (Client): MSI (c) (98:48) [09:59:39:882]: Note: 1: 2205 2: 3: MsiAssembly
00176: (Client): MSI (c) (98:48) [09:59:39:882]: Note: 1: 2228 2: 3: MsiAssembly 4: SELECT `MsiAssembly`.`Attributes`, `MsiAssembly`.`File_Application`, `MsiAssembly`.`File_Manifest`, `Component`.`KeyPath` FROM `MsiAssembly`, `Component` WHERE `MsiAssembly`.`Component_` = `Component`.`Component` AND `MsiAssembly`.`Component_` = ?
00177: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Modifying LocalAppDataFolder property. Its current value is 'C:\Documents and Settings\test2\Local Settings\Application Data\'. Its new value: 'C:\Documents and Settings\test1\Local Settings\Application Data'.
00178: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding INSTALLDIR property. Its value is 'C:\Program Files\Microsoft Office\Templates\PubDef'.
00179: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding MICROSOFT_OFFICE property. Its value is 'C:\Program Files\Microsoft Office'.
00180: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding TEMPLATES property. Its value is 'C:\Program Files\Microsoft Office\Templates'.
00181: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding PUBDEF property. Its value is 'C:\Program Files\Microsoft Office\Templates\PubDef'.
00182: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding MICROSOFT property. Its value is 'C:\Documents and Settings\test1\Local Settings\Application Data\Microsoft'.
00183: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding OFFICE property. Its value is 'C:\Documents and Settings\test1\Local Settings\Application Data\Microsoft\Office'.
00184: (Client): MSI (c) (98:48) [09:59:39:882]: Note: 1: 2262 2: Patch 3: -2147287038
00185: (Client): MSI (c) (98:48) [09:59:39:882]: Note: 1: 2205 2: 3: Condition
00186: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding TARGETDIR property. Its value is 'C:\'.
00187: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Modifying USERPROFILE property. Its current value is 'C:\Documents and Settings\test2'. Its new value: 'C:\Documents and Settings\test2\'.
00188: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Modifying LocalAppDataFolder property. Its current value is 'C:\Documents and Settings\test1\Local Settings\Application Data'. Its new value: 'C:\Documents and Settings\test1\Local Settings\Application Data\'.
00189: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Modifying MICROSOFT property. Its current value is 'C:\Documents and Settings\test1\Local Settings\Application Data\Microsoft'. Its new value: 'C:\Documents and Settings\test1\Local Settings\Application Data\Microsoft\'.
00190: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Modifying OFFICE property. Its current value is 'C:\Documents and Settings\test1\Local Settings\Application Data\Microsoft\Office'. Its new value: 'C:\Documents and Settings\test1\Local Settings\Application Data\Microsoft\Office\'.
00191: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Modifying MICROSOFT_OFFICE property. Its current value is 'C:\Program Files\Microsoft Office'. Its new value: 'C:\Program Files\Microsoft Office\'.
00192: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Modifying TEMPLATES property. Its current value is 'C:\Program Files\Microsoft Office\Templates'. Its new value: 'C:\Program Files\Microsoft Office\Templates\'.
00193: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Modifying PUBDEF property. Its current value is 'C:\Program Files\Microsoft Office\Templates\PubDef'. Its new value: 'C:\Program Files\Microsoft Office\Templates\PubDef\'.
00194: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Modifying INSTALLDIR property. Its current value is 'C:\Program Files\Microsoft Office\Templates\PubDef'. Its new value: 'C:\Program Files\Microsoft Office\Templates\PubDef\'.
00195: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding ISYourDataBaseDir property. Its value is 'C:\Program Files\Microsoft Office\Templates\PubDef\Database\'.
00196: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Adding DATABASEDIR property. Its value is 'C:\Program Files\Microsoft Office\Templates\PubDef\Database\'.
00197: (Client): MSI (c) (98:48) [09:59:39:882]: PROPERTY CHANGE: Modifying ALLUSERSPROFILE property. Its current value is 'C:\Documents and Settings\All Users'. Its new value: 'C:\Documents and Settings\All Users\'.
00198: (Client): MSI (c) (98:48) [09:59:39:882]: Target path resolution complete. Dumping Directory table...
00199: (Client): MSI (c) (98:48) [09:59:39:882]: Note: target paths subject to change (via custom actions or browsing)
00200: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: TARGETDIR , Object: C:\
00201: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: USERPROFILE , Object: C:\Documents and Settings\test2\
00202: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: SystemFolder , Object: C:\WINDOWS\system32\
00203: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: LocalAppDataFolder , Object: C:\Documents and Settings\test1\Local Settings\Application Data\
00204: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: MICROSOFT , Object: C:\Documents and Settings\test1\Local Settings\Application Data\Microsoft\
00205: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: OFFICE , Object: C:\Documents and Settings\test1\Local Settings\Application Data\Microsoft\Office\
00206: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: ProgramFilesFolder , Object: C:\Program Files\
00207: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: MICROSOFT_OFFICE , Object: C:\Program Files\Microsoft Office\
00208: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: TEMPLATES , Object: C:\Program Files\Microsoft Office\Templates\
00209: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: PUBDEF , Object: C:\Program Files\Microsoft Office\Templates\PubDef\
00210: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: INSTALLDIR , Object: C:\Program Files\Microsoft Office\Templates\PubDef\
00211: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: ISYourDataBaseDir , Object: C:\Program Files\Microsoft Office\Templates\PubDef\Database\
00212: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: DATABASEDIR , Object: C:\Program Files\Microsoft Office\Templates\PubDef\Database\
00213: (Client): MSI (c) (98:48) [09:59:39:882]: Dir (target): Key: ALLUSERSPROFILE , Object: C:\Documents and Settings\All Users\
00214: (Unknown): Action ended 9:59:39: CostFinalize. Return value 1.[/CODE]
Labels (1)
0 Kudos
(1) Reply
dandirk
Level 3

Must be missing something really obvious. I don't generally build basic msi, usually I am just editing/creating MSTs... Never really had a problem with per user data like this before...

OK I think it has to do with the folders I create after a pre-defined folder. It I change the component's destination to the root of the pre-defined folder aka [localappdatafolder], then repair work as expected.

The moment I add a folder in "File and Folders" under these pre-defined folders, the path of the first user to run the msi is set for public properties early in the installation...

Here is the initial getfolderpaths from log, everything correct (test2 user)
[CODE]00086: (Server): MSI (s) (FC:04) [14:53:34:837]: SHELL32::SHGetFolderPath returned: C:\Documents and Settings\test2\Application Data
00087: (Server): MSI (s) (FC:04) [14:53:34:837]: SHELL32::SHGetFolderPath returned: C:\Documents and Settings\test2\Favorites
00088: (Server): MSI (s) (FC:04) [14:53:34:837]: SHELL32::SHGetFolderPath returned: C:\Documents and Settings\test2\NetHood
00089: (Server): MSI (s) (FC:04) [14:53:34:837]: SHELL32::SHGetFolderPath returned: C:\Documents and Settings\test2\My Documents
00090: (Server): MSI (s) (FC:04) [14:53:34:837]: SHELL32::SHGetFolderPath returned: C:\Documents and Settings\test2\PrintHood
00091: (Server): MSI (s) (FC:04) [14:53:34:837]: SHELL32::SHGetFolderPath returned: C:\Documents and Settings\test2\Recent
00092: (Server): MSI (s) (FC:04) [14:53:34:837]: SHELL32::SHGetFolderPath returned: C:\Documents and Settings\test2\SendTo
00093: (Server): MSI (s) (FC:04) [14:53:34:837]: SHELL32::SHGetFolderPath returned: C:\Documents and Settings\test2\Templates
00094: (Server): MSI (s) (FC:04) [14:53:34:847]: SHELL32::SHGetFolderPath returned: C:\Documents and Settings\All Users\Application Data
00095: (Server): MSI (s) (FC:04) [14:53:34:847]: SHELL32::SHGetFolderPath returned: C:\Documents and Settings\test2\Local Settings\Application Data
00096: (Server): MSI (s) (FC:04) [14:53:34:847]: SHELL32::SHGetFolderPath returned: C:\Documents and Settings\test2\My Documents\My Pictures [/CODE]

Then later during Cost Finalize... What looks to be directory keys in Public property format are set... test1 ran msi first, logged off then back on as test2 (as shown above), then repaired the installation to create per user files...
[CODE]00193: (Server): MSI (s) (FC:04) [14:53:34:867]: PROPERTY CHANGE: Adding MICROSOFT property. Its value is 'C:\Documents and Settings\test1\Local Settings\Application Data\Microsoft'.
00194: (Server): MSI (s) (FC:04) [14:53:34:867]: PROPERTY CHANGE: Adding OFFICE property. Its value is 'C:\Documents and Settings\test1\Local Settings\Application Data\Microsoft\Office'.[/CODE]


I guess the only thing I can come up with is because the directory table keys are in all caps and thus become public properties? Guess I will try changing them to private and see what happens.... EDIT: That didn't work...
0 Kudos