Property default value not observed by Installer 13.4 - Advanced Installer Community
Antarctica
Posts: 110
Joined: Tue Jul 08, 2014 9:24 am

Property default value not observed by Installer 13.4

This is our property default value setting:

Image Image

We don't have an UI control (yet) that changes this value, neither is it touched by a custom action or set in any other way in our installer.

On our test server, the SQLAUTHN property is always set to "1" correctly. On a customer server, this wasn't always the case: the first 3 tries of running the setup, the value wasn't 1, and the setup failed. In the fourth, the value was set to 1 correctly, and the setup ran through.

Excerpts from the verbose log of the third try; containing every position where the string "SQLAUTHN" occurs:
MSI (s) (EC!9C) [07:33:25:651]: PROPERTY CHANGE: Adding AI_SqlRollback property. Its value is 'WindowsAuthConnectionSQLAUTHN <> "1"0SQL ServerSQL-Timeflex\timeflex1433timeflexadmin30160UpdateVersion_1WindowsAuthConnection1GO-- Inline SQL script

MSI (s) (EC!9C) [07:33:25:698]: PROPERTY CHANGE: Adding AI_SqlConfig property. Its value is 'WindowsAuthConnectionSQLAUTHN <> "1"0SQL ServerSQL-Timeflex\timeflex1433timeflexadmin30160UpdateVersion_1WindowsAuthConnection1GO-- Inline SQL script

MSI (s) (EC!9C) [07:33:25:714]: PROPERTY CHANGE: Deleting AI_SqlConfig property. Its current value is 'WindowsAuthConnectionSQLAUTHN <> "1"0SQL ServerSQL-Timeflex\timeflex1433timeflexadmin30160UpdateVersion_1WindowsAuthConnection1GO-- Inline SQL script


1: Konfiguriere Windows-Features.
MSI (s) (EC:98) [07:35:34:419]: Executing op: ActionStart(Name=AI_WinOptFeaturesConfig,Description=Konfiguriere Windows-Features.,Template=Konfiguriere Windows-Features.)
1: Führe Rollback auf konfigurierte Windows-Features durch.
MSI (s) (EC:98) [07:35:34:419]: Executing op: ActionStart(Name=AI_WinOptFeaturesRollback,Description=Führe Rollback auf konfigurierte Windows-Features durch.,Template=Führe Rollback auf konfigurierte Windows-Features durch.)
MSI (s) (EC:98) [07:35:34:419]: Executing op: CustomActionRollback(Action=AI_WinOptFeaturesRollback,ActionType=11521,Source=BinaryData,Target=**********,CustomActionData=**********)
MSI (s) (EC:38) [07:35:34:419]: Invoking remote custom action. DLL: C:\Windows\Installer\MSI2F3E.tmp, Entrypoint: OnWinOptFeaturesRollback
MSI (s) (EC:98) [07:35:39:591]: Executing op: End(Checksum=0,ProgressTotalHDWord=0,ProgressTotalLDWord=0)
MSI (s) (EC:98) [07:35:39:591]: Error in rollback skipped. Return: 5
MSI (s) (EC:98) [07:35:39:591]: Note: 1: 2318 2:
MSI (s) (EC:98) [07:35:39:591]: No System Restore sequence number for this installation.
MSI (s) (EC:98) [07:35:39:591]: Unlocking Server
MSI (s) (EC:98) [07:35:39:591]: PROPERTY CHANGE: Deleting UpdateStarted property. Its current value is '1'.
Aktion beendet um 7:35:39: INSTALL. Rückgabewert 3.
Property(S): AppsShutdownOption = All
Property(S): APPDIR =
...
Property(S): SQLAUTHN = Property.SQLAUTHN
So, this property has not been modified in the installer, but still it isn't set to the default value I configured, and I would like to know why.

