ruck64
Posts: 57
Joined: Wed Jul 24, 2019 8:46 pm

There is a problem with this installer

Ive seen quite a lot of posts on this forum about this issue. However, my issue is quite a bit different unless I just havent found the right one.
Expected
Start installer
Give admin privleges
Add in files
Add in system environment variables
Run batch file
Have that batch file run another batch file
Finish Install successfully

Actual:
Start installer
Give admin privleges
Add in files
Add in system environment variables
Run batch file
Have that batch file run another batch file
Error there was an issue with the installer ........

When I check the event viewer for the issue. It states:
Product: ShortCutBug -- 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 Start_DCA, location: C:\WINDOWS\Installer\MSIC91E.tmp, command: /EnforcedRunAsAdmin /RunAsAdmin "C:\Program Files (x86)\Tester\ShortCutBug\src\StartDCABatch.bat"

But checking everything before it reverts it did exactly what its suppose to do. Other information that may help. This works exactly as expected on the computer I'm developing it on. And this install is on just a fresh computer. Any idea why this happens?
ruck64
Posts: 57
Joined: Wed Jul 24, 2019 8:46 pm

Re: There is a problem with this installer

Resolved

Apparently when the batch ended the automatic return was 1 instead of 0. Added in a statement to verify if my second batch file did what it should do.
upon success return 0 else return 1


sc query GoDCA | find "RUNNING"

if "%ERRORLEVEL%"=="0" (
return 0
) else (
return 1
) :(
Catalin
Posts: 6592
Joined: Wed Jun 13, 2018 7:49 am

Re: There is a problem with this installer

Hello,

I am glad you got this working.

Also, thank you for sharing your solution with us.
Apparently when the batch ended the automatic return was 1 instead of 0
Indeed, this is causing problems. Every return code that is different than 0 is interpreted by the Windows Installer service as an error.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”