z_shangyi
Posts: 27
Joined: Sat Aug 26, 2006 5:44 am

This is a bug of updater?

Wed Nov 19, 2008 4:31 pm

Hello,

When use the following sample script in help file of AI removing a folder at use updater to update a program, an error that not enough permissions is occurred. This is a bug of updater?

Execution Options: Deferred with no impersonation
Action Sequence: Install
Function removeFolders()
custActData = Session.Property("CustomActionData")
foldersArray = Split(custActData, "|", -1)
Set objFS = CreateObject("Scripting.FileSystemObject")

For Each folder In foldersArray
smallPath = RemoveTrailingBackslash(folder)
If (objFS.FolderExists(smallPath)) Then
objFS.DeleteFolder smallPath, true
End if
Next
End Function

Function RemoveTrailingBackslash(folderPath)
If Right(folderPath, 1) = "\" Then
RemoveTrailingBackslash = Left(folderPath, Len(folderPath) - 1)
Else
RemoveTrailingBackslash = folderPath
End If
End Function
regards,
Zhang Shangyi
Last edited by z_shangyi on Wed Nov 19, 2008 6:46 pm, edited 1 time in total.

Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact:  Website

Re: This is a bug of updater?

Wed Nov 19, 2008 4:35 pm

Hi,

Please note that a custom action cannot be related to the Updater. Can you please give me more details about the error you are encountering? Also, what folder are you trying to remove?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

z_shangyi
Posts: 27
Joined: Sat Aug 26, 2006 5:44 am

Re: This is a bug of updater?

Wed Nov 19, 2008 5:38 pm

Thank you for your reply so quickly.

I was used to delete APPDIR folder at uninstall. The results is same also when Action Sequence has been changed to InstallFinalize.

However, when do not use updater to upgrade, can be upgraded successful.

Zhang Shangyi

Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact:  Website

Re: This is a bug of updater?

Wed Nov 19, 2008 6:47 pm

Hi,

I think that the problem is cause by the upgrade process. Does the custom action use the condition REMOVE = "ALL". If this is the case and the problem persists, please send us a verbose log of the installation and the AIP you are using to support at advancedinstaller dot com so we can investigate them.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

z_shangyi
Posts: 27
Joined: Sat Aug 26, 2006 5:44 am

Re: This is a bug of updater?

Wed Nov 19, 2008 7:07 pm

Cosmin, Zhank you!

I am sorry. I do not know how to obtain records of the installation of upgrade by Updater.
But, the condition REMOVE = "ALL" has been used for this Custom Action. And this AIP and other files is same as files provided in "Cann't backup an empty registry key!" problem.
http://www.advancedinstaller.com/forums ... 381#p20416

Regards,
Zhang Shangyi

Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact:  Website

Re: This is a bug of updater?

Thu Nov 20, 2008 5:47 pm

Hi,

Code: Select all

I do not know how to obtain records of the installation of upgrade by Updater.
Please note that this behavior is not related to the Updater, it is related to the upgrade process. The Updater simply launches the update. What happens after that is the same as launching the update yourself.

In order to create a verbose log of this upgrade process you can use this command for the update package:

Code: Select all

msiexec /i "C:\example.msi" /L*V example.log
where you replace "C:\example.msi" with the path to the update package.

Please send us this log to support at advancedinstaller dot com so we can investigate it (it should be created on a machine with Windows in English which uses an English locale). Also, can you please specify which custom action shows this behavior?

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”