So, I suspect that our Table is missing some action. I made a test installer with a similar property and let it run, and the verbose log would show this:
Property(S): PrimaryVolumeSpaceRemaining = 0
Property(S): SOURCEDIR = C:\Users\urban\AppData\Roaming\Your Company\Default Property Test 1.0.0\install\679C3EC\
Property(S): SourcedirProduct = {40024358-4DB1-4278-B683-3FD98679C3EC}
Property(S): ProductToBeRegistered = 1
MSI (s) (30:DC) [11:57:48:973]: MainEngineThread is returning 0
MSI (s) (30:70) [11:57:48:976]: RESTART MANAGER: Session closed.
MSI (s) (30:70) [11:57:48:980]: User policy value 'DisableRollback' is 0
MSI (s) (30:70) [11:57:48:980]: Machine policy value 'DisableRollback' is 0
MSI (s) (30:70) [11:57:48:980]: Incrementing counter to disable shutdown. Counter after increment: 0
MSI (s) (30:70) [11:57:48:980]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (30:70) [11:57:48:982]: Note: 1: 2265 2: 3: -2147287035
MSI (s) (30:70) [11:57:48:982]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2
MSI (s) (30:70) [11:57:48:983]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (s) (30:70) [11:57:48:983]: Destroying RemoteAPI object.
MSI (s) (30:B4) [11:57:48:983]: Custom Action Manager thread ending.
MSI (c) (D0:50) [11:57:48:986]: Back from server. Return value: 0
MSI (c) (D0:50) [11:57:48:987]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1
MSI (c) (D0:50) [11:57:48:988]: PROPERTY CHANGE: Deleting SECONDSEQUENCE property. Its current value is '1'.
Action ended 11:57:48: ExecuteAction. Return value 1.
MSI (c) (D0:50) [11:57:48:991]: Doing action: ExitDialog
Action 11:57:48: ExitDialog.
Action start 11:57:48: ExitDialog.
Info 2826. Control BottomLine on dialog ExitDialog extends beyond the boundaries of the dialog to the right by 3 pixels.
Action 11:57:49: ExitDialog. Dialog created
Action ended 11:57:49: ExitDialog. Return value 1.
Action ended 11:57:49: INSTALL. Return value 1.
MSI (c) (D0:50) [11:57:49:720]: Destroying RemoteAPI object.
MSI (c) (D0:3C) [11:57:49:722]: Custom Action Manager thread ending.
Property(C): AppsShutdownOption = All
Property(C): APPDIR = C:\Program Files (x86)\Your Company\Default Property Test\
...
Property(C): TestProperty = 2
while our app's verbose log does not contain a single line with Property(C), only with Property(S).
Property(S): AppsShutdownOption = All
Property(S): APPDIR = C:\inetpub\wwwroot\timeflex\
Property(S): DiskPrompt = [1]
...
Property(S): SQLAUTHN = Property.SQLAUTHN
- What does the (C) and the (S) mean?
- Why is the AppsShutdownOption a Property(S) in our old installer, and a Property(C) in a new installer
- Am I possibly missing a certain Table Editor entry, where the property is set?

I should mention that our installer aip has been upgraded from 11.5 over 12.3(?) and 12.6 to 13.4, while the test installer is created brand-new with 13.4. Not sure whether this is an issue here...
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Property default value not observed by Installer 13.4

Hi,

I'm not sure why you encounter this problem. A full verbose log of the installation or maybe a sample that reproduces the problem would help us to better investigate the problem.
- What does the (C) and the (S) mean?
The (C) and (S) letters stands for "Client" and "Server", respectively. "Client" is related to the "UI" stage, while "Server" is related to the "Install" stage.
- Why is the AppsShutdownOption a Property(S) in our old installer, and a Property(C) in a new installer
This may happen if the old installer was installed with Basic UI or in silent mode, so that only the "Install" stage was executed.
- Am I possibly missing a certain Table Editor entry, where the property is set?
I don't think so. But it seems that the "SQLAUTHN" property is set during the "UI" (dialogs) stage and, as I mentioned above, your old package seems to be installed without UI, hence, that property is not set as expected.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Antarctica
Posts: 110
Joined: Tue Jul 08, 2014 9:24 am

Re: Property default value not observed by Installer 13.4

Thank you for your help, very much appreciated.

Our customer has provided to me the verbose log with the restriction not to provide it to a third party, and I cannot reproduce the behaviour in our test environment. I have asked another customer who just came with the same problem to provide to me a verbose.log, possibly he won't apply any restrictions so I could provide that to you.

Our installer has "Limit to basic user interface" disabled. The user didn't use any command-line switches. Can Windows Installer itself decide whether to use Basic UI or not, e.g. based on available graphics driver or resolution? And then, I found in the very same verbose.log, these two entries:
MSI (s) (EC:98) [07:33:24:042]: Machine policy value 'MsiDisableEmbeddedUI' is 0
MSI (s) (EC:98) [07:33:24:042]: EEUI - Disabling MsiEmbeddedUI for service because it's not a quiet/basic install
And why would the properties from "Install Parameters" -> "Properties" not be set in Basic UI mode?

EDIT: That was quick, here's the verbose.log.
Attachments
verbose.zip
(255.15 KiB) Downloaded 319 times
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Property default value not observed by Installer 13.4

Hi,

I looked over the log file that you sent and, indeed, the installation is done with Full UI. As far as I know, Windows Installer does not automatically use Basic UI based on some conditions.
And why would the properties from "Install Parameters" -> "Properties" not be set in Basic UI mode?
The properties defined in the "Install Parameters" page are set regardless of the UI mode. However, that property does not seem to be defined in the "Install Parameters" page. It is used on one of the dialogs that is, probably, skipped based on some conditions or options chosen by the user during the installation.

The property is displayed in the "Install Parameters" page because the "Show properties with empty value or used in dialog controls" option is checked at the bottom of the page.

To define it in the "Install Parameters" page you need to first create it there and then use it on the dialogs.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Antarctica
Posts: 110
Joined: Tue Jul 08, 2014 9:24 am

Re: Property default value not observed by Installer 13.4

I don't have any unused dialogs, although one or the other may be skipped during setup.
The SQLAUTHN property is not (yet) used anywhere in the dialogs. It is set in Properties, where I initially defined it; and then, it is used as a condition in my SQL scripts.

Image
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Property default value not observed by Installer 13.4

Hello,

Can you send us the AIP (project file) to support at advancedinstaller dot com so we can investigate its settings? That way we can fully check all the project components which could set this property.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”