kTool (just another software selector)
#81
Posted 17 January 2006 - 05:11 PM
#82
Posted 08 February 2006 - 05:54 AM
#83
Posted 08 February 2006 - 06:58 AM
kelsenellenelvian, on Feb 8 2006, 03:54 AM, said:
Ha. That's funny. I was just about to modify my WPI to make it use the KTools progress bar.
edit: Nevermind. I just checked the WPI forum. It seems as though someone has already done it. Sweet. That makes it easier for me.
This post has been edited by Dumpy Dooby: 08 February 2006 - 07:03 AM
#84
Posted 10 February 2006 - 12:22 PM
Attached should be a modified (from v1.1a) version of ktool script, to compile with AutoIt. Also included in the archive is a sample ini file (only the [config] section of it is relevant to these modifications).
Improvement that I felt necessary in my case:
1- A 'Replace' option in the [Config] section of the .ini file
It's a bit like the 'Append' option but the provided value ('CD' works as well as with Append) will replace all instances of the '%KTREP%' substring INSIDE a Run/RunWait/DOS/MSI/REG/WaitProcess/WinWaitClose command string (although I can't see any use for the 2 last ones).
This allow for more flexibility (see .ini example provided) than just the 'Append' option. It could even replace it (but both can be used right now).
Also, using this, WPI would be able to make a better use of ktool, not just using the RunWait command.
2- A 'ListTitle' option in the [Config] section of the .ini file
If provided, it will replace the titles of the GUI and progress windows. Useful to identify successive runs of ktool.
3- in Func GUI (), I replaced all (5) 'GUIRead' function calls by 'GUICtrlRead' calls to have compatibility with latest AutiIt compiler versions (3 something and beta).
If ktool developpers find it useful, please feel free to integrate those little extras. My 0.3 cents.
Also, but not adressed in this file, I found somewhat inconsistent the way ktool deals with " (dble quotes) in commands: it add BOTH of it arround file names in REG command, only ONE at the beginning of file names in MSI command (so you have to put the last one after your file name), and none in other commands.
I feel that it should leave it to the user to add it or not. And also state this in the manual so you don't have to look to the source/log-file-in-temp to see how ktool deals with those quotes.
That's All, Folks!
[Edit] I've posted an even more improved version of kTool further in the thread.
Attached File(s)
-
kTool_modified.zip (9.15K)
Number of downloads: 296
This post has been edited by Djé: 04 May 2006 - 12:34 AM
#85
Posted 28 February 2006 - 02:17 PM
But how to edit this and how to make a EXE file of it?
Thanks
#86
Posted 28 February 2006 - 02:38 PM
The .au3 file can be modified with notepad but there are better editors...you must compile the .au3 with AutoIt. Free download here:
AutoIt Website
Once installed, you should be able to right-click on .au3 and click Compile.
There are editors included with AutoIt and I highly recommend getting the SciTe Editor (available in downloads section, don't forget patch). SciTe installs a small utility (ScriptWriter) to Record Windows, Keystrokes, Mouse Clicks for those uncooporative silent installs or build some complex script easily. It also has a built in tool to Build/Modify GUIs and a whole host of other functions.
Hope this helps.
This post has been edited by lawrenca: 28 February 2006 - 02:41 PM
#87
Posted 01 March 2006 - 02:08 AM
after compile it I'm getting this error
Line 0 (File"C:\ktool\v1.1a.exe"):
$tItem = GUIRead ( $ListAvailable )
$tItem = ^ ERROR
Error: Unknown function name.
Any ideas?
Thanks
#88
Posted 01 March 2006 - 05:57 AM
read my post a bit earlier in the thread about geting around this. Item #3.
#89
Posted 01 March 2006 - 07:59 AM
#90
#91
Posted 02 March 2006 - 02:25 AM
I'm still struggling with autoit.
I want to place some buttons somewhere else in the window.
It there some graphical tool that can drag & drop the button somewhere else?
Or How does this coordinates works?
like $ComboProfiles = GUICtrlCreateCombo ( "", 390, 30, 110, 30, 0x00200142 )
#92
Posted 02 March 2006 - 02:47 AM
Djé, on Feb 10 2006, 11:22 AM, said:
Attached should be a modified (from v1.1a) version of ktool script, to compile with AutoIt. Also included in the archive is a sample ini file (only the [config] section of it is relevant to these modifications).
Improvement that I felt necessary in my case:
1- A 'Replace' option in the [Config] section of the .ini file
It's a bit like the 'Append' option but the provided value ('CD' works as well as with Append) will replace all instances of the '%KTREP%' substring INSIDE a Run/RunWait/DOS/MSI/REG/WaitProcess/WinWaitClose command string (although I can't see any use for the 2 last ones).
This allow for more flexibility (see .ini example provided) than just the 'Append' option. It could even replace it (but both can be used right now).
Also, using this, WPI would be able to make a better use of ktool, not just using the RunWait command.
2- A 'ListTitle' option in the [Config] section of the .ini file
If provided, it will replace the titles of the GUI and progress windows. Useful to identify successive runs of ktool.
3- in Func GUI (), I replaced all (5) 'GUIRead' function calls by 'GUICtrlRead' calls to have compatibility with latest AutiIt compiler versions (3 something and beta).
If ktool developpers find it useful, please feel free to integrate those little extras. My 0.3 cents.
Also, but not adressed in this file, I found somewhat inconsistent the way ktool deals with " (dble quotes) in commands: it add BOTH of it arround file names in REG command, only ONE at the beginning of file names in MSI command (so you have to put the last one after your file name), and none in other commands.
I feel that it should leave it to the user to add it or not. And also state this in the manual so you don't have to look to the source/log-file-in-temp to see how ktool deals with those quotes.
That's All, Folks!
Thank you very much...
#93
Posted 03 March 2006 - 09:07 AM
I've downloaded kTool_modified.zip
and the programm won't install anything.
Do I need to make some changes in win_xp.ini?
A peace of my win_xp.ini:
[Config]
Append = \\server\D\pre_install\software
Profiles=|Default|Graphic programs|Updates
DefaultProfile = Default
[Profiles]
Default=|Microsoft Office 2003|EV LV keyboard layout|WinRAR 3.30|Total Commander 6.03|FileZilla (Free FTP client)|Acrobat Reader 6|K-Lite Codec Pack|MyIE2|Fantom CD|VirtualPC 2004|.NET Framework|Media Player 9
Graphic programs=|Acrobat Reader 6|Adobe Acrobat 6.0 Standard|Adobe Photoshop 7.0.1
Updates=|DirectX 9.0b|.NET Framework|Media Player 9|Service Pack 2
[-Antispyware-]
[Windows Defender]
Context = Installing Windows Defender
MSI = Antispyware\Windows_Defender\WindowsDefender.msi
The full path of windowsdefender.msi is \\server\D\pre_install\software\Antispyware\Windows_Defender\WindowsDefender.msi
The path of ktool.exe is: \\server\D\pre_install\installer\ktool.exe
I'm getting this error it's in dutch
Anyone ideas?
Attached File(s)
-
error.JPG (15.4K)
Number of downloads: 147
#95
Posted 03 March 2006 - 05:25 PM
[Windows Defender] Context = Installing Windows Defender MSI = "Antispyware\Windows_Defender\WindowsDefender.msi" /qn
As far as i know you need double quotes with this modified version the older version only required a single quote at the end of the file name
This post has been edited by ironside: 03 March 2006 - 05:26 PM
#96
Posted 03 March 2006 - 07:20 PM
ironside, on Mar 4 2006, 12:25 AM, said:
As I said, I find this quote quantity question quite inquonsistent
Since for now (s)he seems busy somewhere else, and provided people are interested, I may adress this issue in a second modification. If I do, it will be in the following way: ktool won't add anymore any quote anywhere. It will leave it to the user to do it in its .ini file.
Do NOT expect me to take over or fork ktool development in any way, though. If I'd do, I would transform it into something like WPI or WIHU!!! Who would need that?
As for Arjanv error:
Most probably you're just lacking the double quote at the end (ONLY) of your file name:
MSI = Antispyware\Windows_Defender\WindowsDefender.msi"add /qn as shown by ironside to install silently.
Also, I don't see anywhere Windows Defender in your profiles.
How are you using ktool ? with or without GUI ? (Give us the command line you use to run ktool).
And Please, if you still have the problem, translate the error message.
Note: .ini files (such as yours) made for standard version of ktool work as well with the modified version.
Opposite is not true.
If we modify again ktool to adress the quote inconsistency, compatibility will be completely broken !
#97
Posted 17 April 2006 - 09:40 PM
i recently started look for an app just like this. its a really great app.
have been adding a "AppDesc" command to the ini file so that a user could get back some info about an app in the main dialog. sorry if this dubbles up on the context/desc function
have modifyed action on $listAvaible
Case $msg = $ListAvailable
$tItem = GUICtrlRead ( $ListAvailable )
GUICtrlSetData ($AppDesc ,"") ;remove any text as something else has happened
If $tItem <> "" And StringLeft ($tItem, 1) <> $NonSelectable Then
If CheckList($Selected, $tItem) = 0 Then
$Selected = $Selected & "|" & $tItem
GUICtrlSetData($ListSelected, $Selected)
Else
;MSGBOX("","", "Item already in list") ; might be a good place to tell the user that there already go this app in the list?
EndIf
$tNumber = UBound ( $AvailableArray )
For $i = 0 To $tNumber - 1
If $AvailableArray [$i][1] = "Section" Then ; works on all except the last section because of findnext returning -1?
If $tItem = $AvailableArray [$I][0] Then
For $x = $i To FindNextSection($AvailableArray,$i+1) ; add one so that it does not return the section number that i passed it.
if $AvailableArray [$x][1] = "AppDesc" then GUICtrlSetData ($AppDesc, StringReplace($AvailableArray [$x][0], "\n", @CRLF)) ; allow mutiline comments through the use of \n
Next
EndIf
EndIf
Next
EndIf
i also added the edit at the end of gui creation lines ->
$AppDesc = GUICtrlCreateEdit ("", 390,150,100,100,0x0804)
and added ~line 200 with the only ones to ensure that appdesc becomes part of the array
Case StringLeft ( $tLine, 7) = "AppDesc"
FillArray ($tArray, $tLine, "AppDesc" , $i)
i can post my full code but i am not sure of how many other small changes i made to the app.
#98
Posted 18 April 2006 - 12:50 AM
#99
Posted 18 April 2006 - 01:24 AM
but i have added a screen shot hope you can see it ok.
main reason i added this to the code was, for informing people that i can't talk to what an app does.
Attached File(s)
-
ktool.JPG (59.42K)
Number of downloads: 298
This post has been edited by cvd_army_com: 18 April 2006 - 01:25 AM
#100
Posted 23 April 2006 - 06:59 PM
- ← make xp 64bit unattended
- Unattended Windows 2000/XP/2003
- Building a Pre-activated CD from an existing installation →



Help


Back to top









