jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Custom actions are repeated with a guid in the name

ScheduledRemoteCapture64.aip
(119.49 KiB) Downloaded 43 times
Hi,

I have a project that requires a number of custom actions, some executed in-line and others via an attached VBScript file.
I have noticed that the custom actions e.g. on the next tab are missing or have a guid in the name.
See attached the file. You can see that Test_ODBC_Connection has this 'problem'. This has been converted from V16.7/8 to 23.1.
I don't know whether this has caused the problem. The script builds but I don't know whether it runs.

Regards,
John
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Custom actions are repeated with a guid in the name

Hello John,

The custom actions with a number appended to their name are added automatically when you configure multiple Test SQL Connection actions in the SQL Databases page. Their corresponding entries in the Custom Actions page will therefore appear as:
TestODBCConnection
TestODBCConnection_1
TestODBCConnection_2
and so on.
sql connection.png
sql connection.png (45.1 KiB) Viewed 1166 times

You can remove these additional test connections if they are not needed.

Can you please test again using the attached project and see if everything is working as it should?
ScheduledRemoteCapture64 - Copy.aip
(116.1 KiB) Downloaded 23 times

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Custom actions are repeated with a guid in the name

Hi,

Maybe TestODBCConnection was a bad example.

Look at FormatSchemaVersion.vbs_0C5B2421_5B6E_4971_8D60_F19E34687143_1

There are a number of FormatSchemaVersion.vbs_<Guid> entries. This is a CA (vbs) file. It is attached to the next button of a dialog.
Why the multiple entries?

I haven't tried it to see if it installs.

Regards,
John
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Custom actions are repeated with a guid in the name

Hello John,

Thank you for the additional details.

Indeed, this is quite strange, and I will investigate it further.

Do you happen to have a backup of the project saved with version 16.7/16.8 that you could forward to me?

You can attach it here or send it by email to support at advancedinstaller dot com.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Custom actions are repeated with a guid in the name

Copy of 16.8 version attached.
ScheduledRemoteCapture64.aip
(162.43 KiB) Downloaded 20 times
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Custom actions are repeated with a guid in the name

Hello John,

It appears that the duplicated custom actions were already present in the older version of the project, so they were not introduced during the conversion, at least not when converting from version 16.9 to 23.1.

I tried to remove the duplicates based on my understanding of your custom action logic. However, since this depends on how you expect the actions to behave, I cannot guarantee that the remaining configuration matches your intended workflow.

I also noticed that the duplicated custom actions were using different conditions:

Code: Select all

SqlConnectionOK = "1"
and

Code: Select all

SqlConnectionOK = "1" AND (&SQLINSTALLATION = 3)
Therefore, I am not sure which one should be kept, as this depends on your intended installation logic.
sqlcondition.png
sqlcondition.png (62.46 KiB) Viewed 1097 times

The red loading error warnings have also been fixed in the attached project.
ScheduledRemoteCapture64.aip
(115.43 KiB) Downloaded 22 times

Could you please build the project and test the resulting setup package?

Let us know if you encounter any further issues.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Custom actions are repeated with a guid in the name

Hi Liviu,

This built without error once I had adjusted relative paths to files.

Thankyou,
John
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Custom actions are repeated with a guid in the name

Hello John,

Glad to hear the project now builds successfully.

Please don't hesitate to reach out if you encounter any other issues.

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Custom actions are repeated with a guid in the name

Hi Liviu,

It appears that when we go from a very old version of AI (12.8) and upgrade to 23.1, the default values of properties attached to UI widgets like textboxes are blank. Have a look at SQL usernames and passwords in primary server dialogue for example.

Regards,
John
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Custom actions are repeated with a guid in the name

Hello John,

I opened the oldest project shared in this thread (saved with Advanced Installer 16.8) using version 24.1, and the default values appear to be preserved correctly.

Could you also send me the project saved with Advanced Installer 12.8 so I can investigate further?

Best regards,
Liviu
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”