jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

How reboot machine after installing a feature

Mon Nov 08, 2021 12:57 pm

Hello,
I would like to restart the machine after installing a feature. My functionality is in Prerequisites> Feature-based (I cannot check the box "Reboot system after installing this prerequisite").
I want installation to continue after reboot
How can I do it please?
Thank you

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: How reboot machine after installing a feature

Mon Nov 08, 2021 2:00 pm

Hello,

Can you tell me what is the reason why you do not want to use the "Reboot system after installing this prerequisite" option?

Using that option the user will be prompted to reboot the machine after the prerequisite is installed. If the user accepts a reboot, the machine will be automatically restarted and the installation will continue, otherwise the installation will be aborted.

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

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: How reboot machine after installing a feature

Mon Nov 08, 2021 2:06 pm

Hello,

Thank you for your reply.
Precisely, I would like to use this option but I cannot. I have an error (see the image).
https://ibb.co/XbRBvPh
How do I select this checkbox?


Thank you.

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: How reboot machine after installing a feature

Mon Nov 08, 2021 3:02 pm

Hi,

I'm sorry about that, please disregard my last reply as it looks like I was wrong. This option is not supported for "Feature-based" and "Post-install" prerequisites. We will try to update our User guide too.

You can try to add your prerequisites on the "Pre-install" section.

You can also set the Reboot behavior for the main package in the "Install Parameters" page. In this way the installation will be in this order: the prerequisites, the package and then the reboot system.

Hope this helps! If you have any other questions, please don’t hesitate to contact us.

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

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: How reboot machine after installing a feature

Mon Nov 08, 2021 4:11 pm

I checked the box "reboot system after installing this prerequisite" and "always" on pqslODBC_x64 but it does not work.
The system does not restart,
I just saw that when I run the installation it never offers me to install .NET Framework 3.5 and psqlODBC_x64.
At the end of the installation, the feature is not installed.
Why the 2 features in pre-install do not install?
Thank you.

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: How reboot machine after installing a feature

Mon Nov 08, 2021 7:33 pm

I managed to restart the machine after the prerequisites.
But it was no use, after rebooting I don't have my environment variables.
I would like to restart the machine before running the custom scripts to have access to the environment variables?
How can i do?
:| :|

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: How reboot machine after installing a feature

Tue Nov 09, 2021 9:07 am

Hi,
I checked the box "reboot system after installing this prerequisite" and "always" on pqslODBC_x64 but it does not work.
I've tested this with "psqlodbc_13_02_0000" and the reboot worked as expected.
I just saw that when I run the installation it never offers me to install .NET Framework 3.5 and psqlODBC_x64.
Usually this happens when these prerequisites are already installed on the machine and you have the "Install prerequisite based on conditions" enabled.
But it was no use, after rebooting I don't have my environment variables.
In order for me to further investigate this issue, can you please send us the .AIP (setup project) file by email to support at advancedinstaller dot com together with a test case which I can follow and what environment variables/registry key should I check after installing the prerequisites?

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

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: How reboot machine after installing a feature

Tue Nov 09, 2021 10:33 am

Thank you, I sent you an email.

I will explain my problem to you again because I think I misspoke.

I have a problem when I get to custom actions because they don't know the environment variables.
(To check that it works I only execute the first custom action)

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: How reboot machine after installing a feature

Tue Nov 09, 2021 1:33 pm

it drives me crazy...
I cannot restart when I install a feature in feature-based.
I cannot create my environment variables with powershell because the system does not see them (when I do it manually it works)
I cannot restart after installing the features but before executing the customs actions.
i need the environment variables but they are installed at the end.........................
I tried to bind the environment variables to components. When installing the components, no variable is created (custom actions do not see the variables).
I'm almost done but this step is missing.
I do not know what to do.

First Custom action:

Code: Select all

