Sign in to follow this  
Followers 0
ATAGA

Problem With Installshield

4 posts in this topic

Hello, I am doing an instalacion of Windows 2000 with my programs preferred, but I have problems to install programs of type Installshield. It is part of my script:

AutoItSetOption("TrayIconHide", 1)

$d = DriveGetDrive("CDROM")

For $x = 1 to $d[0]

If DriveStatus($d[$x]) = "READY" then

GUICreate(" Instalación y Configuración de Windows 2000 professional",410,60)

GUICtrlCreateLabel(": Microsoft DirectX 9c", 70, 20, 320, 100)

$icon = GUICtrlCreateIcon ($d[$x] & "\DRIVERS\DirectX\Icon_1a.icl", 0, 30, 12)

GUISetState(@SW_SHOW)

Sleep(¨-)

RunWait($d[$x] & "\DRIVERS\DirectX\DXSETUP.exe /silent")

GUICreate(" Instalación y Configuración de Windows 2000 professional",410,60)

GUICtrlCreateLabel(": Panel de Control DirectX", 70, 20, 320, 100)

$icon = GUICtrlCreateIcon ($d[$x] & "\DRIVERS\DirectX\Icon_1b.icl", 0, 30, 12)

GUISetState(@SW_SHOW)

Sleep(800)

RunWait($d[$x] & "\DRIVERS\DirectX\directx.exe /S")

GUICreate(" Instalación y Configuración de Windows 2000 professional",410,60)

GUICtrlCreateLabel(": WinDVD Platinum v7.0 B27.115", 70, 20, 320, 100)

$icon = GUICtrlCreateIcon ($d[$x] & "\SOFTWARE\WinDVD\Icon_1.icl", 0, 30, 12)

GUISetState(@SW_SHOW)

Sleep(800)

RunWait($d[$x] & "\SOFTWARE\WinDVD\Setup.exe -s -a -s -f1" & Chr(1) & $d[$x] & "\SOFTWARE\WinDVD\Setup.iss" & Chr(1))

GUICreate(" Instalación y Configuración de Windows 2000 professional",410,60)

GUICtrlCreateLabel(": Microsoft Office 2000 Premium", 70, 20, 320, 100)

$icon = GUICtrlCreateIcon ($d[$x] & "\SOFTWARE\Office2000\Icon_1.icl", 0, 30, 12)

GUISetState(@SW_SHOW)

Sleep(800)

RunWait($d[$x] & '\SOFTWARE\Office2000\INSTALAR.EXE TRANSFORMS="'&$d[$x]&'\SOFTWARE\Office2000\SILENT.MST" /qn+')

Sleep(90000)

WinClose("Microsoft Office 2000 Premium", "La instalación de Microsoft Office 2000 Premium")

For example, the WinDVD it is an installer of type installshield does not work, on the other hand if I write:

RunWait('E:\WinDVD\Setup.exe /s /f1"E:\WinDVD\Setup.iss"')

But I do not want to install it Hard Disk but from CDROM. Someone can help me?.

Share this post


Link to post
Share on other sites



But I do not want to install it Hard Disk but from CDROM. Someone can help me?.

InstallShield creates a log file which fails when installed from CD as it is read only. You need to use -f2 switch to create the log file on the HardDrive instead.

RunWait($d[$x] & '\SOFTWARE\WinDVD\Setup.exe -s -a -s -f1"' & $d[$x] & '\SOFTWARE\WinDVD\Setup.iss" -f2"' & @TempDir & '\WinDVD.log"')

:)

Share this post


Link to post
Share on other sites

Very thanks. Now this if it works, the problem was in which I tried "to read" a file ".log" already created in the CDROM and for which I see one must create it.

Share this post


Link to post
Share on other sites

Very thanks. Now this if it works, the problem was in which I tried "to read" a file ".log" already created in the CDROM and for which I see one must create it.

The silent install tries to create a log to the cdrom which makes the installer fail. The silent installation log must be written to have the installer succeed.

When you use -f2"Path to HardDrive", it makes the log write to the HardDrive, witch makes the installation successful.

Share this post


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
Sign in to follow this  
Followers 0