Stop & Popup dialogbox when (very)silent install is in progress

View previous topic View next topic Go down

Stop & Popup dialogbox when (very)silent install is in progress

Post by PZine on Fri Sep 29, 2017 10:08 am

From Windows XP up to Windows 10 (x86/x64)

Tests on 13.x version of KLCP Mega Installer / Update Packs. (even on 13.5.5 / 13.5.6)

/suppressmsgboxes - don’t work for this issue.

when i have installed old version - e.g. 13.3.3, 13.4.9, 13.5.4 (less then required for current update pack)
I’ve got display msg box, that currently version is.... lower then .... and ask me to visit web site....

when i update 50+ PCs with my scripts using admin$ share (using psexec) this will freezes my working script...

This should be done via exit code ...

e.g.

0 - success
1 - something goes wrong.
2 - to old version is installed for this update pack, use normal installer.
3 - newer version is installed....
etc.

On PCs with Windows XP Pro (32-bit), when I run silently I got msgbox with this OS is not supported., but when I start normally by double clicking on exe file that installer is running fine. - I don’t get it to work.
I use default install options (no ini file used)

PZine

Posts : 6
Join date : 2017-09-29

View user profile

Back to top Go down

Re: Stop & Popup dialogbox when (very)silent install is in progress

Post by Admin on Fri Sep 29, 2017 1:13 pm

/suppressmsgboxes should work. That only has effect in combination with /silent or /verysilent.

Admin
Admin

Posts : 3737
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: Stop & Popup dialogbox when (very)silent install is in progress

Post by PZine on Fri Sep 29, 2017 3:04 pm

Used switches by me: "/verysilent /norestart /suppressmsgboxes" and the window appears on machines when I start script as logged in user. KLCP installer wait to press yes or no... When i start remotely it freeze script until I open next remote window with cmd.exe and execute: "taskkill /im klcp* /f", then my scripts tells me, the exit code form KLCP is 1, and continue own work.

PZine

Posts : 6
Join date : 2017-09-29

View user profile

Back to top Go down

Re: Stop & Popup dialogbox when (very)silent install is in progress

Post by Admin on Sun Oct 01, 2017 12:55 pm

If works here. Double-check if you haven't made a typo.

Admin
Admin

Posts : 3737
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: Stop & Popup dialogbox when (very)silent install is in progress

Post by PZine on Wed Oct 04, 2017 11:47 am

ok. version 13.5.7 and 13.5.8 update pack is no longer display this popus Smile Yupi Smile

/suppressmsgboxes is working fine now. My problem was missing one ")" char... in few lines... and eating one letter "p" in this parametr... Its difficult to see this on FHD 15,6" screen

but on one machines now i have exit code 4 for Mega installer and exit code 1 on update pack..., did someone can give me a exit code lists/table with explain and what this numbers means ?

PZine

Posts : 6
Join date : 2017-09-29

View user profile

Back to top Go down

Re: Stop & Popup dialogbox when (very)silent install is in progress

Post by Admin on Wed Oct 04, 2017 2:10 pm

0 = success
1 = exit during initialization (e.g. because of version check)
4 = error during install

There is a log file in your %temp% folder. That should reveal details about what happened.

Admin
Admin

Posts : 3737
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: Stop & Popup dialogbox when (very)silent install is in progress

Post by PZine on Thu Oct 05, 2017 8:35 am

At the end of log file:
Code:

2017-10-05 08:31:37.801   Warning: SHGetFolderPath failed with code 0x80070002 on folder 0x801C
2017-10-05 08:31:37.841   Starting the installation process.
2017-10-05 08:31:37.861   Fatal exception during installation process (Exception):
                          Internal error: Failed to expand shell folder constant "localappdata"
2017-10-05 08:31:37.861   Exception message:
2017-10-05 08:31:37.861   Defaulting to OK for suppressed message box (OK):
                          Internal error: Failed to expand shell folder constant "localappdata"
2017-10-05 08:31:37.861   Defaulting to OK for suppressed message box (OK):
                          Setup was not completed.
                          
                          Please correct the problem and run Setup again.
2017-10-05 08:31:37.861   Rolling back changes.
2017-10-05 08:31:37.871   Starting the uninstallation process.
2017-10-05 08:31:37.871   Uninstallation process succeeded.
2017-10-05 08:31:37.871   Deinitializing Setup.
2017-10-05 08:31:37.891   Log closed.

Is strange things - but variables and paths from %appdata% and %localappdata% are exist, valid, and fixed on all machines, i (my script) can read/write form/to this folder. at admin/system/services rights

this is happens on computers witch is not joined to my domain all rest (with domain) are fine.

[edit:]
This is only when i run silent install remotly @ system rights (using admin$ share), when i run my script as logged in user (with admin rights) silent install successful pass without any errors.

PZine

Posts : 6
Join date : 2017-09-29

View user profile

Back to top Go down

Re: Stop & Popup dialogbox when (very)silent install is in progress

Post by Admin on Thu Oct 05, 2017 3:09 pm

Next version will fix that error (by catching it).

I don't recommend running installers as a system user. You may get unexpected results. Always try to use a real user account.

Admin
Admin

Posts : 3737
Join date : 2011-06-17

View user profile http://codecs.forumotion.net

Back to top Go down

Re: Stop & Popup dialogbox when (very)silent install is in progress

Post by notcyf on Thu Oct 05, 2017 3:13 pm

Admin wrote:Next version will fix that error (by catching it).

I don't recommend running installers as a system user. You may get unexpected results. Always try to use a real user account.

It will cause issues because when you try to run the program as user, then when it wants admin access to make changes to settings/files it will fail because it needs system access, not admin access, due to the files belonging to system.

notcyf

Posts : 103
Join date : 2017-08-24

View user profile

Back to top Go down

Re: Stop & Popup dialogbox when (very)silent install is in progress

Post by PZine on Thu Oct 05, 2017 3:49 pm

By few tests and simply investigation, i thing that is a innosetup issue, because e.g. PDFCreator 3.0.1 makes almost identical log as K-Lite and testes with admin$ remotly, have exit code 4 with she same log entry - pointed to the same folder name. Probably CDBurnesXP uses innosetup to, but on this package i don't see this issue.

PZine

Posts : 6
Join date : 2017-09-29

View user profile

Back to top Go down

Re: Stop & Popup dialogbox when (very)silent install is in progress

Post by PZine on Thu Oct 12, 2017 9:01 am

Ok. 13.5.9 (Mega installer form given link and official 13.5.9 Update Pack, works fine now, problem is no longer exist on my problematic machines... For example new build of PDF Creator 3.0.2, still have exit code 4... Thank you for your help Smile

PZine

Posts : 6
Join date : 2017-09-29

View user profile

Back to top Go down

Re: Stop & Popup dialogbox when (very)silent install is in progress

Post by Sponsored content


Sponsored content


Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum