Hi,
I'm making an installer that installs a few files and folders directly to the %userprofile% folder. I'm doing it using the steps outlined in http://www.advancedinstaller.com/user-g ... older.html
The files go where they are supposed to but I want to implement a second user repair, forcing the files into the next logged on user profile. To make this happen I'm using active setup.
The problem with the USER_PROFILE property is that it keeps reverting to the first user %userprofile% path (that is the user that installed the .msi in the first place).
This is what it looks like in the log file:
MSI (s) (BC:90) [14:41:14:074]: PROPERTY CHANGE: Adding ACTION property. Its value is 'INSTALL'.
MSI (s) (BC:90) [14:41:14:074]: Doing action: INSTALL
Action start 14:41:14: INSTALL.
MSI (s) (BC:90) [14:41:14:074]: Running ExecuteSequence
MSI (s) (BC:90) [14:41:14:074]: Doing action: PropertySource
MSI (s) (BC:90) [14:41:14:074]: PROPERTY CHANGE: Modifying USER_PROFILE property. Its current value is 'none'. Its new value: 'C:\Users\second_user'.
Action start 14:41:14: PropertySource.
MSI (s) (BC:90) [14:41:14:074]: Doing action: AppSearch
Action ended 14:41:14: PropertySource. Return value 1.
...
MSI (s) (BC:90) [14:41:14:292]: Doing action: CostFinalize
Action ended 14:41:14: IsolateComponents. Return value 0.
MSI (s) (BC:90) [14:41:14:292]: PROPERTY CHANGE: Adding OutOfDiskSpace property. Its value is '0'.
MSI (s) (BC:90) [14:41:14:292]: PROPERTY CHANGE: Adding OutOfNoRbDiskSpace property. Its value is '0'.
MSI (s) (BC:90) [14:41:14:292]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceAvailable property. Its value is '0'.
MSI (s) (BC:90) [14:41:14:292]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRequired property. Its value is '0'.
MSI (s) (BC:90) [14:41:14:292]: PROPERTY CHANGE: Adding PrimaryVolumeSpaceRemaining property. Its value is '0'.
MSI (s) (BC:90) [14:41:14:292]: Note: 1: 2205 2: 3: MsiAssembly
MSI (s) (BC:90) [14:41:14:292]: 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_` = ?
MSI (s) (BC:90) [14:41:14:292]: PROPERTY CHANGE: Modifying USER_PROFILE property. Its current value is 'C:\Users\second_user'. Its new value: 'C:\Users\first_user'.
MSI (s) (BC:90) [14:41:14:292]: Note: 1: 2205 2: 3: Condition
...
Why does it go back to the first value?
Br Johan
FOLLOW US
Get the latest news in Application Packaging