APPDIR not pointing to correct spot during Repair - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

robertq@gwava.com
Posts: 4
Joined: Thu Jul 21, 2011 5:45 pm

APPDIR not pointing to correct spot during Repair

Hello,

I'm using Advanced Installer 8.5 and have come across a strange bug or just a misunderstanding on my part. I have some windows services that get installed and during a repair operation an argument for the windows service is incorrect.

To clarify I have some arguments set for my windows service as follows "/winservice "/root=[APPDIR]"". That works perfect on the initial install, app directory is populated with the install directory, even if that directory is a new path. However, if a repair is done then the [APPDIR] gets populated with the default install path of the program not the path to which they installed originally. It was my understanding that the appdir property would automatically be set to whatever the install path was originally during a repair, but maybe that is where I'm wrong. Is there a property I'm missing that I should be using or is there a better way I could be doing this?

One thing that is confusing is that I have for the service file path "APPDIR\assets\bin\windows\x64\********.exe" (stars are substituted of course) and that APPDIR there is correct, though it doesn't seem to correspond with the appdir property directly.


Any help is appreciated.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: APPDIR not pointing to correct spot during Repair

Hello,

This can happen if that folder doesn't have an associated component. Please verify if that folder has only subfolders and no files in it. In this case you can enable its "Create folder on target machine" option( context menu -> Properties ).

If this is not the case, can you please send us the .AIP ( project file ) and a verbose log of the installation and repair to support at advancedinstaller dot com so we can investigate them?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”