Auto-repair doesn't trigger from a custom user profile path - Advanced Installer Community
CSOB
Posts: 9
Joined: Wed Feb 25, 2015 10:47 am
Location: Prague
Contact: Website

Auto-repair doesn't trigger from a custom user profile path

Hello,

I'd like to know whether it's possible to have files located under a distinct user profile path shown below triggered by advertised shortcut:

c:\users\username1\help systems\config.cfg

Advertised shortcut will not trigger auto-repair for this file for some reason, however if I put the same file under:

c:\users\username1\AppData\Roaming\help systems\config.cfg

running the application for the first time will trigger auto-repair and place the file in this path. In our scenario an application is being installed under a system account and when a user starts the application we want to trigger auto-repair and place the config file to the correct path: c:\users\username1\help systems\config.cfg

Is there any easy way to do this? We tried creating a new property which would resolve a %username% value from the environmental variable but had no success. Auto-repair would still not trigger. Currently we use active setup to do this task but it's not very convenient.

Thanks for help,

Tom
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Auto-repair doesn't trigger from a custom user profile path

Hello Tom,

I have tested the scenario and replicated the issue. Unfortunately, this seems to be a limitation of the Windows Installer self-healing mechanism. I did a small research about this behavior but unfortunately didn't find any useful info about this.

So, it seems you should use the active setup mechanism to achieve what you need.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
stke
Posts: 1
Joined: Thu Jun 14, 2018 12:44 pm

Re: Auto-repair doesn't trigger from a custom user profile path

I have the same problem in the moment. This topic is from 2015. Is there any solution for this Problem or is it still not solved ?

Txs for helping me.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Auto-repair doesn't trigger from a custom user profile path

Hello and welcome to our forums,

The only workaround solution you can try is to implement the Active Setup mechanism and see if this helps.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”