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!

xironix
Posts: 3
Joined: Sat Nov 18, 2006 8:42 am

How to remove App folder and .NET Assemblies from GAC ?

Dear Friends,
I have created a simple installer with an EXE file in application folder and a .NET DLL file in GAC.I want to remove the application EMPTY folder and installed assembly from GAC at unistall.
I set the "Remove Folder(only if empty)" in Remove tab of application folder property dialog and add a "File Removal" component for the .NET dll in application folder.But these operations did not help.
At uninstall the assembly is still remained in GAC and the empty folder of the application too.
How can I do these removal actions ? :?: :cry:

Regard,
XironiX
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
I have created a simple installer with an EXE file in application folder and a .NET DLL file in GAC.I want to remove the application EMPTY folder and installed assembly from GAC at unistall.
This should happen by default. The assembly file and the EMPTY folder are automatically removed on uninstall. So please tell me if you install the assembly with a custom action or with "Assemblies" feature from AI?

http://www.advancedinstaller.com/user-g ... blies.html

Also if your application (when runs) creates a file in the installation folder. Then this file is not removed by windows installer, you need a custom action do to that.

Waiting for more details.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
xironix
Posts: 3
Joined: Sat Nov 18, 2006 8:42 am

Dear Gigi...
Thanx for your attention.I am using "Assemblies" feature of AI to install my .NET assembly.It is installed successfully but I can't uninstall it from GAC.Another thing is that the application folder on the target machine is empty after uninstall process but my setup file does not follow the default bahavior of AI to remove application folder ! :( This is a simple test installer project with a simple EXE file in application folder and a strongly signed .NET assembly in GAC ! Any driver,REG file,prequesties and any custom action !! What is the problem :?: :?: :?: :!:
King Regards,
XironiX
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,
It is installed successfully but I can't uninstall it from GAC.
Maybe you have a running application or service that keeps the assembly opened. Until you get that application or service to terminate the assembly is not uninstalled. Use a process explorer tool to view if the assembly is opened by a application or service. Also please try to reproduce this behavior with other assembly file or on another computer.

Regarding the EMPTY folder, I think it has to do with the fact that the assembly is not removed.

If the problem persist please send the AIP file (if not contain any confidential informations) to support at advancedinstaller dot com in order to investigate the problem.

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
xironix
Posts: 3
Joined: Sat Nov 18, 2006 8:42 am

Help me please...

Dear gigi.
Thanx for reply and sorry for delay.I built another simple installer project and changed the assembly file.My application is so simple with an executable file in app folder and a .NET assembly in GAC ! I have installed it and uninstall quickly.No execution ! No running and no any action.But the problem is persists. :cry:

What the hell is going here ? :x How can I resolve this problem ? :?:
Regards.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

We cannot reproduce this, please send the AIP file (if not contain any confidential informations) or a test project that exhibits the same behavior to support at advancedinstaller dot com.

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

Return to “Common Problems”