How to change directory of user.config file - Advanced Installer Community
blueye89
Posts: 2
Joined: Thu Mar 22, 2018 10:59 am

How to change directory of user.config file

Hello to all,
I have created my first installer using Advanced Installer and I have a problem to do something.
After installing my app and running it, I am getting a form which require an activation code that I will provide to a customer.
Customer will paste activation code and click register. Activation code is saved in : "C:\Users\<username>\AppData\Local\..." but in the subfolder called "xqP6jeS5BRsGZFj6y1\MyApp_Url_gkuxhdeyfm5busxlqdwbzlhzsaqkm0jk" which is created automatically after first exit of the application.
What defines the name of these sub-folders? I have expected that there will be a folder MyApp in "C:\Users\<username>\AppData\Local\..." where user.config file will be stored.

I am asking this cause I would like to delete user.config file during the uninstall process.

Any help is very appreciated!

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

Re: How to change directory of user.config file

Hello Danijel and welcome to our forums,

From what you told us it seems the related sub-folders and user.config file is created by your application. Therefore it is not something controlled by the setup package. I recommend you to forward your query to your app developer.

We can help you only in what regards your setup package configuration and deployment process.

Just let me know if I misunderstood the behavior you are facing with.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
blueye89
Posts: 2
Joined: Thu Mar 22, 2018 10:59 am

Re: How to change directory of user.config file

Hello Daniel,
Thank you for your reply.
I have solved a problem by creating a new folder with specific name and setting a properties on it during uninstall process (image in attachment).
It works fine but I noticed another problem. The application that I developed works like add-in to the main application "Autodesk Vault" https://en.wikipedia.org/wiki/Autodesk_Vault. By following the Vault SDK documentation, it's possible to make your application to get license or to provide read only access which doesn't need a license. It is easy to configure by replacing few lines in a app.config file in the VS project.
I have done it an I have created a standard MSI installer using VS, application is tested and works perfect.

I decided not to use default MSI installer but to create a setup with Advanced Installer so I have included a mentioned app.config file in Files and Folder section. App.config file is successfully copied during the installation process. I have started the application but it seems that application doesn't read app.config file and license is grabbed.

Is there something specific that I need to do with app.config file?

I don't understand how standard VS installer did what I wanted and Advanced Installer's setup file didn't do.

Any help is very appreciated!

Best,
Danijel
Attachments
img11.PNG
img11.PNG (31.57 KiB) Viewed 3423 times
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to change directory of user.config file

Hello Danijel,

I'm glad you solved the first problem.

Regarding the "app.config" file, can you try to make a diff (for content and file permissions) between the config file installed by AI setup and by VS installer and let us know if there is any difference?

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

Return to “Common Problems”