Jump to content

Recommended Posts

I create a small application installer script which by reading an ini file it will give you a GUI in which you can select the applications that you want to install. I been using the script at work but I have a problem with the script that I can figure out. I create a ghost image for a Dell Latitude D610 and after the image restore and sysprep finish my script runs. After selecting the applications that I want to install and pressing Run Install button the script give me the following Error:

AutoIt Error

For $a = 1 To $Run[0][0]

For $a = 1 To Run^ERROR

Error: Subscript used with non-Array variable.

The weird part of this problem is if a build 5 system with the same ghost image may be one of them the script fail. I believe the problem with the script is in line 96:

$Section = _GUICtrlListViewGetItemText($ListView1, $ret[$x])
it return NULL instead of the GUI text.

If any body can check my code and fix this problem or guide me in the right direcction I deeply appresiated, I still have to setup another 2,000 systems.

This is an Example of InstallApps.ini

[Main]Title = DI Personalization Install

Font = Arial Black

FontSize = 12

FontStyle = 2

Xpos = @DesktopWidth - 310

Ypos = -1

[Project 2000 SR1]

Optional = False

2 = C:\Program Files\7-Zip\7zFM.exe

[MS Viso Pro 2003]

Optional = True

1 = %SystemDrive%\Temp\VisioPro_2003SP2\WXPW2K_TI_10\Install.exe

Edited by Danny35d
AutoIt Scripts:NetPrinter - Network Printer UtilityRobocopyGUI - GUI interface for M$ robocopy command line
Link to post
Share on other sites

GUICtrlSetData($Label1, 'Installing ' & _GUICtrlListViewGetItemText($ListView1, Int($ret[$x])))
            $Section = _GUICtrlListViewGetItemText($ListView1, Int($ret[$x]))

SciTE for AutoItDirections for Submitting Standard UDFs


Don't argue with an idiot; people watching may not be able to tell the difference.


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...