Custom action Error 1722 - Advanced Installer Community
cvas
Posts: 43
Joined: Mon Oct 01, 2007 8:20 pm

Custom action Error 1722

i had a custom action to delete an "Text Update" file on InstallFinalize state
and i get the follow err.
Can you help me on this
Thanks

MSI (s) (9C:3C) [10:27:13:515]: Doing action: Dell_Demoserial2
Action 10:27:13: Dell_Demoserial2.
Action start 10:27:13: Dell_Demoserial2.
MSI (s) (9C:3C) [10:27:13:937]: Note: 1: 1722 2: Dell_Demoserial2 3: C:\WINDOWS\Installer\MSIFAD.tmp 4: /HideWindow del /F /Q C:\WINDOWS\DemoSerial.txt
Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action Dell_Demoserial2, location: C:\WINDOWS\Installer\MSIFAD.tmp, command: /HideWindow del /F /Q C:\WINDOWS\DemoSerial.txt
MSI (s) (9C:3C) [10:45:02:468]: Product: TaxSoft_V3 --
Error 1722. There is a problem with this Windows Installer package. A program run as part of the setup did not finish as expected. Contact your support personnel or package vendor. Action Dell_Demoserial2, location: C:\WINDOWS\Installer\MSIFAD.tmp, command: /HideWindow del /F /Q C:\WINDOWS\DemoSerial.txt

Action ended 10:45:02: Dell_Demoserial2. Return value 3.
Action ended 10:45:02: INSTALL. Return value 3.
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Custom action Error 1722

Hi,

This error may appear because deleting that file requires elevation, but a custom action placed after the "InstallFinalize" standard action is not executed with right permissions.

Can you try to place it above the "InstallFinalize" standard action or to check the "Run As Administrator" option for it and see if the behavior persists?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
cvas
Posts: 43
Joined: Mon Oct 01, 2007 8:20 pm

Re: Custom action Error 1722

i add it to "addresources" stage and check the run as administrator but i get the same error

any idea for delete this update txt file ?

costas
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Custom action Error 1722

Hi Costas,

I'm not sure why you encounter this behavior. Can you please send us the .AIP (project file) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”