Jump to content

Software Installer


surreal
 Share

Recommended Posts

i was hoping or wondering if there may already be some code on this site that would do some of the same thing that the below application does.

wihu.exe

kalytta.com/wihu.php

i dont need any of the account stuff, just the process of creating an install package. i would use this software however i cant have any options for the user to cancel or exit the process, and the above software does not included a feature to disable them orthe tool bar. i have an application that i need to push through sms, that also has 8 updates that need to be installed in the correct order. im not asking anyone to write the script was just wonder if there was an autoit script already out that that i could manipulate for my needs. i have searched the forum for some time now and have not came up with anything yet.

thank you very much for your help.

Link to comment
Share on other sites

not sure if this will be any help, i use this installer with autoit exe sometimes, there's a basic free version.

http://www.advancedinstaller.com/feats-list.html#free

My AutoIt Scripts.- AutoHost and Password Enabler for Delta Force 2 Demo.| Caffine for Winamp 2.9x and WRS 2.0 | mp3 directory cleaner | CRAP DJ | A:B:J Radio Automation Software | FFMPEG batch conversion automator

Link to comment
Share on other sites

thank you cyanidemonkey i will download and play with that. i would prefer an autoit script, would love the ability of control and manipulation. but if it does not exist beggars cant be choosers

d@ve

p.s. i download that program, kinda like a smaller verison of wise, and is. im looking for something that does not have to be wraped into a exe or msi. this package with updates is over a gig, the program i listed works kinda like a bat install with ini settings, hopfully there is an autoit script kinda like it out there.

thanks cyanidemonkey, and everyone for your help with this

d@ve

Edited by surreal
Link to comment
Share on other sites

so, well, i kinda have a script. i have been reading alot, alot, alot, and have with the help of other scripts and my own code into the following script. it kinda works, but would any help would be so great.

1. i would like for it to minimize when the button is clicked - not working.

2. the progress bar does not seem to work, i have tried many different situation, may be over my head. would like it to progress per install, tell completed 100%.

3. any other clean up or help would be so greatly appreciated.

im not sure how to make this so that it would read from in ini so i included (run) and (runwaits) they would run the package from the folder that the script is located in.

CODE
#include <Constants.au3>

#include <GUIConstantsEx.au3>

#include <ProgressConstants.au3>

#include <WindowsConstants.au3>

Opt('GUIEventOptions',1)

Opt('TrayOnEventMode',1)

Opt('TrayMenuMode',1)

Global $TimerProc_Handle, $EventId = 10001, $Elapse = 100, $ProgCount = 0

TraySetOnEvent($TRAY_EVENT_PRIMARYUP, 'FNC_MAXIMISE')

$GUI_COMPANY = 'comapny name'

$GUI_DISPLAY = 'package name'

$GUI_VERSION = '1'

$RUN = 1

$GUI_GUIWNDW = GUICreate($GUI_COMPANY, 365, 150, -1, -1, -1, $WS_EX_TOPMOST)

$GUI_FNTNAME = 'Arial'

GUISetBkColor(0xEEEEEE)

GUISetFont(10, 800, 0, $GUI_FNTNAME)

$GUI_LBLTITL = GUICtrlCreateLabel( $GUI_DISPLAY & ' ' & $GUI_VERSION, 10, 10, 345)

GUISetFont(8.5, 800, 0, $GUI_FNTNAME)

$GUI_LBLSUBT = GUICtrlCreateLabel('Installing ' & $GUI_DISPLAY & ', please wait...', 15, 45, 305)

GUICtrlSetColor($GUI_LBLSUBT, 0X666666)

GUISetFont(8, 400, 0, $GUI_FNTNAME)

$GUI_LBLSTAT = GUICtrlCreateLabel('Status: Installing... - ', 25, 95, 109)

GUICtrlSetColor($GUI_LBLSTAT, 0X666666)

