Hi all,
I'm encountering a very annoying issue to self heal files located in the "roaming app data" folder (C:\Users\<username>\AppData\Roaming\) on a Windows 7 64 bits.
I have a configuration file located in “roaming application data” and would like to copy this file to current logged user with advertised shortcut.
Usually, when the advertised shortcut is used, it checks for any key marked component and if any of these is missing, it launches a repair of the MSI. In my case, when an user runs the advertised shortcut, it checks that that configuration file in “roaming app data” is missing then it should copy it by repairing the MSI.
What’s happening here, which is my issue, is that when the advertised shortcut is ran, the configuration file, which must be verified, isn’t the one from the current user “roaming app data” but the one from the admin account used to install the MSI!!! So, the MSI will decided that no file is missing and won’t repair…
To be sure you understand me, my admin user is “admin” and the current user is “user1”.
When installing the MSI with “admin” account, I have the config file copied into “C:\Users\admin\Roaming\MySoft\config.dat”
The normal way would be to get the MSI repaired by a copy of the config file to “C:\Users\user1\Roaming\MySoft\config.dat” when the advertised shortcut is ran by “user1”.
While using this strategy with Advanced Installer 8.9.0, the advertised shortcut checks “C:\Users\admin\Roaming\MySoft\config.dat” (which exists) and not “C:\Users\user1\Roaming\MySoft\config.dat”, which should initiate a repair!! So nothing is repaired and the config file is not copied in the user1 roaming app data.
For your information, my advertised shortcut, the pointed EXE, any HKCU registry keys and files located in the roaming app data folder are in the same feature. And I have already done this hundreds of times using Wise and it always worked...
Thank you in advance to help me with that because it’s a very very common use of MSI and I’m very disappointed with that…
FOLLOW US
Get the latest news in Application Packaging