lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Error Info 1720

Hello,
Whenever I run my vbscript locally, it runs successfully but through Adavaced Installer I get the following message:

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 script error , : Line , Column ,


My vbscript is very simple:

Code: Select all

Set objShell = CreateObject("WScript.Shell")
objShell.run "fltmc load mydriver"
Set objShell = Nothing
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Error Info 1720

Hello,

Here is an example of correct usage of the WScript.Shell object as supported by Windows Installer:

Code: Select all

	result = objShell.Run("cmd.exe /c "&batfilename&"" , WindowStyle_Visible,1)
You can try placing Run's parameter between parentheses like in the example above. Try to figure out which line is causing the error.
If you still are encountering this behavior, please send us a working test case that accurately reproduces the error.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Re: Error Info 1720

Thanks.
1. As I understand, the solution you offer is using a batch file as described here:
http://www.advancedinstaller.com/forums ... den#p25057
Am I right?

2. How can I run a reg command from advanced installer.
For example deleting a key:

Code: Select all

Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Test]
"TestValue"=-
3. I want to run a command at the last step of the installation.
Is it the InstallFinalize step?

Thanks X 3
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Error Info 1720

Hello,
1. As I understand, the solution you offer is using a batch file as described here:
http://www.advancedinstaller.com/forums ... den#p25057
Am I right?
Although possible, it would be inefficient to use a bat file if you only need to run one single command. You can instead use the "Launch File or Open URL" custom action to execute your command. Do not forget to enclose your paths between quotes.
2. How can I run a reg command from advanced installer.
Again this can be achieved with the help of the "Launch File or Open URL" custom action. Simply place this in the command line field:

Code: Select all

reg import "<your .reg file name or property enclosed by quotes>"
More details about the reg command line utility can be found here:
http://www.microsoft.com/resources/docu ... x?mfr=true
3. I want to run a command at the last step of the installation.
Is it the InstallFinalize step?
Yes, InstallFinalize is indeed the last step of the installation.

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
lekfir
Posts: 130
Joined: Sun Feb 15, 2009 5:26 pm

Re: Error Info 1720

Thanks.
Although possible, it would be inefficient to use a bat file if you only need to run one single command. You can instead use the "Launch File or Open URL" custom action to execute your command. Do not forget to enclose your paths between quotes.
Is that mean that I can add Predefined Custom Action-> Launch File or Open URL
Source Path: <AI_CUSTACTS>viewer.exe
Source Type: EXE
Command Line: result = objShell.Run("cmd.exe /c fltmc load mydriver"" , WindowStyle_Visible,0)

?
Thanks!
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Error Info 1720

Hi,

No, the correct form would be:
Source Path: <AI_CUSTACTS>viewer.exe
Source Type: EXE
Command Line: fltmc load mydriver

Regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”