Folder refresh...losing service definition - 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!

mctozzy
Posts: 81
Joined: Wed Feb 14, 2007 7:37 am

Folder refresh...losing service definition

Congratulations on release of 5.0. Your continuous efforts at adding features and improving product quality are very much appreciated.

My problem today concerns something I have noticed a couple of times which is a real nuisance! Has just happened again now with 5.0 but I don't think this is a new problem.

Suppose I have a project set up where the application files are essentially a synced folder somewhere on the dev filesystem. Build the project, everthing fine.

Now I want to rebuild the project, essentially from the same set of files, but those files are now in a different place in the filesystem. So I go in and change the source location in the properties of the folder in the project and resync. Everything looks OK in files and folders view.

But what happened is that even though the key exe name is still the same, the service and control operation that both related to that component are lost and I have to manually recreate those entries. I'm not sure what other things that might have depended on that component can get lost as well.

I would say that something is happening/changing with respect to the component definitions when the folder refresh occurs.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

When the source of the synchronization folder is changed all the files are deleted (components get lost) followed by the addition of the new files. This behavior is the same even if the content of the new folder is the same.

And when a file is removed the associated service is deleted automatically.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Last edited by gigi on Thu Jun 14, 2007 11:48 am, edited 1 time in total.
mctozzy
Posts: 81
Joined: Wed Feb 14, 2007 7:37 am

Oh that's a pity. Oh well, we'll just have to make sure that we keep the source tree the same place relative to the msi project file's location.

But just to clarify, all path refs are maintained relative to the ai file's location, are they not? So if the whole project gets checked out from cvs to a different local directory, that does not constitute a change of source to the sync folder does it? (I really hope not!)
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

Yes, the paths are relative, and this can be controlled in the "Edit Project Settings" dialog from "Project->Options" main menu.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com

Return to “Common Problems”