$GUI_GUIGRAPX = GUICtrlCreateGraphic(10, 35, 345, 1)

GUICtrlSetBkColor(-1, 0x999999)

$GUI_PROGBAR = GUICtrlCreateProgress (10, 70, 345, 15,$PBS_SMOOTH)

$GUI_BTNMINIM = GUICtrlCreateButton('Minimise to System Tray»', 95, 125, 170, 20)

GUISetState(@SW_SHOW)

$PKG_RUNCMND1 = RunWait('KB907417.exe /q')

$PKG_RUNCMND2 = RunWait('KB907417.exe /q')

$PKG_RUNCMND3 = RunWait('KB907417.exe /q')

$PKG_RUNCMND4 = RunWait('KB907417.exe /q')

$PKG_RUNCMND5 = RunWait('KB907417.exe /q')

While 1

$MSG = GUIGetMsg()

Select

Case $RUN = 1

$RUN = 0

GUIRegisterMsg($WM_TIMER, "_Progress1")

DllCall("User32.dll", "int", "SetTimer", "hwnd", $GUI_GUIWNDW, "int", $EventId, "int", $Elapse, "int", 0)

Case $MSG = $GUI_EVENT_MINIMIZE

FNC_MINIMISE()

Case $MSG = $GUI_EVENT_CLOSE

Exit

Case $MSG = $GUI_BTNMINIM

FNC_MINIMISE()

EndSelect

Wend

Func FNC_MINIMISE()

GuiSetState(@SW_MINIMIZE)

GuiSetState(@SW_HIDE)

TraySetState(1)

If @OSVersion = 'WIN_NT4' or @OSVersion = 'WIN_ME' or @OSVersion = 'WIN_98' or @OSVersion = 'WIN_95' then

TraySetToolTip ($GUI_DISPLAY & 'Click here to Restore')

Else

Traytip ($GUI_DISPLAY, 'Click here to Restore', 5)

EndIf

EndFunc

Func _Progress1($hWnd, $Msg, $wParam, $lParam)

If Not ProcessExists($PKG_RUNCMND1) Then Exit

If $ProgCount = 100 Then $ProgCount = 20

$ProgCount += 1

GUICtrlSetData($GUI_PROGBAR, $ProgCount)

EndFunc

Func _Progress2($hWnd, $Msg, $wParam, $lParam)

If Not ProcessExists($PKG_RUNCMND2) Then Exit

If $ProgCount = 100 Then $ProgCount = 40

$ProgCount += 20

GUICtrlSetData($GUI_PROGBAR, $ProgCount)

EndFunc

Func _Progress3($hWnd, $Msg, $wParam, $lParam)

If Not ProcessExists($PKG_RUNCMND3) Then Exit

If $ProgCount = 100 Then $ProgCount = 60

$ProgCount += 40

GUICtrlSetData($GUI_PROGBAR, $ProgCount)

EndFunc

Func _Progress4($hWnd, $Msg, $wParam, $lParam)

If Not ProcessExists($PKG_RUNCMND4) Then Exit

If $ProgCount = 100 Then $ProgCount = 80

$ProgCount += 60

GUICtrlSetData($GUI_PROGBAR, $ProgCount)

EndFunc

Func _Progress5($hWnd, $Msg, $wParam, $lParam)

If Not ProcessExists($PKG_RUNCMND) Then Exit

If $ProgCount = 100 Then $ProgCount = 100

$ProgCount += 80

GUICtrlSetData($GUI_PROGBAR, $ProgCount)

EndFunc

Func FNC_MAXIMISE()

GuiSetState(@SW_RESTORE)

GuiSetState(@SW_Show)

TraySetState(2)

EndFunc

Func OnAutoItExit()

GUIRegisterMsg($WM_TIMER, "")

DllCall("user32.dll", "int", "KillTimer", "hwnd", $GUI_GUIWNDW, "int", $EventId)

EndFunc

thanks again everyone for your help with this.

d@ve

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...