Jump to content
Sign in to follow this  
Darfi

How to - Simple installator

Recommended Posts

Darfi

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

Share this post


Link to post
Share on other sites
Chimaera

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

Share this post


Link to post
Share on other sites
hogfan

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

Share this post


Link to post
Share on other sites
JLogan3o13

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.


√-1 2^3 ∑ π, and it was delicious!

How to get your question answered on this forum!

Share this post


Link to post
Share on other sites
Darfi

If you want an installer launcher look at the Vollatran project (link in my signature)

Im looking on it. Its seems very nice

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  

×