Delete APPDIR and StartMenuFolder after Uninstall - 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!

udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Delete APPDIR and StartMenuFolder after Uninstall

Hi Team,

I have a new error in Advanced Installer 8.8.1

I build my package in AI-8.8.1 and installed normally, After Uninstall the package ROOT APPDIR and StartMenuFolder should not be deleted.

How could delete root APPDIR and StartMenuFolder after Uninstallation.

Thank you,
Udayk
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Delete APPDIR and StartMenuFolder after Uninstall

Hi Udayk,

I believe you added an extra not to this affirmation:
After Uninstall the package ROOT APPDIR and StartMenuFolder should not be deleted.
In this case, this question makes sense:
How could delete root APPDIR and StartMenuFolder after Uninstallation.
The answer is during an uninstall, Windows Installer removes only the data registered into the MSI file. All other data created by custom actions, by the installed application or by the user is not registered in the MSI, therefore it will not be removed. Another reason these folders are not removed could be that they got modified after installation on the target machine.
If you want to also delete this residual data, you need to use the "Uninstall Cleanup" wizard available from the context menu when a folder is selected in the Files and Folders Page.

P.S. I deleted your other similar thread.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Delete APPDIR and StartMenuFolder after Uninstall

Thank you mihai for your reply,

I applied Uninstall Cleanup as well, but the un but it will delete the only sub folders, but not the ROOT direcotry,
I want to delete the root directory HOW???

Can you please tell me the procedure.

Thank you,
Udayk.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Delete APPDIR and StartMenuFolder after Uninstall

Hello Udayk,

Can you please send us the .AIP ( project file ) and a verbose log of the installation 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
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Delete APPDIR and StartMenuFolder after Uninstall

Thank you Mihai for your reply,

As you asked to my .aip file
I will attached .aip file, please find it.


Thank you,
Udayk.
Attachments
Test_FIXED_64.aip
This is my .aip file, please find it.
(496.5 KiB) Downloaded 562 times
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Delete APPDIR and StartMenuFolder after Uninstall

Thank you Mihai for your reply,

As you asked to my verbose log file, file size is 1.36 mb, that's why i deleted some data in the verbose log file.
I will attached verbose log file, please find it.

Thank you,
Udayk.
Attachments
Analytics.log
This my verbose log file.
(813.79 KiB) Downloaded 446 times
subongail
Posts: 1
Joined: Tue Jan 24, 2012 10:15 am

Re: Delete APPDIR and StartMenuFolder after Uninstall

Hi,

I have the same problem.

Since AI v 8.8.1 or 8.8.2 the uninstallation do not work correctly.

How is it possible to come back to previous version of AI?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Delete APPDIR and StartMenuFolder after Uninstall

Hello,

This is unexpected behavior. Unfortunately we cannot open your .AIP because you are using some repository dialogs.
Does this manifest on several( clean ) machines? If it does, please specify the OS, isolate this test case on a sample .AIP and send it to us so we can investigate.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Delete APPDIR and StartMenuFolder after Uninstall

Thank you Mihai,

My operating system is Windows 7, Now i will attach dialogs zip folder for investigating.

Thanks in Advance,
Udayk.
Attachments
Dialogs.rar
Please find the dialogs zip file for open an aip file.
(7.41 KiB) Downloaded 523 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Delete APPDIR and StartMenuFolder after Uninstall

Hi Udayk,

I noticed the APPDIR folder removal is conditioned to be performed when "Deltek.ico" component is uninstalled. The "Deltek.ico" component itself is conditioned to be installed with the following condition:

Code: Select all

?applet.cpl_1
where "applet.cpl_1" is a component from another feature.
Please read the following article and let me know what did you try to accomplish by doing this?
http://www.advancedinstaller.com/user-g ... ialog.html

As I mentioned in my previous post, since your project has many resources and settings it is very difficult to debug. Can you please replicate the behavior on another new separate basic .AIP file and send it to us?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Delete APPDIR and StartMenuFolder after Uninstall

Thank you Mihai,

I will try the articles, if i have any issues, let you know.

Thank you,
Udayk.
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Delete APPDIR and StartMenuFolder after Uninstall

Hi Mihai,

I have a Enterprise MSI project that installs fine; very easy to set up the project, just worked. Uninstall works great too, except I noticed that consecutive reinstalls with updated files were not overwriting the originally installed files. Turns out that 'Uninstall' does not remove the APPDIR folder with all its files, which I thought was strange.

I have tried using the File Removal to cause this to happen, and everything looks fine, except the files are still there after the uninstall. This is destined to bite me later on when I publish updates.

Surely this is simple; what am I missing?

I am using 8.8.1 purchased version.

I registered AI Enterprise; same thing; 'Remove [Application]' does not actually remove it at all.

Can you please tell me the alternative.

Thank you,
Udayk.
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Delete APPDIR and StartMenuFolder after Uninstall

Hi Guys,

Can any one please tell me any other alternatives for remove APPDIR after Uninstall, Breifly.

Thank you,
Udayk.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Delete APPDIR and StartMenuFolder after Uninstall

Hi Udayk,

The APPDIR folder should be automatically removed on uninstall unless you have incorrect settings in your project.

Resources left behind due to custom behavior or outside subsequent interaction can be removed either using remove operations or the Uninstall Cleanup wizard. Please note this is not your case.

To pick up where we left off you can carefully read and answer my last post.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
udayk
Posts: 126
Joined: Thu Jan 19, 2012 12:30 pm

Re: Delete APPDIR and StartMenuFolder after Uninstall

Hi Mihai,

I found it my Component "Deltek.ico" file got APPDIR, i set Folder remove options. But i was unable to delete this root directory.

I wrote Custom action as well, with the help of forum people. I Wrote custom actions like this.
EX:1
Function removeDir()
Dim pathToFolder, smallPath
Set objFS = CreateObject("Scripting.FileSystemObject")
pathToFolder = Session.Property("APPDIR")
smallPath=Left(pathToFolder,Len(pathToFolder)-1)
If (objFS.FolderExists(smallPath)) then
objFS.DeleteFolder smallPath, true
End if
End Function


EX:2

Function removeDir()
Dim pathToFolder, smallPath
Set objFS = CreateObject("Scripting.FileSystemObject")
pathToFolder = Session.Property("DIR")
smallPath=Left(pathToFolder,Len(pathToFolder)-1)
If (objFS.FolderExists(smallPath)) then
objFS.DeleteFolder smallPath, true
End if
End Function


It throws an Exception while exeuting custom actions.

How should i resolve this feature, Can you please help me on this issue.
I will attached my Folder remove options scree as well.


Thank you,
Udayk.
Attachments
This is for folder removal after uninstalltion
This is for folder removal after uninstalltion
APPDIR-Folder-Removal-Options.png (245.14 KiB) Viewed 12643 times
while running Custom actions, facing an erro
while running Custom actions, facing an erro
Problem-on-Installation.png (70.61 KiB) Viewed 12643 times

Return to “Common Problems”