#OpenJDK
$openJdkName = 'OPENJDK_HOME';
$openJdkValue = $programFiles64Folder + 'OpenJDK\jdk-11';

[System.Environment]::SetEnvironmentVariable($openJdkName, $openJdkValue, [System.EnvironmentVariableTarget]::Machine);

$oldPath = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::Machine);
$include = '%' + $openJdkName + '%\bin';
$newPath = $oldPath + ';' + $include;

[Environment]::SetEnvironmentVariable('PATH', $newPath, [System.EnvironmentVariableTarget]::Machine);

#PostgreSQL
$postgresqlName = 'POSTGRESQL_HOME';
$postgresqlValue = $programFiles64Folder + 'PostgreSQL\14';

[System.Environment]::SetEnvironmentVariable($postgresqlName, $postgresqlValue, [System.EnvironmentVariableTarget]::Machine);

$oldPath = [System.Environment]::GetEnvironmentVariable('PATH', [System.EnvironmentVariableTarget]::Machine);
$include = '%' + $postgresqlName + '%\bin';
$newPath = $oldPath + ';' + $include;

[Environment]::SetEnvironmentVariable('PATH', $newPath, [System.EnvironmentVariableTarget]::Machine);
Second Custom action:

Code: Select all

psql -U postgres -d postgres -f $createDatabaseSqlPath <-- psql not recognized

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: How reboot machine after installing a feature

Tue Nov 09, 2021 3:33 pm

Hello,
I tried to bind the environment variables to components. When installing the components, no variable is created (custom actions do not see the variables).
Environment variables that are set during installation are available only after installation. You can read more about this here:
Environment variables.

So a reboot is required.

The Environment variables are added in the "Install Execution Stage" --> "Add resources" action group. This means that even if you reboot the system after the prerequisite is installed, the environment variables will not be available because they were not added yet to the system.

With that being said, a System Environment Variable cannot be referenced by the installation process during which it's created.

In this case, as a solution you can create a completely separate setup package that creates the environment variables instead.
For that project please uncheck the "Register product with Windows Installer" option in the "Product Details" page. In this way that package won't be added in the Control Panel.
Then you can add this package as a pre-install prerequisite (it should be added before the other prerequisites in the "Prerequisites" page list) to your main project with the "Reboot system after installing this prerequisite" option enabled.

Let me know if that helped you!

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

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: How reboot machine after installing a feature

Tue Nov 09, 2021 4:56 pm

Thank you for your reply.
I get an error while installing the .exe for the environment variables
Can you help me please ?

how does the program for environment variables know the installation path?

in builds I selected ".exe".
in install parameters, I checked "run as administrator".
In dialog, I selected, "Silent UI"

in my main project,
in prerequisite, in install conditions, I checked "install prerequisites based on condition",
in setup files, i add /qn in the 3 fields
in properties, I checked the box "reboot system after installing this prerequisites"

