wrong files locked after windows service installation

Got a problem you cannot solve? Try here.
rodm
Posts: 2
Joined: Tue Sep 01, 2015 5:12 pm

wrong files locked after windows service installation

Postby rodm » Tue Sep 01, 2015 5:17 pm

I am using InstallAware X2 Studio build 12.1.14. During the install I copy a list of files from an installation folder to the target folder. After the files are copied I create a service using one of the files in the target folder (myService.exe). I use the “Run .NET Installer” command. It creates the service and it all works. But, while the service is running I cannot delete the file “myService.exe” in the installation folder. It says the file “myService.exe” is in use by the service I had just created. I checked which file the service was using and it is “myService.exe” in the target folder, as it should be. It uses nothing from the installation folder. If I stop the service then I can delete “myService.exe” from the installation folder. Our old Wise scripts that did the same job did not do this behaviour. It seems that the InstallAware scripts are the cause of this behaviour. Is there any way to prevent this?

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: wrong files locked after windows service installation

Postby FrancescoT » Wed Sep 02, 2015 12:55 pm

Dear Rodm,

I suppose instead that the cause of your issue is not the IA script behavior.

Honestly its not clear to me what do you mean exactly with "installation path", are you adding such service to supportdir location?

In other words, it seems to me that you are installing that "myService.exe" in the TARGETDIR (via Install Files) as any other file eventually installed by the package. If true, why did you want to remove such file from there?

Probably I missing your steps, but it seems to me that there is something wrong with the approach you used.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 112 guests