/build/static/layout/Breadcrumb_cap_w.png

Info 1720. There is a problem with this Windows Installer

Hi,
I had a msi which has a VB script in a custom action. This script should be executed is a part of custom action. But I get the below error in the log:

=================================
Action start 10:45:04: add_to_ini_file.
Info 1720. There is a problem with this Windows Installer package. A script required for this install to complete could not be run. Contact your support personnel or package vendor. Custom action add_to_ini_file script error -2146827788, : Line 23, Column 1,
Action ended 10:45:04: add_to_ini_file. Return value 1.
=================================

Please help....

Thanks in advance...Praveen

0 Comments   [ + ] Show comments

Answers (6)

Posted by: plangton 20 years ago
Second Degree Blue Belt
1
Gday Guys and Gals

Testing your vbs before putting it in the msi will not ensure it will work, due to what gvlaarho mentioned, that wscript functions are not supported. However, in most cases (i.e. if you are doing wscript.createobject) you can just drop the wscript. If you are doing wscript.quit or wscript.sleep etc though you'll have to find another way as it can't be done - in the installshield forum there are some rather lengthy posts on how to work around these issues if you really need to. Its a bit annoying that you have to modify your scripts for msis though.

For example, here is a way to do a sleep as a sub that I copied and pasted from some helpful soul:

Sleep(5)

Sub Sleep(ByVal iSleepPeriod)
' Note: Timer returns the number of seconds that have elapsed since midnight.

Dim iStartTime, iEndTime, iCurrentTime
On Error Resume Next

iStartTime = Timer
iEndTime = iStartTime + iSleepPeriod

Do While Timer <= iEndTime
Loop
End Sub

God bless google :)

Hope this helps

Rgds

Paul
Posted by: kkaminsk 20 years ago
9th Degree Black Belt
0
1720 means beat your head against the wall repeatedly.

Wise published an article to assist with resolving the issue but ultimately I think VBScript is kinda pointless with MSIs until VBScript is properly supported.


http://www.wise.com/KBArticle.aspx?articleno=1418&keywords=1720
Posted by: wildcat966us 20 years ago
Senior Yellow Belt
0
Hi there,

I would recomend to test your VBScript before inserting it into the CustomAction.
Just create the text file with *.vbs extension and put all your VBScript code there.
it will simulate the Custom Action.
In most cases it works

Best wishes,
Posted by: gvlaarho 20 years ago
Senior Yellow Belt
0
Just a remember :

In custom action this : wscript.createobject isn't accepted but only CreateObject is well accepted.

Also the same for all the wscript.XXXX (For example wscript.quit; wscript.sleep ...)

Good Luck
Posted by: kkaminsk 20 years ago
9th Degree Black Belt
0
Hey, thanks Gvlaarho! Maybe that will ease some of my pain. I've found VBScript painful to use with MSIs because of the good ol 1720 error. Hopefully it's just the way I code that is causing some of the grief.
Posted by: cdupuis 20 years ago
Third Degree Green Belt
0
KKaminsk, your about as confident about your programming capabilities as I am.
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