Hi,
This is a bug in Advanced Installer and it will be fixed in the next version. Thank you for bringing this to our attention.
Until then, you can use a custom action to remove this folder. Here is what I used in my tests:
Code: Select all
Function removeDir()
Dim pathToFolder, smallPath
Set objFS = CreateObject("Scripting.FileSystemObject")
pathToFolder = Session.Property("SHORTCUTDIR")
smallPath=Left(pathToFolder,Len(pathToFolder)-1)
If (objFS.FolderExists(smallPath)) then
objFS.DeleteFolder smallPath, true
End if
End Function
You can write this into a .VBS file and add it as an attached custom action under "InstallExecuteSequence" -> "InstallFinalize". In the "Function Name" field you can set
removeDir and you should condition the custom action with
(NOT Installed).
Regards,
Cosmin
FOLLOW US
Get the latest news in Application Packaging