Problems with properties - Advanced Installer Community
Antarctica
Posts: 110
Joined: Tue Jul 08, 2014 9:24 am

Problems with properties

In Advanced Installer 12.6.1, I have massive problems with properties.

I have defined properties that have a default value.

Like so:
Setup_Properties_defaultValues.png
Setup_Properties_defaultValues.png (3.88 KiB) Viewed 3598 times
I have not changed the OpenParen/CloseParen properties anywhere.

Yet, when I define a text file update:

Code: Select all

[OpenParen]
	"": [OpenParen]
		"databases": [OpenParen]
			"timeflex": "user id=[CONNSTRUSER];password=[CONNSTRPASS];server=[SQLSERVER];database=[SQLDB];connection timeout=10"
		[CloseParen],
		"exchange": [OpenParen]
			"privilegedUserName": "[ADTIMEFLEX]",
			"privilegedUserPass": "[ADTIMEFLEXPWD]"
		[CloseParen],
		"jobs": [OpenParen]
			"dispatcherGroup": [OpenParen]
				"dispatcherJob": [OpenParen]
					"class": "DispatcherJob"
				[CloseParen]
			[CloseParen]
		[CloseParen]
	[CloseParen]
[CloseParen]
The resulting file is:

Code: Select all

Property.OpenParen
	"": Property.OpenParen
		"databases": Property.OpenParen
			"timeflex": "user id=;password=;server=sqlserv2;database=tf150;connection timeout=10"
		Property.CloseParen,
		"exchange": Property.OpenParen
			"privilegedUserName": "timeflex",
			"privilegedUserPass": "test"
		Property.CloseParen,
		"jobs": Property.OpenParen
			"dispatcherGroup": Property.OpenParen
				"dispatcherJob": Property.OpenParen
					"class": "DispatcherJob"
				Property.CloseParen
			Property.CloseParen
		Property.CloseParen
	Property.CloseParen
Property.CloseParen
The verbose log tells me that the default values of CloseParen and OpenParen are not set correctly.

Code: Select all

Property(S): OpenParen = Property.OpenParen
...
Property(C): OpenParen = Property.OpenParen
Furthermore, the verbose log tells me that [CONNSTRUSER] and [CONNSTRPASS] contain values, although these values are no longer set correctly in this file and also no longer set correctly in an XML update (the latter worked before I added the new text file update):

Code: Select all

Aktion gestartet um 17:50:07: ReplaceConnectionString.
MSI (c) (C4!98) [17:50:07:808]: PROPERTY CHANGE: Adding CONNSTRUSER property. Its value is 'sa'.
...
MSI (s) (6C!E8) [18:05:27:837]: PROPERTY CHANGE: Adding AI_TxtUpdaterConfig property. Its value is 'ProductCode{CFD37785-EA7C-44CE-95EA-F0B04BA80BA3}RollbackDisabledAI_TEST_TXT_UPDATE_FILE_NAMEAI_TEST_TXT_UPDATE_DIRECTORYindex.htmlAI_ExePathindex.htmlC:\inetpub\wwwroot\timeflex\timeflex\17cache.appcacheAI_ExePathcache.appcacheC:\inetpub\wwwroot\timeflex\timeflex\17YourFile.txtdefaultplainscrollbottom.png_1config.jsonC:\inetpub\wwwroot\timeflex\Service\25index.html<html><html manifest="cache.appcache">00-1cache.appcacheCACHE MANIFEST
# TIMEFLEX 1.5.0

CACHE:
index.html
app.js

NETWORK:
*16001YourFile.txtProperty.OpenParen
	"": Property.OpenParen
		"databases": Property.OpenParen
			"timeflex": "user id=;password=;server=sqlserv2;database=tf150;connection timeout=10"
		Property.CloseParen,
		"exchange": Property.OpenParen
			"privilegedUserName": "timeflex",
			"privilegedUserPass": "Aktion 18:05:27: AI_TxtUpdaterConfig. Textdateiaktualisierungen ausführen
Aktion gestartet um 18:05:27: AI_TxtUpdaterConfig.
AI_TxtUpdaterConfig: Aktualisiere Textdatei: "Textdateiaktualisierungen ausführen"
So it seems
- the default value of predefined properties is not set correctly and
- properties can lose their values during text file update
Antarctica
Posts: 110
Joined: Tue Jul 08, 2014 9:24 am

Re: Problems with properties

It seems the issue has been caused by adding an unused dialog and has been fixed by removing that dialog again.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Problems with properties

Hello,

I'm glad you got this working by yourself. Also, thank you for your follow up.

If you have other questions, please let me know.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”