Jump to content

Problems with installation script


BAKO
 Share

Recommended Posts

Please help me with this installation L.notes script. I want install more then one files and I have problem with execution msi.Do you know where is problem?THX

.

.

.

If FileExists("C:\Notes\nsd.exe") Then

GUICtrlSetData($infotxt, @crlf & @crlf & @crlf & @crlf & $UpProg)

RunWait(@ComSpec & " /c " & 'start /wait '&$progdir&'nsd.exe -kill -nolog -noinfo', $progdir, @SW_HIDE)

$InfoLabel = GUICtrlCreateLabel($Start, 190, 330, 200, 17)

GUICtrlSetData ($progressbar1,10)

RunWait(@ComSpec & " /c " & 'start /wait msiexec .\basic-client\lotus.msi /qn PROGDIR=\"'&$progdir&'" DATADIR=\"'&$datadir&'" TRANSFORMS=notes.mst"', "", @SW_HIDE)

GUICtrlSetData($InfoLabel, $Language)

.

.

.

Link to comment
Share on other sites

Please help me with this installation L.notes script. I want install more then one files and I have problem with execution msi.Do you know where is problem?THX

.

.

.

If FileExists("C:\Notes\nsd.exe") Then

GUICtrlSetData($infotxt, @crlf & @crlf & @crlf & @crlf & $UpProg)

RunWait(@ComSpec & " /c " & 'start /wait '&$progdir&'nsd.exe -kill -nolog -noinfo', $progdir, @SW_HIDE)

$InfoLabel = GUICtrlCreateLabel($Start, 190, 330, 200, 17)

GUICtrlSetData ($progressbar1,10)

RunWait(@ComSpec & " /c " & 'start /wait msiexec .\basic-client\lotus.msi /qn PROGDIR=\"'&$progdir&'" DATADIR=\"'&$datadir&'" TRANSFORMS=notes.mst"', "", @SW_HIDE)

GUICtrlSetData($InfoLabel, $Language)

.

.

.

Try this

$_MsiPath = @ScriptDir & '\basic-client\lotus.msi'
RunWait ( 'msiexec "' & $_MsiPath & '" /qn PROGDIR=\"' & $progdir & '" DATADIR=\"' & $datadir & '" TRANSFORMS=notes.mst', "", @SW_HIDE )
Edited by wakillon

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

Its a better script start without errors... but script isnt able to run lotus.msi ;):)

try with /i parameters

$_MsiPath = @ScriptDir & '\basic-client\lotus.msi'
RunWait ( 'msiexec /i "' & $_MsiPath & '" /qn PROGDIR=\"' & $progdir & '" DATADIR=\"' & $datadir & '" TRANSFORMS=notes.mst' )

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
Share on other sites

try with /i parameters

$_MsiPath = @ScriptDir & '\basic-client\lotus.msi'
RunWait ( 'msiexec /i "' & $_MsiPath & '" /qn PROGDIR=\"' & $progdir & '" DATADIR=\"' & $datadir & '" TRANSFORMS=notes.mst' )

Yes i try it but script runs without errors and seems that all is ok but installation is unsuccesfull...
Link to comment
Share on other sites

Yes i try it but script runs without errors and seems that all is ok but installation is unsuccesfull...

Try with a log file if we can get infos Posted Image

$_MsiPath = @ScriptDir & '\basic-client\lotus.msi'
$_NotesMstPath = @ScriptDir & '\notes.mst'
$_LogPath = @TempDir & '\lotus.log' 
$_RunWait = 'msiexec "' & $_MsiPath & '" /l* "' & $_LogPath & '" /qn PROGDIR=\"' & $progdir & '" DATADIR=\"' & $datadir & '" TRANSFORMS="' & $_NotesMstPath & '"'
ConsoleWrite ( "$_RunWait : " & $_RunWait & @Crlf )
RunWait ( $_RunWait )
If FileExists ( $_LogPath ) Then ShellExecute ( $_LogPath )

AutoIt 3.3.14.2 X86 - SciTE 3.6.0WIN 8.1 X64 - Other Example Scripts

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...