PDA

View Full Version : Error 1721 When Installing



rguggisberg
01-17-2019, 03:09 PM
I have a Basic MSI project that had been working and somehow I must have inadvertently changed something, as I now get 1721 error when installing.
I am confident it is not the target machine because I can install successfully with a previous version of that installer.
My 'Required Execution Level' is Administrator.

I tried dropping back to the previous .ism file and building with that... still get the same 1721 error on this CA.

CA: CACert_1_Wire_Driver
Executable File Name: <SystemFolder>\certutil.exe
CommandLine: -addstore "TrustedPublisher" "[SUPPORTDIR]\MaximCert.cer"
Immediate Execution in UI Sequence After SetupProgress

The log shows:
MSI (c) (C4:88) [10:08:00:363]: Doing action: CACert_1_Wire_Driver
Action 10:08:00: CACert_1_Wire_Driver.
Action start 10:08:00: CACert_1_Wire_Driver.
MSI (c) (C4:88) [10:08:00:363]: Note: 1: 1721 2: CACert_1_Wire_Driver 3: C:\Users\ADMINI~1\AppData\Local\Temp\2\MSI9520.tmp 4: -addstore "TrustedPublisher" "C:\Users\ADMINI~1\AppData\Local\Temp\2\{2C13243C-7945-4FAA-A988-7C63AB821F7E}\MaximCert.cer"
Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: CACert_1_Wire_Driver, location: C:\Users\ADMINI~1\AppData\Local\Temp\2\MSI9520.tmp, command: -addstore "TrustedPublisher" "C:\Users\ADMINI~1\AppData\Local\Temp\2\{2C13243C-7945-4FAA-A988-7C63AB821F7E}\MaximCert.cer"
MSI (c) (C4:88) [10:09:39:648]: Product: PAR Express -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: CACert_1_Wire_Driver, location: C:\Users\ADMINI~1\AppData\Local\Temp\2\MSI9520.tmp, command: -addstore "TrustedPublisher" "C:\Users\ADMINI~1\AppData\Local\Temp\2\{2C13243C-7945-4FAA-A988-7C63AB821F7E}\MaximCert.cer"

Note that when it stops on the error I am able to execute this command successfully from the command line.
I have a Basic MSI project that had been working and somehow I must have inadvertently changed something, as I now get 1721 error when installing.
I am confident it is not the target machine because I can install successfully with a previous version of that installer.
My 'Required Execution Level' is Administrator.

I tried dropping back to the previous .ism file and building with that... still get the 1721 error on this CA.

CA: CACert_1_Wire_Driver
Executable File Name: <SystemFolder>\certutil.exe
CommandLine: -addstore "TrustedPublisher" "[SUPPORTDIR]\MaximCert.cer"
Immediate Execution in UI Sequence After SetupProgress

The log shows:
MSI (c) (C4:88) [10:08:00:363]: Doing action: CACert_1_Wire_Driver
Action 10:08:00: CACert_1_Wire_Driver.
Action start 10:08:00: CACert_1_Wire_Driver.
MSI (c) (C4:88) [10:08:00:363]: Note: 1: 1721 2: CACert_1_Wire_Driver 3: C:\Users\ADMINI~1\AppData\Local\Temp\2\MSI9520.tmp 4: -addstore "TrustedPublisher" "C:\Users\ADMINI~1\AppData\Local\Temp\2\{2C13243C-7945-4FAA-A988-7C63AB821F7E}\MaximCert.cer"
Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: CACert_1_Wire_Driver, location: C:\Users\ADMINI~1\AppData\Local\Temp\2\MSI9520.tmp, command: -addstore "TrustedPublisher" "C:\Users\ADMINI~1\AppData\Local\Temp\2\{2C13243C-7945-4FAA-A988-7C63AB821F7E}\MaximCert.cer"
MSI (c) (C4:88) [10:09:39:648]: Product: PAR Express -- Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: CACert_1_Wire_Driver, location: C:\Users\ADMINI~1\AppData\Local\Temp\2\MSI9520.tmp, command: -addstore "TrustedPublisher" "C:\Users\ADMINI~1\AppData\Local\Temp\2\{2C13243C-7945-4FAA-A988-7C63AB821F7E}\MaximCert.cer"

MaximCert.cer is in the SupportDir.
Note that when it stops on the error I am able to execute the command successfully from the command line.

I tried changing to this:
Executable File Name: <SystemFolder>\cmd.exe
CommandLine: dir

And I still get a 1721 error! What file is it not finding?

Thanks for any ideas.

Roman1
01-18-2019, 04:02 AM
Try to put MaximCert.cer to Binary Table.

Use
StreamFileFromBinary ( hInstall(HWND), svObjectBinaryKey, szFileName );

just before calling CACert_1_Wire_Driver.

Rewrite CACert_1_Wire_Driver CA to defined temp directory of MaximCert.cer

rguggisberg
01-18-2019, 02:31 PM
Thanks Roman.
Actually I got it working a few hours after my post. I tried to edit my post... but it threw me out because of some "security issue". It will not let me add the following to the original post.

Edit:
FWIW, I was able to get this working by discarding the above CA that launched an executable (this had been working, BTW) and replaced it with a CA that runs InstallScript code that does the same thing.

Roman1
01-21-2019, 02:27 AM
From the IS Help:

In Basic MSI or InstallScript MSI projects, each InstallScript custom action initializes its own engine.
Each engine does not know where the primary SUPPORTDIR is,
and each engine does not extract its own private copy of the support files.