Thank you.
=== Verbose logging started: 09/11/2021 20:27:41 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\Users\tlmcom\Desktop\welcom.exe ===
MSI (c) (F8:AC) [20:27:41:615]: SOFTWARE RESTRICTION POLICY: Verifying package --> 'C:\Users\tlmcom\AppData\Roaming\TLM Com\WEL'COM 1.0.0\install\welcom.msi' against software restriction policy
MSI (c) (F8:AC) [20:27:41:615]: Note: 1: 2262 2: DigitalSignature 3: -2147287038
MSI (c) (F8:AC) [20:27:41:615]: SOFTWARE RESTRICTION POLICY: C:\Users\tlmcom\AppData\Roaming\TLM Com\WEL'COM 1.0.0\install\welcom.msi is not digitally signed
MSI (c) (F8:AC) [20:27:41:615]: SOFTWARE RESTRICTION POLICY: C:\Users\tlmcom\AppData\Roaming\TLM Com\WEL'COM 1.0.0\install\welcom.msi is permitted to run at the 'unrestricted' authorization level.
MSI (c) (F8:AC) [20:27:41:631]: Cloaking enabled.
MSI (c) (F8:AC) [20:27:41:631]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (F8:AC) [20:27:41:631]: End dialog not enabled
MSI (c) (F8:AC) [20:27:41:631]: Original package ==> C:\Users\tlmcom\AppData\Roaming\TLM Com\WEL'COM 1.0.0\install\welcom.msi
MSI (c) (F8:AC) [20:27:41:631]: Package we're running from ==> C:\Users\tlmcom\AppData\Roaming\TLM Com\WEL'COM 1.0.0\install\welcom.msi
MSI (c) (F8:AC) [20:27:41:631]: Machine policy value 'DisableUserInstalls' is 0
MSI (c) (F8:AC) [20:27:41:631]: APPCOMPAT: Compatibility mode property overrides found.
MSI (c) (F8:AC) [20:27:41:631]: APPCOMPAT: looking for appcompat database entry with ProductCode '{905FC4B3-55FA-46CA-85C4-28B0E0F9F0F5}'.
MSI (c) (F8:AC) [20:27:41:631]: APPCOMPAT: no matching ProductCode found in database.
MSI (c) (F8:AC) [20:27:41:631]: MSCOREE not loaded loading copy from system32
MSI (c) (F8:AC) [20:27:41:647]: Machine policy value 'TransformsSecure' is 0
MSI (c) (F8:AC) [20:27:41:647]: User policy value 'TransformsAtSource' is 0
MSI (c) (F8:AC) [20:27:41:647]: Note: 1: 2205 2: 3: MsiFileHash
MSI (c) (F8:AC) [20:27:41:647]: Machine policy value 'DisablePatch' is 0
MSI (c) (F8:AC) [20:27:41:647]: Machine policy value 'AllowLockdownPatch' is 0
MSI (c) (F8:AC) [20:27:41:647]: Machine policy value 'DisableMsi' is 0
MSI (c) (F8:AC) [20:27:41:647]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (c) (F8:AC) [20:27:41:647]: User policy value 'AlwaysInstallElevated' is 0
MSI (c) (F8:AC) [20:27:41:647]: Running product '{905FC4B3-55FA-46CA-85C4-28B0E0F9F0F5}' with user privileges: It's not assigned.
MSI (c) (F8:AC) [20:27:41:647]: Machine policy value 'DisableLUAPatching' is 0
MSI (c) (F8:AC) [20:27:41:647]: Machine policy value 'DisableFlyWeightPatching' is 0
MSI (c) (F8:AC) [20:27:41:647]: APPCOMPAT: looking for appcompat database entry with ProductCode '{905FC4B3-55FA-46CA-85C4-28B0E0F9F0F5}'.
MSI (c) (F8:AC) [20:27:41:647]: APPCOMPAT: no matching ProductCode found in database.
MSI (c) (F8:AC) [20:27:41:647]: Transforms are not secure.
MSI (c) (F8:AC) [20:27:41:647]: PROPERTY CHANGE: Adding MsiLogFileLocation property. Its value is 'C:\Users\tlmcom\Desktop\example.log'.
MSI (c) (F8:AC) [20:27:41:647]: No Command Line.
MSI (c) (F8:AC) [20:27:41:647]: PROPERTY CHANGE: Adding PackageCode property. Its value is '{E1A69EB7-DF81-403C-B373-8BAD5123F489}'.
MSI (c) (F8:AC) [20:27:41:647]: Product Code passed to Engine.Initialize: '(none)'
MSI (c) (F8:AC) [20:27:41:647]: Product Code from property table before transforms: '{905FC4B3-55FA-46CA-85C4-28B0E0F9F0F5}'
MSI (c) (F8:AC) [20:27:41:647]: Product Code from property table after transforms: '{905FC4B3-55FA-46CA-85C4-28B0E0F9F0F5}'
MSI (c) (F8:AC) [20:27:41:647]: Product not registered: beginning first-time install
MSI (c) (F8:AC) [20:27:41:647]: PROPERTY CHANGE: Adding ProductState property. Its value is '-1'.
MSI (c) (F8:AC) [20:27:41:647]: Entering CMsiConfigurationManager::SetLastUsedSource.
MSI (c) (F8:AC) [20:27:41:647]: User policy value 'SearchOrder' is 'nmu'
MSI (c) (F8:AC) [20:27:41:647]: Adding new sources is allowed.
MSI (c) (F8:AC) [20:27:41:647]: PROPERTY CHANGE: Adding PackagecodeChanging property. Its value is '1'.
MSI (c) (F8:AC) [20:27:41:647]: Package name extracted from package path: 'welcom.msi'
MSI (c) (F8:AC) [20:27:41:647]: Package to be registered: 'welcom.msi'
MSI (c) (F8:AC) [20:27:41:647]: Note: 1: 2262 2: AdminProperties 3: -2147287038
MSI (c) (F8:AC) [20:27:41:647]: Machine policy value 'AlwaysInstallElevated' is 0
MSI (c) (F8:AC) [20:27:41:647]: User policy value 'AlwaysInstallElevated' is 0
MSI (c) (F8:AC) [20:27:41:647]: Running product '{905FC4B3-55FA-46CA-85C4-28B0E0F9F0F5}' with user privileges: It's not assigned.
MSI (c) (F8:AC) [20:27:41:647]: PROPERTY CHANGE: Adding MsiSystemRebootPending property. Its value is '1'.
MSI (c) (F8:AC) [20:27:41:647]: TRANSFORMS property is now:
MSI (c) (F8:AC) [20:27:41:647]: PROPERTY CHANGE: Adding VersionDatabase property. Its value is '200'.
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\AppData\Roaming
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\Favorites
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\AppData\Roaming\Microsoft\Windows\Network Shortcuts
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\Documents
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\AppData\Roaming\Microsoft\Windows\Recent
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\AppData\Roaming\Microsoft\Windows\SendTo
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\AppData\Roaming\Microsoft\Windows\Templates
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\ProgramData
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\AppData\Local
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\Pictures
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu\Programs
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Start Menu
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\Public\Desktop
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Administrative Tools
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\AppData\Roaming\Microsoft\Windows\Start Menu\Programs
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\AppData\Roaming\Microsoft\Windows\Start Menu
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Users\tlmcom\Desktop
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\ProgramData\Microsoft\Windows\Templates
MSI (c) (F8:AC) [20:27:41:647]: SHELL32::SHGetFolderPath returned: C:\Windows\Fonts
MSI (c) (F8:AC) [20:27:41:647]: Note: 1: 2898 2: MS Sans Serif 3: MS Sans Serif 4: 0 5: 16
MSI (c) (F8:AC) [20:27:41:662]: MSI_LUA: Setting AdminUser property to 1 because this is the client or the user has already permitted elevation
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding AdminUser property. Its value is '1'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding Privileged property. Its value is '1'.
MSI (c) (F8:AC) [20:27:41:662]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding USERNAME property. Its value is 'tlmcom'.
MSI (c) (F8:AC) [20:27:41:662]: Note: 1: 1402 2: HKEY_CURRENT_USER\Software\Microsoft\MS Setup (ACME)\User Info 3: 2
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding DATABASE property. Its value is 'C:\Users\tlmcom\AppData\Roaming\TLM Com\WEL'COM 1.0.0\install\welcom.msi'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding OriginalDatabase property. Its value is 'C:\Users\tlmcom\AppData\Roaming\TLM Com\WEL'COM 1.0.0\install\welcom.msi'.
MSI (c) (F8:AC) [20:27:41:662]: Machine policy value 'MsiDisableEmbeddedUI' is 0
MSI (c) (F8:AC) [20:27:41:662]: EEUI - Disabling MsiEmbeddedUI due to existing external or embedded UI
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding SourceDir property. Its value is 'C:\Users\tlmcom\AppData\Roaming\TLM Com\WEL'COM 1.0.0\install\'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding SOURCEDIR property. Its value is 'C:\Users\tlmcom\AppData\Roaming\TLM Com\WEL'COM 1.0.0\install\'.
MSI (c) (F8:BC) [20:27:41:662]: PROPERTY CHANGE: Adding VersionHandler property. Its value is '5.00'.
=== Début de l'enregistrement: 09/11/2021 20:27:41 ===
MSI (c) (F8:AC) [20:27:41:662]: Note: 1: 2262 2: PatchPackage 3: -2147287038
MSI (c) (F8:AC) [20:27:41:662]: Machine policy value 'DisableRollback' is 0
MSI (c) (F8:AC) [20:27:41:662]: User policy value 'DisableRollback' is 0
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding UILevel property. Its value is '5'.
MSI (c) (F8:AC) [20:27:41:662]: Note: 1: 2203 2: C:\Windows\Installer\inprogressinstallinfo.ipi 3: -2147287038
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT property. Its current value is '1000'. Its new value: '601'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT64 property. Its current value is '1000'. Its new value: '601'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '0'. Its new value: '14'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '14'. Its new value: '13'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '13'. Its new value: '12'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '12'. Its new value: '11'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '11'. Its new value: '10'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '10'. Its new value: '9'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '9'. Its new value: '8'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '8'. Its new value: '7'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '7'. Its new value: '6'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '6'. Its new value: '5'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '5'. Its new value: '4'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '4'. Its new value: '3'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '3'. Its new value: '2'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '2'. Its new value: '1'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '1'. Its new value: '0'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT property. Its current value is '601'. Its new value: '600'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT64 property. Its current value is '601'. Its new value: '600'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '0'. Its new value: '14'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '14'. Its new value: '13'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '13'. Its new value: '12'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '12'. Its new value: '11'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '11'. Its new value: '10'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '10'. Its new value: '9'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '9'. Its new value: '8'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '8'. Its new value: '7'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '7'. Its new value: '6'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '6'. Its new value: '5'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '5'. Its new value: '4'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '4'. Its new value: '3'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '3'. Its new value: '2'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '2'. Its new value: '1'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '1'. Its new value: '0'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT property. Its current value is '600'. Its new value: '502'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT64 property. Its current value is '600'. Its new value: '502'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '0'. Its new value: '14'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '14'. Its new value: '13'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '13'. Its new value: '12'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '12'. Its new value: '11'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '11'. Its new value: '10'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '10'. Its new value: '9'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '9'. Its new value: '8'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '8'. Its new value: '7'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '7'. Its new value: '6'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '6'. Its new value: '5'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '5'. Its new value: '4'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '4'. Its new value: '3'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '3'. Its new value: '2'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '2'. Its new value: '1'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '1'. Its new value: '0'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT property. Its current value is '502'. Its new value: '501'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT64 property. Its current value is '502'. Its new value: '501'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '0'. Its new value: '14'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '14'. Its new value: '13'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '13'. Its new value: '12'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '12'. Its new value: '11'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '11'. Its new value: '10'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '10'. Its new value: '9'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '9'. Its new value: '8'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '8'. Its new value: '7'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '7'. Its new value: '6'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '6'. Its new value: '5'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '5'. Its new value: '4'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '4'. Its new value: '3'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '3'. Its new value: '2'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '2'. Its new value: '1'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '1'. Its new value: '0'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT property. Its current value is '501'. Its new value: '500'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT64 property. Its current value is '501'. Its new value: '500'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '0'. Its new value: '14'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '14'. Its new value: '13'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '13'. Its new value: '12'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '12'. Its new value: '11'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '11'. Its new value: '10'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '10'. Its new value: '9'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '9'. Its new value: '8'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '8'. Its new value: '7'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '7'. Its new value: '6'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '6'. Its new value: '5'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '5'. Its new value: '4'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '4'. Its new value: '3'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '3'. Its new value: '2'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '2'. Its new value: '1'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '1'. Its new value: '0'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT property. Its current value is '500'. Its new value: '400'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT64 property. Its current value is '500'. Its new value: '400'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '0'. Its new value: '14'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '14'. Its new value: '13'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '13'. Its new value: '12'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '12'. Its new value: '11'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '11'. Its new value: '10'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '10'. Its new value: '9'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '9'. Its new value: '8'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '8'. Its new value: '7'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '7'. Its new value: '6'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '6'. Its new value: '5'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '5'. Its new value: '4'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '4'. Its new value: '3'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '3'. Its new value: '2'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '2'. Its new value: '1'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying ServicePackLevel property. Its current value is '1'. Its new value: '0'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT property. Its current value is '400'. Its new value: '1000'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Modifying VersionNT64 property. Its current value is '400'. Its new value: '1000'.
MSI (c) (F8:AC) [20:27:41:662]: MsiOpenPackageEx is returning 0
MSI (c) (F8:AC) [20:27:41:662]: MsiOpenPackage is returning 0
MSI (c) (F8:AC) [20:27:41:662]: Note: 1: 2205 2: 3: MultipleInstancesProps
MSI (c) (F8:AC) [20:27:41:662]: Note: 1: 2228 2: 3: MultipleInstancesProps 4: SELECT `PropertyValue` FROM `MultipleInstancesProps`
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding CLIENTPROCESSID property. Its value is '760'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding PRIMARYFOLDER property. Its value is 'APPDIR'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding AI_MISSING_PREREQS property. Its value is 'WEL'COM - Variables d'environnements'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding AI_FOUND_PREREQS property. Its value is 'psqlODBC_x64'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding AI_BOOTSTRAPPER property. Its value is '1'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding AI_DETECTED_INTERNET_CONNECTION property. Its value is '1'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding AI_SETUPEXEPATH property. Its value is 'C:\Users\tlmcom\Desktop\welcom.exe'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding SETUPEXEDIR property. Its value is 'C:\Users\tlmcom\Desktop\'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding EXE_CMD_LINE property. Its value is '/exenoupdates /forcecleanup /wintime 1636485146 /L*V "example.log" '.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding AI_IE_Ver property. Its value is '11'.
MSI (c) (F8:AC) [20:27:41:662]: PROPERTY CHANGE: Adding AIEXTERNALUI property. Its value is '5'.
MSI (c) (F8:AC) [20:27:41:662]: Doing action: AI_DpiContentScale
Début de l'action: 20:27:41: AI_DpiContentScale.
MSI (c) (F8:38) [20:27:41:709]: Invoking remote custom action. DLL: C:\Users\tlmcom\AppData\Local\Temp\MSIF832.tmp, Entrypoint: DpiContentScale
MSI (c) (F8:F0) [20:27:41:709]: Cloaking enabled.
MSI (c) (F8:F0) [20:27:41:709]: Attempting to enable all disabled privileges before calling Install on Server
MSI (c) (F8:F0) [20:27:41:725]: Connected to service for CA interface.
MSI (c) (F8!A4) [20:27:41:787]: PROPERTY CHANGE: Adding AI_SYSTEM_DPI property. Its value is '96'.
MSI (c) (F8!A4) [20:27:41:787]: PROPERTY CHANGE: Adding AI_SYSTEM_DPI_SCALE property. Its value is '100'.
L'action s'est terminée à 20:27:41: AI_DpiContentScale. Valeur de retour: 1
MSI (c) (F8:AC) [20:27:44:600]: Doing action: FatalError
Début de l'action: 20:27:44: FatalError.
L'action s'est terminée à 20:27:46: FatalError. Valeur de retour: 1
MSI (c) (F8:AC) [20:27:46:147]: PROPERTY CHANGE: Deleting AI_BOOTSTRAPPER property. Its current value is '1'.
MSI (c) (F8:AC) [20:27:46:147]: Doing action: AI_SHOW_LOG
Début de l'action: 20:27:46: AI_SHOW_LOG.
MSI (c) (F8:A0) [20:27:46:193]: Invoking remote custom action. DLL: C:\Users\tlmcom\AppData\Local\Temp\MSI9A7.tmp, Entrypoint: LaunchLogFile
L'action s'est terminée à 20:27:47: AI_SHOW_LOG. Valeur de retour: 1
MSI (c) (F8:AC) [20:27:47:037]: Doing action: FatalError
Début de l'action: 20:27:47: FatalError.
L'action s'est terminée à 20:27:47: FatalError. Valeur de retour: 1
MSI (c) (F8:AC) [20:27:47:037]: Doing action: AI_RemoveTempFiles
Début de l'action: 20:27:47: AI_RemoveTempFiles.
MSI (c) (F8:38) [20:27:47:084]: Invoking remote custom action. DLL: C:\Users\tlmcom\AppData\Local\Temp\MSID23.tmp, Entrypoint: RemoveTempFiles
MSI (c) (F8!6C) [20:27:47:100]: PROPERTY CHANGE: Adding AITEMPFILESREMOVED property. Its value is 'YES'.
L'action s'est terminée à 20:27:47: AI_RemoveTempFiles. Valeur de retour: 1
MSI (c) (F8:AC) [20:27:47:115]: Doing action: FatalError
Début de l'action: 20:27:47: FatalError.
L'action s'est terminée à 20:27:47: FatalError. Valeur de retour: 1
MSI (c) (F8:AC) [20:27:47:115]: Doing action: AI_CleanPrereq
Début de l'action: 20:27:47: AI_CleanPrereq.
MSI (c) (F8:F4) [20:27:47:147]: Invoking remote custom action. DLL: C:\Users\tlmcom\AppData\Local\Temp\MSID72.tmp, Entrypoint: CleanPrereq
L'action s'est terminée à 20:27:47: AI_CleanPrereq. Valeur de retour: 1
MSI (c) (F8:AC) [20:27:47:178]: Doing action: FatalError
Début de l'action: 20:27:47: FatalError.
L'action s'est terminée à 20:27:47: FatalError. Valeur de retour: 2
MSI (c) (F8:14) [20:27:47:193]: Destroying RemoteAPI object.
MSI (c) (F8:F0) [20:27:47:193]: Custom Action Manager thread ending.
=== Verbose logging stopped: 09/11/2021 20:27:47 ===

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: How reboot machine after installing a feature

Wed Nov 10, 2021 2:24 pm

Hi,

I am not quite able to replicate the behavior you described. On my machine everything worked as expected with a sample project.

In order for me to further investigate this, could you please create a sample project that reproduces this and forward it to me together with a test case which I can follow in order to reproduce the problem?

You can attach the sample either here or you can send it by e-mail at support at advancedinstaller dot com.

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

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: How reboot machine after installing a feature

Wed Nov 10, 2021 7:29 pm

Ok thank you.
I sent you an e-mail

Liviu
Posts: 1035
Joined: Tue Jul 13, 2021 11:29 am
Contact:  Website

Re: How reboot machine after installing a feature

Thu Nov 11, 2021 1:29 pm

Hello,

I have replied to you over the email. The problem was that you checked the "Install prerequisite based on conditions" option but you didn't added any condition.

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

jcouturier
Posts: 27
Joined: Thu Jul 01, 2021 3:33 pm

Re: How reboot machine after installing a feature

Thu Nov 11, 2021 8:23 pm

it works perfectly.
thank you so much
:)

Return to “Building Installers”