[solved] APPDIR not set when repair - Advanced Installer Community
dejx
Posts: 10
Joined: Sun Jul 26, 2015 12:51 pm
Contact: Website Skype Twitter

[solved] APPDIR not set when repair

, i have a problem with APPDIR property when repairing.

In the attachment you can see the sample project, XdtPortable is pretty much harmless tool for creating aXDT transformation (code can be found on https://bitbucket.org/dejand/xdttransformportable)

First insllation is fine if i select APPDIR for C:\test for example
When doing an upgrade work fine also, it remembers and installs in the C:\test

I have also attached log files from the installation.

The problem is when doing repair, in repair mode, the APPDIR is somehow not read from the registry, and it's set to C:\Program Files (x86)\Your Company\Your Application

Is there any way to keep correct APPDIR path when doing a repair?


What i'm trying to achieve is:
- When doing first install transformation file is created and applyed (the config file is created)
- Then i'd like to change transformation file and with repair flow apply new transformation file to default config. (And with any other upgrade)
Attachments
repair.txt
(195.64 KiB) Downloaded 315 times
firstInstall.txt
(65.61 KiB) Downloaded 311 times
APPDIR ISSUE.zip
(48.63 KiB) Downloaded 269 times
Last edited by dejx on Thu Aug 13, 2015 11:55 am, edited 1 time in total.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: APPDIR not set when repair

Hi and welcome to our forums.

This problem may appear because you have no file added in the "Application Folder" from the "Files and Folders" page of your project.

Can you go to the "Properties" dialog of that folder and check the "Create folder on target machine" option, then rebuild and retest the project to see if the problem persists?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
dejx
Posts: 10
Joined: Sun Jul 26, 2015 12:51 pm
Contact: Website Skype Twitter

Re: APPDIR not set when repair

Hello

It works!

Can you please explain to me what that setting means? Because files were installed in the correct folder on the target machine even without this setting.

I want to know when/why should i leave this enabled or disabled.

Thanks for you help
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: APPDIR not set when repair

Hi,

I'm glad it worked.

When the "Create folder on target machine" option is enabled for a folder, a separate component will be created for it in the "Organization" page and it will be added to the registry during the installation.

This way, the installer will be able to get information about that folder during maintenance and upgrade. Otherwise, no information will be available about the folder and that is why its original path was forgotten in your scenario.

That option is not enabled by default, but if at least a file is added to that folder, the folder path will be remembered through the file's component.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”