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

Errors when opening a project file

Hi,

I am experiencing problems when opening my project files. See the attached files.
How do I repair this please?
N.B The project still builds and installs.

Regards,
John
Attachments
WarnAndAlarm64.aip
(127.06 KiB) Downloaded 27 times
OnOpenErrors.png
OnOpenErrors.png (125.04 KiB) Viewed 1004 times
Liviu
Posts: 1419
Joined: Tue Jul 13, 2021 11:29 am
Contact: Website

Re: Errors when opening a project file

Hello John,

These errors have been fixed in the project attached in the other thread here.

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: Errors when opening a project file

Hi Liviu,

This is a different project file.

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

Re: Errors when opening a project file

Hello John,

Indeed, sorry about that. The projects looked very similar at first glance.

Please find the correct project attached.

Let me know if this helps.

Best regards,
Liviu
Attachments
WarnAndAlarm64.aip
(126.29 KiB) Downloaded 26 times
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Errors when opening a project file

Hi Liviu,

I'm afraid most of the project files are similar in that regard.

I am now experiencing a build error where it seems to be using relative paths to access vbs custom actions and the path seems to be wrong.
Checking builds status
Build required.


[ DefaultBuild ]
Building package:
L:\DD\TOOLS\BTS.Net\MW\Win\OAM Server\Framework4.8\OAM Server006\DropAI\OAMServer64-SetupFiles\OAMServer64.msi

Your project contains the following custom VBScript actions that may not run on future versions of Windows: FormatSchemaVersion.vbs_0C5B2421_5B6E_4971_8D60_F19E34687143_1_25D8082E_, FormatSchemaVersion.vbs, FormatSchemaVersion.vbs_0C5B2421_5B6E_4971_8D60_F19E34687143_1, FormatSchemaVersion.vbs_0C5B2421_5B6E_4971_8D60_F19E34687143, FormatSchemaVersion.vbs_25D8082E_F365_4587_93DF_73520FEC971A, GetPrimarySchemaVersion.vbs_0C5B2421_5B6E_4971_8D60_F19E34687143, GetPrimarySchemaVersion.vbs_0C5B2421_5B6E_4971_8D60_F19E34687143_1, GetPrimarySchemaVersion.vbs_0C5B2421_5B6E_4971_8D60_F19E34687143_1_25D80, SchemaNotSupported_25D8082E_F365_4587_93DF_73520FEC971A, SchemaVersionNotSupported_0C5B2421_5B6E_4971_8D60_F19E34687143, SchemaVersionNotSupported_0C5B2421_5B6E_4971_8D60_F19E34687143_1, SchemaVersionNotSupported_0C5B2421_5B6E_4971_8D60_F19E34687143_1_25D8082
For more details please read this article:
https://www.advancedinstaller.com/vbscr ... cated.html

Prepare build
Detecting MSI incompatible resources
Preparing files
Creating CAB file(s)
Preparing binaries
Creating MSI database
Error calling MSI API: 1627 Method: MsiDatabaseImport Table: ControlCondition. Extended Error:
Write Table IDT: 1: 2216 2: L:\DD\TOOLS\BTS.Net\MW\Win\OAM Server\Framework4.8\OAM Server006\DropAI\OAMServer64-SetupFiles\OAMServer64.msi 3: ControlCondition.idt 4: 17 .
Error details

Build finished because an error was encountered.
OAMServer64.aip
(126.15 KiB) Downloaded 22 times

Also, I have noticed one of the dialog folders in ProgramData has two of the CA's copied there one of which I notice is out of date as I made a change last year which is not in the file i.e. the latest one has: -
' 001 JU 22-Aug-2012 Original.
' 002 JU 23-Oct-2025 Changed SQL Server connect string for Encrypt=optional and driver ODBC Driver 18 for SQL Server.

The one in the dialog directory does not have this change and will therefore fail.

When you attach a CA To the next button does it copy the file from the dialog folder?

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

Re: Errors when opening a project file

Hello John,

The build error was caused by duplicate events in the project.
duplicate.png
duplicate.png (24.55 KiB) Viewed 957 times

Regarding the VBS custom action, when it is triggered from the Next button, the button itself does not copy or select the VBS file. It simply executes the custom action referenced by the corresponding published event.

Please find the corrected project attached and let me know if it now builds successfully on your side.

Best regards,
Liviu
Attachments
OAMServer64 - fixed.aip
(125.47 KiB) Downloaded 27 times
________________________________________
Liviu Sandu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jusher
Posts: 195
Joined: Thu Dec 22, 2011 12:00 pm

Re: Errors when opening a project file

Hi,

Thanks Liviu. I don't know how that was repeated except that I went from 15.X to 23.1.

I will try that.

When you say it executes the vbscript does it include the script as part of the msi as obviously it will not be on the target machine.

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

Re: Errors when opening a project file

Hi Liviu,

Yes this fix has worked.

I suspect I will be in touch with a few more soon.

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

Re: Errors when opening a project file

Hello John,
When you say it executes the vbscript does it include the script as part of the msi as obviously it will not be on the target machine.
If the VBScript is configured as an attached custom action, the source file is embedded directly into the MSI package during the build, but it is not deployed on the target machine together with the application files.

Therefore, the original .vbs file does not need to be present on the target machine for the custom action to run.

Glad to hear the fix worked.

No problem at all. Feel free to send over any other projects or issues you encounter, and I'll be happy to take a look.

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

Return to “Common Problems”