Jump to content

How to - Simple installator


Darfi
 Share

Recommended Posts

Hi all,

Im noob in AutoIt:) could you please tell me how make simple installator:

- I will need to run some simple parameters which run some external file in graphical mode but in this I need to change some parameters (rollbox probably).

For example what Ineed to run:"start /wait msiexec.exe /i "XXXXXX.msi" /l*v "%temp%XXXXXXXX.log" AGENT_SERVER= Parameters which i need to change"

I was start with this(Its without any condition):

#Region ### START Koda GUI section ### Form=C:\Data\03_Application\KODA\Forms\01_test.kxf
; Main menu table__________________________________
$CA_ITCM = GUICreate("CA_ITCM", 615, 421, 388, 411)
GUISetIcon("C:\feed_viewer_setup.exe", -1);
GUISetFont(10, 400, 0, "MS Sans Serif")
GUISetBkColor(0xFFFFFF)


;Progress button__________________________________
$Progress = GUICtrlCreateProgress(8, 376, 593, 25)
GUICtrlSetResizing(-1, $GUI_DOCKBOTTOM)


;Switch button___________________________________
$Change_button = GUICtrlCreateCombo("Choose location", 24, 104, 145, 25, BitOR($CBS_DROPDOWN,$CBS_AUTOHSCROLL))
GUICtrlSetData(-1, "[b]XXXXX|YYYYY|ZZZZZ|AAAAAAA[/b]")
GUICtrlSetFont(-1, 10, 800, 0, "MS Sans Serif")
GUICtrlSetCursor (-1, 0)

;PICture
$Pic1 = GUICtrlCreatePic("C:\suit.jpg", 184, -40, 505, 401);

;Start Install button
$Start_install = GUICtrlCreateButton("Start Install", 24, 208, 145, 113)
GUICtrlSetBkColor(-1, 0xE3E3E3)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###

Could you help me how to solve it?

Thank you for response

Edited by Darfi
Link to comment
Share on other sites

Have a look at Run

e.g.

Run("msiexec /i " & '"' & $scriptDir & "\Software\" & $fileName & '" ' & $switch)

obviously i have set variables to the names and switches but it will give you the basic idea

Link to comment
Share on other sites

  • Moderators

For creating an installation/setup package I would actually recommend using InnoSetup. It is free and is very easy to use. This what I use to install my AutoIT created application on users workstations.

-hogfan

In this case, however, the OP states it is already an MSI package. Best practice is not to repackage an already-repackaged application. Many companies now say that if you do so, they will not support the product.

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

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